⚠️ Deprecated
This endpoint is deprecated and will be removed in the future. Use its API v1 equivalent for new integrations.
Deprecated
Validate Country Information
POST
/api/calculate/price/country/validate
Checks that the country is defined, whether the city or postal code is required for the country, and the postal code format. It does not check whether the city or postal code exists in the country. Requires the PRICE_CALCULATION or SHIPMENTS permission.
Parameters
Header Parameters
Authorization*
API key
Typestring
RequiredExample
"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.KMUFsIDTnFmyG3nMiGM6H9FNFUROf3wh7SmqJp-QV30"Accept-Language
Response language: tr or en. Sets error messages and language-dependent texts; tr is used when no recognized language is given.
Typestring
Examples
"tr""en"Request Body
application/json
JSON
{
"countryId": 3,
"city": "NEW YORK",
"zipCode": "10001"
}
Responses
Country Information Validated Successfully
