Page tree
Skip to end of metadata
Go to start of metadata

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

testinghttps://api.edu.cdek.ru/v2/ddp
productionhttps://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
yes/no

1weightWeight of goods, gramintegeryes
2costPrice of goods, Russian rubledoubleyes

Answer to calculation of customs duties and Broker's fee

The answer is returned in the JSON format:

Name

Description

Type

Mandatory
yes/no

1costCustoms value of the package, Russian rubledoubleyes
2weightWeight of goods, gramintegeryes
3customs_duty

Amount of customs duty
Zero if no customs duty payment required
Currency: Russian ruble

doubleyes
4customs_tariff

Amount of customs duty
Zero if no customs duty payment required
Currency: Russian ruble

doubleyes
5commission

Amount of Broker's fee
Zero if no customs duty payment required
Currency: Russian ruble

doubleyes
6total_amount

Total sum
Zero if no customs duty payment required
Currency: Russian ruble

doubleyes
7errorsList of errorserrorno
7.1codeError codestringyes
7.2messageDescription of the errorstring

yes



Example request
{
  "weight": "100000",
  "cost": "5000000"
}
Example answer
{
  "cost": 100000,
  "weight": 5000000,
  "customs_duty": 92054104,
  "customs_tariff": 50000,
  "commission": 4605205,
  "total_amount": 96709309,
}
  • No labels