Skip to content

⚠️ Deprecated

This endpoint is deprecated and will be removed in the future. Use its API v1 equivalent for new integrations.

Deprecated

Get Countries​

GET
/country/all

Lists countries; can be filtered by ID, code, search and guarantee status. No token required.

Parameters​

Header Parameters

Accept-Language

Response language: tr or en. Sets error messages and language-dependent names; tr is used when no recognized language is given.

Typestring
Examples
"tr"
"en"

Query Parameters

id

Country ID

Typeinteger
Example234
Minimum1
code

Country code

Typestring
Example"TR"
search

Countries whose ID equals this value or whose English name or code contains it

Typestring
Example"TUR"
isGuarantee

1 returns guaranteed and 0 non-guaranteed countries; other values are ignored

Typestring
Valid values
"0""1"
sortBy

Sort field

Typestring
Valid values
"id""code""name""orderNumber""isGuarantee"
Default"orderNumber"
sortOrder

Sort order: ASC / DESC or asc / desc

Typestring
Valid values
"ASC""DESC"
Default"DESC"

Responses​

Countries successfully retrieved

application/json
JSON
[
{
"id": 234,
"code": "TR",
"name": "Türkiye",
"flagW40": "https://cdn.zemlog.com/flags/w40/tr.png",
"flagW20": "https://cdn.zemlog.com/flags/w20/tr.png",
"phoneCode": "+90",
"isUpsService": true,
"taxType": "string",
"taxMaxValidPrice": 0
}
]

Playground​

Headers
Variables
Key
Value

Samples​

cURL
JavaScript
PHP
Python