POST /landed-cost
The Landed Cost section allows further information around products being sold to be provided. In return the duty, tax and shipping charges are calculated in real time and provides transparency about any extra costs the buyer may have to pay before they reach them.
Servers
- https://api-mock.dhl.com/mydhlapi
- https://express.api.dhl.com/mydhlapi/test
- https://express.api.dhl.com/mydhlapi
Request headers
Name | Type | Required | Description |
---|---|---|---|
Plugin-Version |
String | No |
Please provide version of the plugin (applicable to 3PV only) |
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Shipping-System-Platform-Version |
String | No |
Please provide version of the shipping platform (applicable to 3PV only) |
Webstore-Platform-Version |
String | No |
Please provide version of the webstore platform (applicable to 3PV only) |
Message-Reference-Date |
String | No |
Optional reference date in the HTTP-date format https://tools.ietf.org/html/rfc7231#section-7.1.1.2 |
Webstore-Platform-Name |
String | No |
Please provide name of the webstore platform (applicable to 3PV only) |
Shipping-System-Platform-Name |
String | No |
Please provide name of the shipping platform(applicable to 3PV only) |
Message-Reference |
String | No |
Please provide message reference |
Plugin-Name |
String | No |
Please provide name of the plugin (applicable to 3PV only) |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
customerDetails |
Object | Yes |
Here you need to define all the parties needed to ship the package |
customerDetails.shipperDetails |
Object | Yes |
Address defintion for rating related services |
customerDetails.shipperDetails.addressLine3 |
String | No |
Please enter address line 3 |
customerDetails.shipperDetails.countyName |
String | No |
Please enter your suburb or county name |
customerDetails.shipperDetails.postalCode |
String | Yes |
Please enter your postcode or leave empty if the address doesn't have a postcode |
customerDetails.shipperDetails.cityName |
String | Yes |
Please enter the city |
customerDetails.shipperDetails.provinceCode |
String | No |
Please enter your province or state code |
customerDetails.shipperDetails.countryCode |
String | Yes |
Please enter ISO country code |
customerDetails.shipperDetails.addressLine1 |
String | No |
Please enter address line 1 |
customerDetails.shipperDetails.addressLine2 |
String | No |
Please enter address line 3 |
customerDetails.receiverDetails |
Object | Yes |
Address defintion for rating related services |
customerDetails.receiverDetails.addressLine3 |
String | No |
Please enter address line 3 |
customerDetails.receiverDetails.countyName |
String | No |
Please enter your suburb or county name |
customerDetails.receiverDetails.postalCode |
String | Yes |
Please enter your postcode or leave empty if the address doesn't have a postcode |
customerDetails.receiverDetails.cityName |
String | Yes |
Please enter the city |
customerDetails.receiverDetails.provinceCode |
String | No |
Please enter your province or state code |
customerDetails.receiverDetails.countryCode |
String | Yes |
Please enter ISO country code |
customerDetails.receiverDetails.addressLine1 |
String | No |
Please enter address line 1 |
customerDetails.receiverDetails.addressLine2 |
String | No |
Please enter address line 3 |
transportationMode |
String | No |
Possible values:
|
packages[] |
Array | Yes |
Here you can define properties per package |
packages[].dimensions |
Object | Yes |
Dimensions of the package |
packages[].dimensions.height |
Number | Yes |
Height of the package |
packages[].dimensions.length |
Number | Yes |
Length of the package |
packages[].dimensions.width |
Number | Yes |
Width of the package |
packages[].typeCode |
String | No |
Please contact your DHL Express representative if you wish to use a DHL specific package otherwise ignore this element. Possible values:
|
packages[].weight |
Number | Yes |
The weight of the package. |
localProductCode |
String | No |
Please enter DHL Express Local Product code |
accounts[] |
Array | Yes |
Please enter all the DHL Express accounts and types to be used for this shipment |
accounts[].typeCode |
String | Yes |
Please enter DHL Express acount type Possible values:
|
accounts[].number |
String | Yes |
Please enter DHL Express account number |
shipmentPurpose |
String | No |
Possible values: Possible values:
|
merchantSelectedCarrierName |
String | No |
Carrier being used to ship with. Allowed values are: Possible values:
|
items[] |
Array | Yes | |
items[].description |
String | No |
Item full description |
items[].unitPriceCurrencyCode |
String | Yes |
Currency code of the Unit Price |
items[].number |
Number | Yes |
Line item number |
items[].brand |
String | No |
Item's brand |
items[].quantity |
Number | Yes |
Total quantity of the item(s) to be shipped. |
items[].customsValueCurrencyCode |
String | No |
not used |
items[].estimatedTariffRateType |
String | No |
Please enter Tariff Rate Type - default_rate,derived_rate,highest_rate,center_rate,lowest_rate Possible values:
|
items[].customsValue |
Number | No |
not used |
items[].commodityCode |
String | No |
commodityCode is mandatory if estimatedTariffRateType ('derived_rate' or 'highest_rate' or 'lowest_rate' or 'center_rate') not provided in the request otherwise it is considered as Optional. |
items[].manufacturerCountry |
String | No |
ISO Country code of the goods manufacturer |
items[].category |
String | No |
commodityCode category can be retrieved via referenceData API/ commodityCategory dataset. |
items[].name |
String | No |
Name of the item |
items[].partNumber |
String | No |
SKU number |
items[].additionalQuantityDefinitions[] |
Array | No | |
items[].additionalQuantityDefinitions[].typeCode |
String | Yes |
Item additional quantity value UOM: |
items[].additionalQuantityDefinitions[].amount |
Number | Yes |
An Item's additional quantity value: |
items[].goodsCharacteristics[] |
Array | No | |
items[].goodsCharacteristics[].typeCode |
String | Yes |
Please contact Express country representative to provide all applicable codes |
items[].goodsCharacteristics[].value |
String | Yes |
Value related to the code |
items[].weight |
Number | No |
Weight of the item |
items[].weightUnitOfMeasurement |
String | No |
Unit of measurement Possible values:
|
items[].quantityType |
String | No |
Please provide quantitiy type. prt - part, box - box Possible values:
|
items[].unitPrice |
Number | Yes |
Product Unit price |
currencyCode |
String | Yes |
Currency code for the item price (the product being sold) and freight charge. The Landed Cost calculation result will be returned in this defined currency |
isInsuranceRequested |
Boolean | No |
Set this true if you ask for DHL Express insurance service |
unitOfMeasurement |
String | Yes |
Please enter Unit of measurement - metric,imperial Possible values:
|
getTariffFormula |
Boolean | No |
Allowed values 'true' - tariff formula on item and shipment level will be returned, 'false' - tariff formula on item and shipment level will not be returned |
isCustomsDeclarable |
Boolean | Yes |
Set this to true is shipment contains declarable content |
charges[] |
Array | No |
Please provide any additional charges you would like to include in total cost calculation |
charges[].currencyCode |
String | Yes | |
charges[].typeCode |
String | Yes |
Possible values:
|
charges[].amount |
Number | Yes | |
isDTPRequested |
Boolean | No |
Set this to true if you want DHL EXpress product Duties and Taxes Paid outside shipment destination |
getCostBreakdown |
Boolean | Yes |
Allowed values 'true' - item cost breakdown will be returned, 'false' - item cost breakdown will not be returned |
productCode |
String | No |
Please enter DHL Express Global Product code |
getQuotationID |
Boolean | No |
Allowed values 'true' - quotation ID on shipment level will be returned, 'false' - quotation ID on shipment level will not be returned |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.