/countries
Get the list
This action allows you to get a list of supported countries. This can be used if you need us to make the user's mobile verification in the "Init Registration" step.
cURL
curl -X GET 'https://api.roadcube.io/v1/p/countries' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-Api-Token: YOUR_API_TOKEN'Response 200
| Parameter | Required | Description |
|---|---|---|
phone_code | optional | This is the code that we are going to use when sending a sms to the end-user for verifying their mobile. π.χ. 0030 |
{
"code": 200,
"status": "success",
"message": "COUNTRIES",
"data": [
{
"country_id": 1,
"name": "Greece",
"code": "GR",
"phone_code": "0030"
},
{
"country_id": 2,
"name": "United Kingdom",
"code": "UK",
"phone_code": "0044"
},
]
"extra": [],
"error": false
}