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
Authorization: Bearer {{token}}
x-shop-id: {{shopId}}

Headers

HeaderTypeDescription
AuthorizationstringProvide the customer token in the format Bearer <jwt>.
x-shop-idstringIdentify the shop context.

Request examples

GET /country/countries

Successful response

{
    "status": 200,
    "success": true,
    "message": "Countries retrieved",
    "data": [
        {
            "shortName": "NG",
            "name": "Nigeria",
            "code": "+234",
            "currency": "NGN"
        },
        {
            "shortName": "US",
            "name": "United States",
            "code": "+1",
            "currency": "USD"
        }
    ]
}

Error responses

401 Unauthorized

{
    "status": 401,
    "success": false,
    "message": "Authentication required",
    "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[]