Get Countries

Get Countries

GET {baseUrl}/countries

This endpoint allows you to view mapped countries and their country code.

// Sample Response Body - 200 OK
{
    "status": true,
    "message": "Countries fetched successfully",
    "data": [
        {
            "_id": "64ffa3196e17045193d73a45",
            "countryCode": "AF",
            "createdAt": "2023-09-11T23:30:33.801Z",
            "name": "Afghanistan",
            "updatedAt": "2023-09-11T23:30:33.801Z"
        },
        //...truncated for brevity
}

Last updated

Was this helpful?