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.0.1
2 providers

Retrieve Shipment Status

Get the actual shipment status.

Input
Shipment tracking number
Carrier
Result
Carrier
Shipment tracking number
origin
destination
status
events
Estimated date and time of delivery

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
Identifier of shipment
carrier
Shipment carrier identification

Example

Result (list of objects)

carrier
Shipment carrier identification
trackingNumber
Identifier of shipment
origin
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.
destination
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.
status
timestamp
statusCode
statusText
location
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
timestamp
statusCode
statusText
location
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