Overview
Retrieve tracking updates to keep your marketplace order statuses in sync after Turtles accepts an order. Turtles returns updates keyed bypurchaseOrderNumber, which should match the internal order ID, transaction ID, or associated ID you sent when you created the marketplace order.
Base URL
Authentication
Tracking endpoints use HTTP Basic Auth with your Turtles API credentials.Endpoint
| Query parameter | Type | Description |
|---|---|---|
updated_since | integer | Unix timestamp in seconds. Use the timestamp from your last successful poll. |
Example
Response
Turtles returns a JSON object keyed bypurchaseOrderNumber.
| Field | Type | Description |
|---|---|---|
status | string | Turtles order status, for example Received, Processing shipment, Shipped, or Delivered. |
updated_at | string | Last update timestamp. |
trackings | array | Tracking records for the order. |
trackings[].carrier | string | Carrier name. |
trackings[].tracking | string | Tracking number. |
trackings[].url | string | Carrier tracking URL. |
trackings[].delivery_status | string | Carrier delivery status, for example inforeceived, intransit, or delivered. |
vendor_order_id | number | Turtles vendor order ID. |
Suggested status handling
| Turtles value | Suggested marketplace status |
|---|---|
Delivered order status or delivered delivery status | Delivered |
Shipped order status | Shipped |
intransit or inforeceived delivery status | Shipped |
Processing shipment or Received order status | Processing |
Canceled or Cancelled order status | Canceled |
Suggested sync flow
- Store the Unix timestamp from your last successful tracking poll.
- Call the tracking endpoint with
updated_since. - For each response key, find the marketplace order with the same internal reference.
- Save the carrier, tracking number, tracking URL, and latest status.
- Advance your stored poll timestamp after all updates are processed successfully.