The Time In Transit API provides estimated delivery times for various UPS shipping services, between specified locations.
Key Business Values:
- Enhanced Customer Experience: Allows businesses provide accurate delivery estimates to their customers, enhancing customer service.
- Operational Efficiency: Helps in logistics planning by providing transit times for different UPS services.
TimeInTransit
SecurityOAuth2
Request
header Parameters
Request Body schema: application/json
Generate sample code for popular API requests by selecting an example below. To view a full sample request and response, first click "Authorize" and enter your application credentials, then populate the required parameters above and click "Try it out".
Responses
200
successful operation
400
Invalid Request
401
Unauthorized Request
403
Blocked Merchant
429
Rate Limit Exceeded
post/shipments/{version}/transittimes
Request samples
- Payload
- curl
- Node.js
- JavaScript
- PHP
- Python
- C#
- Java
application/json
{- "originCountryCode": "DE",
- "originStateProvince": "",
- "originCityName": "",
- "originTownName": "",
- "originPostalCode": "10703",
- "destinationCountryCode": "US",
- "destinationStateProvince": "NH",
- "destinationCityName": "MANCHESTER",
- "destinationTownName": "",
- "destinationPostalCode": "03104",
- "weight": "10.5",
- "weightUnitOfMeasure": "LBS",
- "shipmentContentsValue": "10.5",
- "shipmentContentsCurrencyCode": "USD",
- "billType": "03",
- "shipDate": "2019-05-01",
- "shipTime": "",
- "residentialIndicator": "",
- "avvFlag": true,
- "numberOfPackages": "1"
}
Response samples
- 200
- 400
- 401
- 403
- 429
application/json
{- "validationList": {
- "invalidFieldList": [
- "string"
], - "invalidFieldListCodes": [
- "string"
], - "destinationAmbiguous": true,
- "originAmbiguous": true
}, - "destinationPickList": [
- {
- "countryName": "string",
- "countryCode": "st",
- "stateProvince": "string",
- "city": "string",
- "town": "string",
- "postalCode": "string",
- "postalCodeLow": "string",
- "postalCodeHigh": "string"
}
], - "originPickList": [
- {
- "countryName": "string",
- "countryCode": "st",
- "stateProvince": "string",
- "city": "string",
- "town": "string",
- "postalCode": "string",
- "postalCodeLow": "string",
- "postalCodeHigh": "string"
}
], - "emsResponse": {
- "shipDate": "stringst",
- "shipTime": "string",
- "serviceLevel": "str",
- "billType": "st",
- "dutyType": "st",
- "residentialIndicator": "st",
- "destinationCountryName": "string",
- "destinationCountryCode": "st",
- "destinationPostalCode": "string",
- "destinationPostalCodeLow": "string",
- "destinationPostalCodeHigh": "string",
- "destinationStateProvince": "string",
- "destinationCityName": "string",
- "originCountryName": "string",
- "originCountryCode": "st",
- "originPostalCode": "string",
- "originPostalCodeLow": "string",
- "originPostalCodeHigh": "string",
- "originStateProvince": "string",
- "originCityName": "string",
- "weight": "string",
- "weightUnitOfMeasure": "str",
- "shipmentContentsValue": "string",
- "shipmentContentsCurrencyCode": "str",
- "guaranteeSuspended": true,
- "numberOfServices": 1,
- "services": [
- {
- "serviceLevel": "st",
- "serviceLevelDescription": "string",
- "shipDate": "stringstri",
- "deliveryDate": "stringstri",
- "commitTime": "stringst",
- "deliveryTime": "stringst",
- "deliveryDayOfWeek": "str",
- "nextDayPickupIndicator": "s",
- "saturdayPickupIndicator": "s",
- "saturdayDeliveryDate": "stringstri",
- "saturdayDeliveryTime": "stringst",
- "serviceRemarksText": "string",
- "guaranteeIndicator": "s",
- "totalTransitDays": 1,
- "businessTransitDays": 1,
- "restDaysCount": 1,
- "holidayCount": 1,
- "delayCount": 1,
- "pickupDate": "stringstri",
- "pickupTime": "stringst",
- "cstccutoffTime": "stringst",
- "poddate": "stringstri",
- "poddays": 1
}
]
}
}