Mobile Api
Countries
Read the country list used by registration, KYC, and card flows.
Flow Summary
The current country-data flow is:
Step 1. Load the country listGET /api/v1/countries
This route is not listed in the current public-route whitelist, so treat it as a protected route unless your middleware setup explicitly exposes it.
Authorization: Bearer <access_token>
Language Behavior
- The handler reads
Accept-Language - If the header is empty, it defaults to English
- Only exact
zhswitches the returnednamefield to Chinese - Any other value still returns the English name
1. List Countries
GET /api/v1/countries
Returns the current country list from the countries table.
Response fields
Each country item includes:
idnamecodedial_codelogo
Important backend behavior
- The repository only returns rows where
deleted_at IS NULL - When
Accept-Language: zh, the backend usesname_zhif present - If
name_zhis empty, it falls back to the normalname
Success response shape
{
"status_code": 200,
"message": "Success",
"data": [
{
"id": 114,
"name": "Cambodia",
"code": "KH",
"dial_code": "855",
"logo": "https://..."
}
]
}
Integration Notes
- Use this for country pickers in registration, KYC, and card-request forms.
- Do not hardcode the country list in the app if you want logo and localized-name support to stay in sync with the backend.