Get Countries

Get Countries

GET {baseUrl}/countries

This endpoint allows you to view mapped countries and their country code. Latitude and longitude are required when requesting deliveries.

{
    "status": true,
    "message": "Locations successfully retrieved",
    "data": [
        {
            "state": "Lagos State",
            "locals": [
                {
                    "name": "Ajah",
                    "locationCode": "01"
                }
                {
                    "name": "Ajeromi-Ifelodun",
                    "locationCode": "02"
                },
            ]
        }
    ]
}
// 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