- Calculate Duties and Taxes for Single Country
This API calculates estimated duties and taxes for a basket of items being shipped to a single country. A landed cost is the total of all charges involved in a crossborder transaction, including transportation, import duties and taxes, shipping insurance, and related fees. Use this API to power a superior “duty-paid” checkout experience with accurate D&T estimates, and/or to inform business planning around import costs.
The type of calculation to be performed. Possible values are:
duty: Only the duty will be returnedtax: Only the tax will be returnedduty_tax: Both duty and tax will be returned (default if not provided)
Note: Duty and/or tax may still be calculated internally if required as part of determining the other, but the results will not be included in the response based on the calculation type.
The country from which the shipment is exported. This must be a valid ISO 3166-1 alpha-2 or alpha-3 country code (e.g., US or USA).
The country to which the shipment is intended. This must be a valid ISO 3166-1 alpha-2 or alpha-3 country code (e.g., US or USA).
Region code in the country of destination.
- For countries that require a state or province (CA and BR), if not provided, the default will be:
ONfor CanadaSPfor Brazil
Shipping service type used. Customs processing and related fees can vary between courier shipments and parcels shipped and cleared via the International Postal System. For the most accurate duty and tax estimation, specify the service type related to your shipment
- Valid values are
COURIERandPOSTAL. - If not provided,
COURIERwill be used as the default serviceId.
The currency in which the quote should be returned. This must be a valid ISO 4217 currency code
- Defaults to
USDif not provided.
Currency code associated with the amounts passed in the request.
- Must be a valid ISO 4217 currency code.
List of item objects for the quote.
- Maximum number of items is 200.
[ { "itemId": "ITEM-1234", "hsTariffCode": "8471300000", "weight": { … }, "dimension": { … }, "volumes": [ … ], "unitPrice": 100, "quantity": 1, "originCountryCode": "US" } ]
The end-to-end shipping cost in the pricing currency.
- Used in duty and tax calculations for countries that require shipping cost.
- If not provided, zero will be assumed.
- Must be 0 or greater.
The handling cost in the pricing currency.
- Used in duty and tax calculations for countries that require handling cost.
- If not provided, zero will be assumed.
- Must be 0 or greater.
- https://api-dev.sendpro360.pitneycloud.com/shippinghttps://api-dev.sendpro360.pitneycloud.com/shipping/api/v1/crossborder-services/landedCostQuote
- https://api-qa.sendpro360.pitneycloud.com/shippinghttps://api-qa.sendpro360.pitneycloud.com/shipping/api/v1/crossborder-services/landedCostQuote
- Sandbox Serverhttps://api-sandbox.sendpro360.pitneybowes.com/shipping/api/v1/crossborder-services/landedCostQuote
- Production Server (uses live data)https://api.sendpro360.pitneybowes.com/shipping/api/v1/crossborder-services/landedCostQuote
curl -i -X POST \
'https://api-dev.sendpro360.pitneycloud.com/shipping/api/v1/crossborder-services/landedCostQuote?calculationType=duty_tax' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'X-PB-TransactionId: string' \
-d '{
"exportCountryCode": "US",
"destinationCountryCode": "CA",
"destinationStateProvince": "ON",
"serviceId": "COURIER",
"responseCurrencyCode": "USD",
"pricingCurrencyCode": "USD",
"items": [
{
"itemId": "ITEM-1234",
"hsTariffCode": "8471300000",
"weight": {
"value": 10,
"unitOfMeasurement": "KG"
},
"dimension": {
"length": 11,
"height": 12,
"width": 32,
"unitOfMeasurement": "IN"
},
"volumes": [
{
"value": 4,
"unitOfMeasurement": "L"
}
],
"unitPrice": 100,
"quantity": 1,
"originCountryCode": "US"
}
],
"shippingAmount": 10,
"handlingAmount": 6,
"insuranceAmount": 5
}'The requested Landed Cost Quote has been retrived successfully.
- The country from which the shipment is exported.
exportCountryCodealways returned in response.
- Country to which the shipment is being imported.
destinationCountryCodealways returned in response.
- Region or state within the destination country.
destinationStateProvincemay or may not returned in the response depending on the destination countries.
- Service used for the shipment.Valid values are
COURIERandPOSTAL. serviceIdalways returned in response.
- The currency in which the quote is returned.
responseCurrencyCodealways returned in response.
- List of items with duty and tax breakdown.
Itemsalways returned in the response.
[ { "duties": [ … ], "itemId": "ITEM-1234", "quantity": 1, "taxes": [ … ] } ]
- List of additional importation fees that may apply at the time of customs clearance.
importationFeesmay or may not returned in the response.
[ { "amount": 0, "calculationMethod": "5% FOB", "countryThreshold": 215, "threshold": 150, "thresholdCostBase": "FOB", "thresholdCostBaseValue": 100, "type": "Merchandise Processing Fee" } ]
Summary of all duty, tax, and importation fee totals.
- Includes item value, shipping and handling charges, calculated duties, taxes, and total cost.
totalChargesalways returned in response in the response currency.
{ "exchangeRates": [ { … }, { … }, { … } ], "sumTotal": 134, "totalDuty": 0, "totalHandlingAmount": 6, "totalImportationFees": 0, "totalInsuranceAmount": 5, "totalShippingAmount": 10, "totalTax": 13, "totalValue": 100 }
{ "destinationCountryCode": "CA", "destinationStateProvince": "ON", "exportCountryCode": "US", "importationFees": [ { … } ], "items": [ { … } ], "messages": [ "FTA rates applied.", "Duty DeMinimis rules not applied.", "Tax DeMinimis rules not applied." ], "responseCurrencyCode": "USD", "serviceId": "COURIER", "totalCharges": { "exchangeRates": [ … ], "sumTotal": 134, "totalDuty": 0, "totalHandlingAmount": 6, "totalImportationFees": 0, "totalInsuranceAmount": 5, "totalShippingAmount": 10, "totalTax": 13, "totalValue": 100 } }