Skip to content

Instantly share code, notes, and snippets.

@teddychan
Last active August 29, 2015 14:02
Show Gist options
  • Save teddychan/a035a93f87196e948680 to your computer and use it in GitHub Desktop.
Save teddychan/a035a93f87196e948680 to your computer and use it in GitHub Desktop.

Notice

Please pay attention to the fields expected_delivery in Tracking object and checkpoint_time in Checkpoint object that it is a string with the following possible values:

  • Empty String,
  • YYYY-MM-DD,
  • YYYY-MM-DDTHH:MM:SS, or
  • YYYY-MM-DDTHH:MM:SS+TIMEZONE
v4.0.2 (2014-07-19)
Update Resources
New resources to get, add or remove emails and smses POST /notifications/:slug/:tracking_number/add
POST /notifications/:slug/:tracking_number/add
PUT /notifications/:slug/:tracking_number/remove
New function to reactivate and retrack expired tracking once POST /trackings/:slug/:tracking_number/retrack
v4.0.1 (2014-07-09)
Update Resources
New field id added in tracking object.
You can use /:i to replace /:slug/:tracking_number.
GET /trackings/:id
PUT /trackings/:id
POST /trackings/:id
DELETE /trackings/:id
v4.0.0 (2014-06-24)
Update Resources
You can specify multiple slug in array for carrier detection POST /couriers/detect
POST /trackings
New required_fields added for some carriers:
tracking_ship_date
tracking_account_number
tracking_postal_code
POST /trackings
GET /trackings/:slug/:tracking_number
Return required_fields for carriers GET /couriers/all
GET /couriers
New resource to get list of activated couriers GET /couriers
Update method to get full list of all couriers
v3 method is GET /couriers
GET /couriers/all
Update method to get matched courier of tracking number
v3 method as GET /couriers/detect/:tracking_number
GET /trackings
Webhook 4.0

See update here: https://www.aftership.com/docs/api/4/webhook

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment