Utils
Get Countries
API Documentation
- Getting Started
- Customer
- Product
- ProductLimit
- Wallet
- WalletGroup
- Payout
Utils
Get Countries
The endpoint allows you to retrieves the list and details of Countries.
GET
/
utilities
/
countries
/
get
curl --request GET \
--url https://waas-staging.cafeone.ng/api/v1/utilities/countries/get \
--header 'x-api-key: <api-key>'
{
"code": "00",
"success": true,
"message": "Retrieved successfully",
"data": [
{
"id": "08dd5d6c-a9b4-452d-8872-4ada3d46b506",
"name": "United States",
"countryCodeTwo": "US",
"countryCodeThree": "USA"
},
{
"id": "c15ad9ae-c4d7-4342-b70f-de5508627e3b",
"name": "Nigeria",
"countryCodeTwo": "NG",
"countryCodeThree": "NGA"
}
]
}
Response
{
"code": "00",
"success": true,
"message": "Retrieved successfully",
"data": [
{
"id": "08dd5d6c-a9b4-452d-8872-4ada3d46b506",
"name": "United States",
"countryCodeTwo": "US",
"countryCodeThree": "USA"
},
{
"id": "c15ad9ae-c4d7-4342-b70f-de5508627e3b",
"name": "Nigeria",
"countryCodeTwo": "NG",
"countryCodeThree": "NGA"
}
]
}
curl --request GET \
--url https://waas-staging.cafeone.ng/api/v1/utilities/countries/get \
--header 'x-api-key: <api-key>'
{
"code": "00",
"success": true,
"message": "Retrieved successfully",
"data": [
{
"id": "08dd5d6c-a9b4-452d-8872-4ada3d46b506",
"name": "United States",
"countryCodeTwo": "US",
"countryCodeThree": "USA"
},
{
"id": "c15ad9ae-c4d7-4342-b70f-de5508627e3b",
"name": "Nigeria",
"countryCodeTwo": "NG",
"countryCodeThree": "NGA"
}
]
}