Listing Consolidators Linked with Retailers

Required Permission

can-read-retailers

See Auth* (scopes).

Request

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

Path Parameters

  • id: retailer ID

Response

HTTP/1.1 200 OK
[
  {
    "id": "c2798baa-0c4e-11e6-a248-3e1d05defe79",
    "name": "Test consolidator",
    "links": [
      {
        "rel": "self",
        "href": "/consolidators/c2798baa-0c4e-11e6-a248-3e1d05defe79"
      }
    ]
  }
]

Failure

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 ""