The Tracker API allows businesses to create trackers for orders not dispatched through our API Solutions, enabling use of post-purchase and returns features.
Post-Purchase Management: - The post-purchase experience encompasses timely alerts, notifications, and user-friendly tracking pages, helping customers stay informed about their order's journey.
Returns Module: - Streamline the process for customers to initiate returns and exchanges efficiently.
Once you are set up as a user, you can submit existing order details, including the carrier's tracking number, to facilitate a seamless post-purchase and returns experience based on the portal's configuration. The API will then respond with the appropriate links for customers to access these features.
- What is required for the difference between an order and a tracker?
A Delivery Order contains all the critical details needed to execute a delivery, such as pickup and delivery addresses, contact information, and scheduling preferences.
When the system is unable to respond to a request, be it from a malformed request, an illegal or invalid value, or other issues, the API generates an error response.
Successful response may or may not include warnings.
- Without warnings - Indicates the request has been processed as anticipated.
- With warnings - Indicates the request has been processed with potentially unanticipated results. The warning contains information in the response that should be passed to the end user.
The severity of an error may be transient or hard.
- Transient error - Indicates an error that is temporary in nature. Such errors may be caused by response timeouts due to high server loads or scheduled maintenance in progress. The request may be issued successfully at a later time.
- Hard error - Indicates the request has a problem that the system is not able to resolve. These errors are critical and prevent requests from processing.
POST
| Type | HTTP Code | Severity | Description |
|---|---|---|---|
| UNAUTHORIZED | 401 | Hard | Unauthorized: Invalid or missing authentication token |
| INTERNAL_SERVER_ERROR | 500 | Transient | Internal Server Error: An unexpected error occurred while processing the request |
| INVALID_TRACKER_DATA | 422 | Hard | Invalid data: This provider is not configured in corporate or other invalid values in the request |
| MISSING_TRACKER_DATA | 400 | Hard | Invalid data: Delivery Address not provided or other invalid values in the request |
Create Tracker
This endpoint allows businesses to create a tracker using the tracking number provided by the carrier. Trackers enable a unified post-purchase experience for all orders, including alerts, notifications, and tracking pages. To create a tracker, the carrier must be configured for the business, and a valid tracking number is required.
Request Body schema: application/json
| locationExternalId | string <= 100 characters locationExternalId of the pickup location. Either locationExternalId or pickup is mandatory. | ||||||||||||||||||||||||||||||||||||||||||
| trackingId | string <= 100 characters Tracking Id given by the carrier | ||||||||||||||||||||||||||||||||||||||||||
| type | string <= 100 characters Tracker type. Options are delivery/ pickup/ shipping. Defaults to shipping. | ||||||||||||||||||||||||||||||||||||||||||
| groupId | string or null <= 100 characters Group ID allows you to group a number of orders and trackers together. It further helps in providing a combined post-purchase experience for them. | ||||||||||||||||||||||||||||||||||||||||||
object Custom key-value pairs for configurable order attributes. | |||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||
| orderValue | number <double> >= 0 Value of the order in major units as decimals. e.g., 10.00 or 116.50. | ||||||||||||||||||||||||||||||||||||||||||
components-schemas-TimeWindow (object) or null Time Window in which the package will be ready to be picked up. null defaults to ASAP. | |||||||||||||||||||||||||||||||||||||||||||
components-schemas-TimeWindow (object) or null Time Window in which the package must be delivered by. null defaults to ASAP. Not needed for pickup type of tracker. | |||||||||||||||||||||||||||||||||||||||||||
One of: Time Window in which the package must be delivered by. null defaults to ASAP. Not needed for pickup type of tracker. | |||||||||||||||||||||||||||||||||||||||||||
object (components-schemas-Customer) Customer information. | |||||||||||||||||||||||||||||||||||||||||||
object (Tracker-API_components-schemas-Address) Address of the location | |||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||
| pickupInstructions | string <= 10000 characters Pickup instruction for the location. This will override the instructions configured with the pickup location. | ||||||||||||||||||||||||||||||||||||||||||
| deliveryInstructions | string or null <= 10000 characters Delivery instructions for drop-off. | ||||||||||||||||||||||||||||||||||||||||||
Array of objects (Tracker-API_components-schemas-Package) | |||||||||||||||||||||||||||||||||||||||||||
Array | |||||||||||||||||||||||||||||||||||||||||||
| trackerExternalId | string <= 100 characters Unique Id of the tracker generated in your system and configured in our system, has to be unique. | ||||||||||||||||||||||||||||||||||||||||||
| barcodes | Array of strings Barcodes sent to the provider for scanning the packages | ||||||||||||||||||||||||||||||||||||||||||
| createdDate | integer <int64> Date at which the order was originally created in Unix time in milliseconds | ||||||||||||||||||||||||||||||||||||||||||
Array of objects (Tracker-API_components-schemas-Item) | |||||||||||||||||||||||||||||||||||||||||||
Array | |||||||||||||||||||||||||||||||||||||||||||
| locale | |||||||||||||||||||||||||||||||||||||||||||
object Information about the pickup. Either locationExternalId or pickup is mandatory. | |||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||
| provider | string <= 100 characters Name of the provider configured in business | ||||||||||||||||||||||||||||||||||||||||||
Success
Bad Request
Unauthorized
Unprocessed Entity
Internal Server Error
- Payload
- curl
- Node.js
- JavaScript
- PHP
- Python
- C#
- Java
{- "provider": "Self Delivery",
- "locationExternalId": "Self Delivery Store",
- "trackerExternalId": "tracker001",
- "trackingId": "del_004",
- "barcodes": [
- "12312351",
- "77091078"
], - "type": "delivery",
- "orderAttributes": { },
- "orderValue": 100,
- "pickupTime": {
- "startsAt": 1649253600000
}, - "deliveryTime": {
- "endsAt": 1649268000000
}, - "deliveryContact": {
- "name": "Mein Wan",
- "phone": "+12322322323",
- "email": "nycustomer@email.com"
}, - "deliveryAddress": {
- "street1": "8849 North Sam Houston Parkway West",
- "street2": "",
- "city": "Houston",
- "state": "TX",
- "countryCode": "US",
- "postalCode": "77064",
- "latitude": 29.9259823,
- "longitude": -95.5523879,
- "apartmentNumber": ""
}
}- 201
- 400
- 401
- 422
- 500
{- "locationExternalId": "Postmates_Store",
- "trackingId": "del_004",
- "brandExternalId": "trackers_business",
- "orderExternalId": "tracker001",
- "packages": [ ],
- "type": "delivery",
- "orderAttributes": { },
- "orderValue": 100,
- "status": "ORDER_DISPATCHED",
- "pickupTime": {
- "startsAt": 1649253600000,
- "endsAt": null
}, - "deliveryTime": {
- "endsAt": 1649268000000,
- "startsAt": null
}, - "estimatedPickupTime": {
- "startsAt": null
}, - "estimatedDeliveryTime": {
- "startsAt": null
}, - "tips": null,
- "lastLocation": null,
- "driver": null,
- "vehicle": null,
- "provider": {
- "name": "Postmates",
- "serviceType": "Delivery",
- "displayName": "Postmates",
- "id": "2323",
- "serviceId": "delivery"
}, - "currencyCode": "USD",
- "deliveryAddress": {
- "street1": "8849 North Sam Houston Parkway West",
- "street2": "",
- "city": "Houston",
- "state": "TX",
- "countryCode": "US",
- "postalCode": "77064",
- "latitude": 29.9259823,
- "longitude": -95.5523879,
- "apartmentNumber": ""
}, - "deliveryContact": {
- "name": "Mei Wan",
- "phone": "+12323232323",
- "email": "nycustomer@email.com"
}, - "deliveryInstructions": null,
- "pickupInstructions": "location pickupInstructions",
- "groupId": null,
- "timeZone": "America/Chicago",
- "pickupContact": {
- "name": "Peter Brown",
- "phone": "+12142342232"
}, - "pickupAddress": {
- "street1": "8849 North Sam Houston Parkway West",
- "street2": "",
- "city": "Houston",
- "postalCode": "77064",
- "countryCode": "US",
- "state": "TX",
- "latitude": 29.9259823,
- "longitude": -95.5523879
}, - "id": "62a051c1729b5dfcdeae1870",
- "referenceLinks": {
- "customerWebflowUrl": null
}, - "trackerExternalId": "tracker001",
- "source": {
- "type": "lynk",
- "id": "34567809876500",
- "name": "Shopify"
}
}