Tracking flow
Because orders are ultimately fulfilled by the vendor, order tracking is an inherently asynchronous process. You can expect to receive the following sequence of events:1
Order placed
The
ORDER_PLACED
event indicates that an order was successfully placed with the vendor, and is now awaiting fulfillment.2
Tracking obtained
After receiving an order placed event, you will receive a
TRACKING_OBTAINED
event which contains tracking information for the order. This includes details such as the tracking number, and the name of the carrier responsible for delivering the items. You can use this event to notify your customer.3
Poll for updates
With the tracking number in hand, you can use a third-party API like Aftership to receive further updates on your order’s delivery status.