Create a tracking
POST/api/v1/routers/create
Each request creates 1–40 trackings. For larger batches, use Create trackings (async).
Parameters
Section titled “Parameters”data is an array of 1–40 trackings. referId must be unique within the batch.
dataarrayRequiredTrackings to create.
referIdstringRequiredA business ID from your system, such as an order ID. Max 128 characters.
rawTrackingNumberstringRequiredCarrier tracking number. Max 300 characters.
metadata.carrierCodestringoptionalCarrier code. If omitted, Tracksuite identifies the carrier from the number. Max 64 characters.
Return
Section titled “Return”success lists queued trackings. errors lists trackings that were not queued. Each item in the batch is accepted or rejected on its own, so one 200 can contain both. This response only says which trackings entered the processing queue. Read the timeline later from Query a tracking or a webhook. This response has no shipment timeline.
successarrayTrackings that entered the processing queue.
referIdstringBusiness ID from the request.
trackingNumberstringTracking number accepted for this item.
carrierCodestringMatched carrier code.
carrierNamestringMatched carrier name.
errorsarrayTrackings that were not queued.
referIdstringBusiness ID from the request.
messagestringWhy this tracking was not queued.
