Articles on: Others

Learn About New Changes to AfterShip Tracking API, Webhook, and CSV

We are launching some key changes to AfterShip Tracking API, Webhook, and CSV that will take effect on March 30, 2023.

Below is a summary of all the upcoming changes:

1. Existing fields changes



We are changing the behavior of several existing fields listed below:

Behaviour changes to API and Webhook fields


Field nameOld BehaviorNew Behavior
expected_deliveryexpected_delivery combines the carrier EDD and AfterShip API EDD. Also, the time is filled in “00:00:00” format. For example, if the carrier provides the date only, the value is “2022-01-20T00:00:00”.expected_delivery will consider the estimated delivery date provided by the carrier only. You can use the AfterShip API EDD field (aftership_estimated_delivery_date) if needed. And, the default time fill-in logic will be removed. For example, if the carrier provides the date only, the value will be “2022-01-20”.
order_dateThe current format for the order date is YYYY-MM-DDTHH:mm:ss[Z], e.g. “2022-01-20T14:43:20Z”.The new format for the order date will be YYYY-MM-DDTHH:mm:ssZ, e.g. “2022-01-20T14:43:20+08:00”. It only impacts the GET response. For the POST and PUT requests, we don’t change the behavior and support both formats.
shipment_pickup_dateThe time is filled in “00:00:00” format. For example, if the carrier provides the date only, the value is “2022-01-20T00:00:00”.The default time fill-in logic will be removed. For example, if the carrier provides the date only, the value will be “2022-01-20”.
shipment_delivery_dateThe time is filled in “00:00:00” format. For example, if the carrier provides the date only, the value is “2022-01-20T00:00:00”.The default time fill-in logic will be removed. For example, if the carrier provides the date only, the value will be “2022-01-20”.
latest_estimated_deliveryThe source of latest_estimated_delivery supports Courier EDD, AI predictive EDD, and Custom EDD.The source of latest_estimated_delivery will support Courier EDD, AI predictive EDD, Custom EDD, and Order EDD.

Behavior changes to CSV export fields


Field NameOld BehaviorNew Behavior
created_atThe UTC offset is always UTC+0, e.g. “2022-01-20T15:00:00+00:00”The UTC offset will be converted by your organization timezone setting and will remain consistent with the admin shipments page. e.g. “2022-01-20T10:00:00-05:00”.
updated_atThe UTC offset is always UTC+0, e.g. “2022-01-20T15:00:00+00:00”The UTC offset will be converted by your organization timezone setting and will remain consistent with the admin shipments page. e.g. “2022-01-20T10:00:00-05:00”.
scheduled_delivery_dateThe time is filled in “00:00:00” format. For example, if the carrier provides the date only, the value is “2022-01-20T00:00:00”.The default time fill-in logic will be removed. For example, if the carrier provides the date only, the value will be “2022-01-20”.
shipment_pickup_dateThe time is filled in “00:00:00” format. For example, if the carrier provides the date only, the value is “2022-01-20T00:00:00”.The default time fill-in logic will be removed. For example, if the carrier provides the date only, the value will be “2022-01-20”.
shipment_delivery_dateThe time is filled in “00:00:00” format. For example, if the carrier provides the date only, the value is “2022-01-20T00:00:00”.The default time fill-in logic will be removed. For example, if the carrier provides the date only, the value will be “2022-01-20”.

2. New detailed address fields



We are adding new fields to help you input and receive detailed origin and destination addresses with API, Webhook, and CSV.

New fields for API and Webhook


Field NameTypeDescription
first_estimated_deliveryobjectThe first estimated delivery date.
custom_estimated_delivery_dateobjectThe estimated delivery date based on your custom settings.
origin_statestringThe state of the sender’s address.
origin_citystringThe city of the sender’s address.
origin_postal_codestringThe postal code of the sender’s address.
origin_raw_locationstringThe sender’s full address.
destination_statestringThe state of the recipient’s address.
destination_citystringThe city of the recipient’s address.
destination_postal_codestringThe postal code of the recipient’s address.

New fields for CSV import


Field NameTypeDescription
origin_statestringThe state of the sender’s address.
origin_citystringThe city of the sender’s address.
origin_postal_codestringThe postal code of the sender’s address.
origin_addressstringThe sender’s full address.
destination_statestringThe state of the recipient’s address.
destination_citystringThe city of the recipient’s address.
destination_postal_codestringThe postal code of the recipient’s address.
destination_addressstringThe recipient’s full address

The existing fields, including tracking_origin_country, tracking_destination_country, tracking_postal_code, and tracking_state, will be marked as legacy fields and will be replaced by the new fields. However, the legacy fields will still be available. Check the details below.

Legacy FieldsNew Fields
tracking_origin_countryorigin_country_iso3
tracking_destination_countrydestination_country_iso3
tracking_postal_codedestination_postal_code
tracking_statedestination_state

We are working on updating our API docs as well. It will be completed before the actual release. For more details, please refer to AfterShip Tracking model page.

3. Normalized date and time information



AfterShip Tracking will now automatically deduce the timezone of the tracking events using our AI-powered address parser service. It will add the timezone to your tracking events if the carrier doesn’t provide it.

If you have any questions, feel free to reach out to our support team for quick assistance.

Updated on: 27/12/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!