Skip to content

Validate Destination​

POST
/api/v1/shipment/price-calculations/validate-destination

Checks whether the destination country, city and zip code are valid for price calculation.

Parameters​

Header Parameters

Authorization*

Token returned by the Get Token request, with the Bearer prefix

Typestring
Required
Example"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.signature"
Accept-Language

Language of the name fields in the response (country, unit of measure, status and package additional fee names) and of validation messages. English when it starts with en (e.g. en, en-US), Turkish otherwise. Success, business rule, authorization and 503 messages are always in Turkish.

Typestring
Examples
"tr"
"en"
Default"tr"

Request Body​

application/json
JSON
{
"countryId": 3,
"city": "NEW YORK",
"zipCode": "10001"
}

Responses​

Destination is valid for price calculation

application/json
JSON
{
"success": true,
"message": "Varış adresi fiyat hesabına uygun"
}

Playground​

Headers
Body

Samples​

cURL
JavaScript
PHP
Python