For the complete documentation index, see llms.txt. This page is also available as Markdown.

Delivery cost

Calculate delivery cost

post
/shipments/calculations

This API method allows you to calculate the estimated delivery cost and delivery time for your cargo. The delivery cost and delivery time are calculated based on factors such as weight, dimensions, destination, and shipping method. By providing the necessary details of your cargo and shipment, you can obtain an estimated cost for delivering the goods. The response will typically include the calculated cost and the scheduled delivery date based on the provided information.

🔹Description of control elements:

SCHEMA

Displays the full technical structure of the request or response, including field names, data types, required fields, allowed values, and validation rules.

  • Single line description A description that fits into a single line; any text that does not fit remains hidden.

  • Multiline description An expanded description that displays more than one line of text.

EXAMPLE

Shows a ready-made sample JSON with correctly formatted values to demonstrate how a valid request or response should look.

Authorizations
AuthorizationstringRequired

Authorization JWT-token with a lifetime of 1 hour in header

Body
payerTypestring · enumOptional

Identifies who is responsible for the payment of delivery services. The payer type determines which party bears the cost:

  • Sender: The party sending the goods pays for the delivery.
  • Recipient: The party receiving the goods is responsible for the delivery cost.
  • ThirdPerson: A third party pays for delivery.
  • For shipments within Europe or from Europe to Ukraine, the field payerContractNumber must be provided.
  • For shipments from Ukraine, payerContractNumber is not required.
Example: SenderPossible values:
payerContractNumberstringOptional

Required when payerType is ThirdPerson for shipments within Europe or from Europe to Ukraine. Specifies the contract number of the third-party payer (e.g., CNPP-00001797).

Example: CNPP-00001797
deliveryTypesarray · enumOptional

Defines the list of tariff types to be used for shipment cost calculation. The calculation response returns pricing results for each submitted delivery type.

  • standard: Standard international delivery tariff.
  • economy: Economy international delivery tariff.
  • express: Express international delivery tariff.

If the field is not provided, the applicable tariff is determined automatically according to current business rules, and the existing calculation behavior remains unchanged.

🔹This field is optional.

Possible values:
Responses
200

Successful cost calculation

application/json
scheduledDeliveryDatestring · date-time · nullableOptional

Estimated delivery date based on routing and service level, subject to change based on logistics and external factors. Date in ISO 8601 format.

Example: 2023-04-14T09:00:00Z
post
/shipments/calculations

Last updated