Notifications

Get, add or remove contacts (sms or email) to be notified when the status of a tracking has changed.

Pro Tip!

You can always use/:tracking_id to replace /:slug/:tracking_number
e.g. DELETE /notifications/:tracking_id


GET /notifications/:slug/:tracking_number

Headers

aftership-api-key: YOUR_API_KEY
Content-Type: application/json

Headers

HTTP/1.1 200 OK
Content-Type: application/json
Connection: keep-alive
Date: Mon, 10 Jun 2013 07:38:02 GMT

Attributes

Attributes
AttributeTypeDescription
notificationHash of Notification ObjectHash describes the notification information.
Notification Object
AttributeTypeDescription
emailsArrayEmail address(es) to receive email notifications.
smsesArrayPhone number(s) to receive sms notifications.

Body

{
    "meta": {
        "code": 200
    },
    "data": {
        "notification": {
            "emails": ["user1@gmail.com","user2@gmail.com"],
            "smses": ["+85291239123", "+85261236123"]
        }
    }
}