Reference
List countries
The countries your shipping company serves.
GET
/v1/countriesBearer tokenReturns JSONSuccess 200
A country is listed when the shipping company has a priced route from or to it, or covers a city in it. canShipFrom and canShipTo say which side of a priced route it is on. Use the id as countryId in addresses and rate requests.
Request
Headers
| Field | Type | Description |
|---|---|---|
Authorizationrequired | string | The access token from Get token, as "Bearer <token>". |
This endpoint takes no parameters.
Example request
curl -X GET "https://api.swiftazu.com/v1/countries" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Response
Example response · 200
[
{
"id": "cfde4319-9563-4d6a-9afa-0f72dad3c718",
"name": "United Arab Emirates",
"nameAr": "الإمارات العربية المتحدة",
"iso2": "AE",
"iso3": "ARE",
"phoneCode": "971",
"currencyCode": "AED",
"canShipFrom": true,
"canShipTo": true
}
]Errors
Every call can also return the shared errors listed on the Overview page. Overview