List of countries

Fire this api to get list of available countries.

GET https://castleindia.in/emart/public /api/countries /api/countries

Query Parameters

NameTypeDescription

secret*

String

Client secret which obtained from admin panel.

Headers

NameTypeDescription

Accept*

String

application/json

{
    "countries": [
        {
            "id": 38,
            "name": "Canada"
        },
        {
            "id": 101,
            "name": "India"
        },
        {
            "id": 166,
            "name": "Pakistan"
        },
        {
            "id": 231,
            "name": "United States"
        }
    ],
    "status": "success"
}

IF response fail

{
    "msg": "The secret field is required.",
    "status": "fail"
}

Last updated