Skip to main content
GET
/
country
/
countries
List all countries
curl --request GET \
  --url https://store.salesive.com/api/v1/country/countries \
  --header 'Authorization: Bearer <token>' \
  --header 'x-shop-id: <api-key>'
{
  "status": 200,
  "success": true,
  "message": "Countries retrieved",
  "data": [
    {
      "name": "Nigeria",
      "shortName": "NG",
      "phone": "234",
      "currency": "NGN"
    }
  ]
}

Request

GET /country/countries
x-shop-id: {{shopId}}

Headers

HeaderTypeDescription
x-shop-idstringIdentify the shop context.

Successful response

{
    "status": 200,
    "success": true,
    "message": "Countries retrieved",
    "data": [
        {
            "shortName": "NG",
            "name": "Nigeria",
            "native": "Nigeria",
            "phone": "234",
            "continent": "AF",
            "capital": "Abuja",
            "currency": "NGN",
            "languages": ["en"],
            "emoji": "πŸ‡³πŸ‡¬",
            "emojiU": "U+1F1F3 U+1F1EC"
        },
        {
            "shortName": "US",
            "name": "United States",
            "native": "United States",
            "phone": "1",
            "continent": "NA",
            "capital": "Washington D.C.",
            "currency": "USD",
            "languages": ["en"],
            "emoji": "πŸ‡ΊπŸ‡Έ",
            "emojiU": "U+1F1FA U+1F1F8"
        }
    ]
}

Error response

{
    "status": 500,
    "success": false,
    "message": "Internal server error",
    "data": {}
}

Authorizations

Authorization
string
header
required

JWT issued by the Salesive Store API for authenticated shoppers.

x-shop-id
string
header
required

Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.

Headers

x-shop-id
string

Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.

Response

200 - application/json

Countries retrieved successfully.

status
integer
Example:

200

success
boolean
Example:

true

message
string
Example:

"Countries retrieved"

data
object[]