Calculator. Calculation of customs duties when delivering to the Russian Federation
The method is used by an e-shop to obtain sums of customs duties when formalizing delivery to the Russian Federation with the help of a customs Broker (DDP)
Request for calculation of customs duties and Broker's fee
To use it, send a POST-request to the URL:
Environment | URL |
---|---|
testing | https://api.edu.cdek.ru/v2/ddp |
production | https://api.cdek.ru/v2/ddp |
Body of the request
Must be sent in the JSON format (Content-Type: application/json).
The following fields are supported:
№ | Name | Description | Type | Mandatory |
---|---|---|---|---|
1 | weight | Weight of goods, gram | integer | yes |
2 | cost | Price of goods, Russian ruble | double | yes |
Answer to calculation of customs duties and Broker's fee
The answer is returned in the JSON format:
№ | Name | Description | Type | Mandatory |
---|---|---|---|---|
1 | cost | Customs value of the package, Russian ruble | double | yes |
2 | weight | Weight of goods, gram | integer | yes |
3 | customs_duty | Amount of customs duty | double | yes |
4 | customs_tariff | Amount of customs duty | double | yes |
5 | commission | Amount of Broker's fee | double | yes |
6 | total_amount | Total sum | double | yes |
7 | errors | List of errors | error | no |
7.1 | code | Error code | string | yes |
7.2 | message | Description of the error | string | yes |
{ "weight": "100000", "cost": "5000000" } |
{ "cost": 100000, "weight": 5000000, "customs_duty": 92054104, "customs_tariff": 50000, "commission": 4605205, "total_amount": 96709309, } |
© 2000—2022, Курьерская компания СДЭК