Retrieving Retailers

Required Permission

can-read-retailers

See Auth* (scopes).

Request

GET /retailers/:id HTTP/1.1
Authorization: Bearer <bearer token>

Path Parameters

  • id: retailer ID

Response

HTTP/1.1 200 OK
{
  "id": "556bd03a-0c4f-11e6-a148-3e1d05defe68",
  "name": "Test",
  "details": null
}

Failure

Request error; e.g. invalid JSON object:

HTTP/1.1 400 BAD REQUEST

User doesn't have the required permission:

HTTP/1.1 403 FORBIDDEN

Retailer id does not exist:

HTTP/1.1 404 NOT FOUND

Other errors:

HTTP/1.1 500 INTERNAL SERVER ERROR

results matching ""

    No results matching ""