Skip to content

Landed Cost Quote

APIs calculate estimated duties and taxes for a basket of items (to be shipped) being shipped to a single country or for a single item (to be shipped) across multiple destination countries.

Calculate Duties and Taxes for Single Country

Request

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.

Security
bearerAuth
Query
calculationTypestring

The type of calculation to be performed. Possible values are:

  • duty: Only the duty will be returned
  • tax: Only the tax will be returned
  • duty_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.
Enum:"duty""tax""duty_tax"
Example:calculationType=duty_tax
Headers
X-PB-TransactionIdstring

A unique Transaction ID provided by the partner, which is used to enable debugging and linking between the client's transaction and the system.Allowed characters limit is 36.

Content-Typestringrequired

The media type of the request body.

Value:"application/json"
Bodyapplication/json
exportCountryCodestring, [ 2 .. 3 ] charactersrequired

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).

Example:"US"
destinationCountryCodestring, [ 2 .. 3 ] charactersrequired

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).

Example:"CA"
destinationStateProvincestring, = 2 characters

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:
    • ON for Canada
    • SP for Brazil
Example:"ON"
serviceIdstring

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 COURIER and POSTAL.
  • If not provided, COURIER will be used as the default serviceId.
Enum:"COURIER""POSTAL"
Example:"COURIER"
responseCurrencyCodestring, = 3 characters

The currency in which the quote should be returned. This must be a valid ISO 4217 currency code

  • Defaults to USD if not provided.
Example:"USD"
pricingCurrencyCodestring, = 3 charactersrequired

Currency code associated with the amounts passed in the request.

  • Must be a valid ISO 4217 currency code.
Example:"USD"
itemsArray of objectsrequired

List of item objects for the quote.

  • Maximum number of items is 200.
Example:
[ { "itemId": "ITEM-1234", "hsTariffCode": "8471300000", "weight": { … }, "dimension": { … }, "volumes": [ … ], "unitPrice": 100, "quantity": 1, "originCountryCode": "US" } ]
shippingAmountnumber, (float)

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.
Example:10
handlingAmountnumber, (float)

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.
Example:6
insuranceAmountnumber, (float)

The insurance cost in the pricing currency.

  • Used in duty and tax calculations for countries that require insurance cost.
  • If not provided, zero will be assumed.
  • Must be 0 or greater.
Example:5
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
  }'

Responses

The requested Landed Cost Quote has been retrived successfully.

Bodyapplication/json
exportCountryCodestring
  • The country from which the shipment is exported.
  • exportCountryCode always returned in response.
Example:"US"
destinationCountryCodestring
  • Country to which the shipment is being imported.
  • destinationCountryCode always returned in response.
Example:"CA"
destinationStateProvincestring
  • Region or state within the destination country.
  • destinationStateProvince may or may not returned in the response depending on the destination countries.
Example:"ON"
serviceIdstring
  • Service used for the shipment.Valid values are COURIER and POSTAL.
  • serviceId always returned in response.
Example:"Courier"
responseCurrencyCodestring
  • The currency in which the quote is returned.
  • responseCurrencyCode always returned in response.
Example:"USD"
itemsArray of objects
  • List of items with duty and tax breakdown.
  • Items always returned in the response.
Example:
[ { "duties": [ … ], "itemId": "ITEM-1234", "quantity": 1, "taxes": [ … ] } ]
importationFeesArray of objects
  • List of additional importation fees that may apply at the time of customs clearance.
  • importationFees may or may not returned in the response.
Example:
[ { "amount": 0, "calculationMethod": "5% FOB", "countryThreshold": 215, "threshold": 150, "thresholdCostBase": "FOB", "thresholdCostBaseValue": 100, "type": "Merchandise Processing Fee" } ]
totalChargesobject

Summary of all duty, tax, and importation fee totals.

  • Includes item value, shipping and handling charges, calculated duties, taxes, and total cost.
  • totalCharges always returned in response in the response currency.
Example:
{ "exchangeRates": [ { … }, { … }, { … } ], "sumTotal": 134, "totalDuty": 0, "totalHandlingAmount": 6, "totalImportationFees": 0, "totalInsuranceAmount": 5, "totalShippingAmount": 10, "totalTax": 13, "totalValue": 100 }
messagesArray of strings

Any additional information that may apply to the quote. This fiels may or may not returned in the response.

Example:
[ "FTA rates applied.", "Duty DeMinimis rules not applied.", "Tax DeMinimis rules not applied." ]
Response
{ "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 } }