Countries API

get specific entry

GET /api/rest/customer/v1/countries/:id

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOlsiY3VzdG9tZXItdjEiXSwic3ViIjoyNSwiZXhwIjoxNzY3MzU4MDM0fQ.T0vzzMX34UzuIk9eKsw1RBK0qfcC2aEA_nrRi70uRYw
Host: example.org
Cookie: 

Route

GET /api/rest/customer/v1/countries/5

Response

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/vnd.api+json
vary: Accept
etag: W/"dbf5ad6b2f8ea5197b305fe94776cc0f"
cache-control: max-age=0, private, must-revalidate
x-request-id: 9815b30a-89c1-4977-882b-766028340e46
x-runtime: 0.005449
content-length: 153

Status

200 OK

Body

{
  "data": {
    "id": "5",
    "type": "countries",
    "links": {
      "self": "http://example.org/api/rest/customer/v1/countries/5"
    },
    "attributes": {
      "name": "Andorra",
      "iso2": "AD"
    }
  }
}