Next Couriers
In AfterShip Tracking, if a shipment has multiple carriers, you can use the next_couriers
field to specify the second carrier directly. This is useful when the first carrier does not provide such information to AfterShip.
This documentation describes how to define the next_couriers
information for the shipments imported by Commerce API.
Creating the order
Kindly refer to the instructions on the Tracking common scenario page to properly create your order.
Creating the fulfillment
Specific Required Fields for creating the fulfillment
Field | Description | Sample |
---|---|---|
delivery_method | Delivery method of the fulfillment, only shipping is accepted for defining next couriers information | shipping |
trackings.*.tracking_number | Tracking number | 123456789 |
trackings.*.next_couriers | Next courier array, currently only 1 next carrier object is accepted | - |
trackings.*.next_couriers[0].tracking_number | The tracking number of the next carrier | 123456789 |
trackings.*.next_couriers[0].slug | The slug of the next carrier | usps |
Recommended Optional Fields
Field | Description | Sample |
---|---|---|
trackings.*.slug | Carrier slug | usps |
Sample request body for creating a fulfillment
preparing...