Query trackings (batch)
POST/api/v1/routers/details
Batch form of Query a tracking. Pass trackingNumbers, referIds, or both. Each list allows at most 40 values, and at least one list must be non-empty. Each item is resolved on its own, so data and errors can both contain items.
Parameters
Section titled “Parameters”trackingNumbersarrayoptionalTracking numbers. Each value max 128 characters. At most 40.
referIdsarrayoptionalBusiness IDs. Each value max 128 characters. At most 40.
firstRequestRangeobjectoptionalLimit matches to this time range. Pass start and end together.
Fields
startstringRequiredRange start, ISO 8601.
endstringRequiredRange end, ISO 8601.
Return
Section titled “Return”Each data item matches Query a tracking. summary also includes firstTime, firstState, firstCity, firstZipCode, latestState, latestCity, and latestZipCode.
dataarrayTrackings that were found, with timelines.
errorsarrayItems that were not returned in
data.Fields
referIdstring | nullBusiness ID, when the request used
referIds.trackingNumberstring | nullTracking number, when the request used
trackingNumbers.codestringNOT_FOUND, DETAIL_NOT_FOUND, PROCESSING, UPDATE_FAILED, or CREATE_FAILED.messagestringWhy this item was not returned.
