You are viewing a section of Superface that will be deprecated in Q4 2023. Until then, you can continue to use it as you have before but we recommend that you migrate to our latest version soon. For more details visit superface.ai/docs/migrate.

Shipment information

delivery-tracking/shipment-info@1.1.1
2 providers

Retrieve Shipment Status

Get the current shipment status.

Input
Shipment tracking number
Carrier
Result
Carrier
Status
Origin
Shipment tracking number
Destination
Events
Estimated delivery date

1.Choose a provider

2.Use ShipmentInfo with mock in your code

Below instructions are for our Node.js SDK. Use OneService for other languages.
npm i @superfaceai/one-sdk

Structure details

Input (object)

trackingNumber
The identifier of shipment.
carrier
The shipment carrier identification to narrow down the results.

Example

Result (list of objects)

carrier
The name of the carrier responsible for delivery.
status
The latest shipment event.
timestamp
The date and time in ISO 8601 format of the event.
statusCode
The shipment status of the event.
statusText
A description of the current shipment status.
location
The location of the shipment.
address
countryCode
A short text string code (ISO 3166-1 alpha-2 country code) specifying the country.
postalCode
Text specifying the postal code for an address.
addressLocality
Text specifying the name of the locality, for example a city.
streetAddress
The street address expressed as free form text. The street address is printed on paper as the first lines below the name.
origin
A postal address with the origin of the shipment.
address
countryCode
A short text string code (ISO 3166-1 alpha-2 country code) specifying the country.
postalCode
Text specifying the postal code for an address.
addressLocality
Text specifying the name of the locality, for example a city.
streetAddress
The street address expressed as free form text. The street address is printed on paper as the first lines below the name.
trackingNumber
The identifier of shipment.
destination
A postal shipping address.
address
countryCode
A short text string code (ISO 3166-1 alpha-2 country code) specifying the country.
postalCode
Text specifying the postal code for an address.
addressLocality
Text specifying the name of the locality, for example a city.
streetAddress
The street address expressed as free form text. The street address is printed on paper as the first lines below the name.
events
A list of delivery tracking events.
timestamp
The date and time in ISO 8601 format of the event.
statusCode
The shipment status of the event.
statusText
A description of the current shipment status.
location
The location of the shipment.
address
countryCode
A short text string code (ISO 3166-1 alpha-2 country code) specifying the country.
postalCode
Text specifying the postal code for an address.
addressLocality
Text specifying the name of the locality, for example a city.
streetAddress
The street address expressed as free form text. The street address is printed on paper as the first lines below the name.
estimatedDeliveryDate
Estimated date and time of delivery.

Example

Implementation details

Provider
mock
Use case
ShipmentInfo
Author
@superface
Source
Verified