Get countries
GET/api/lookup/countries
Retrieves a list of countries and associated data. Example: Ireland.
Response sample
{
"data": [{
"id": "30644b96-f41e-63a4-e053-0400c8acc645",
"text": "Canada",
"type": "Countries",
"additionalData": {
"countryId": "30644b96-f41e-63a4-e053-0400c8acc645",
"countryCode": "CA" }}],
"meta": {
"warnings": [],
"information": []},
"links": {}
}
Request
Responses
- 200
- 400
- 404
Success: Request accepted.
Bad request: StorefrontOrigin not passed in header; the request wasn’t valid or can’t be otherwise served. Typical when there is a syntax error in the request. Further details of the error are provided in the response payload body.
Not found: The Omni Subscription is not assigned to the site group; the URI isn’t valid or the requested resource doesn’t exist.