Listing Location Providers Linked with Consolidators

Required Permission

can-read-consolidators

See Auth* (scopes).

Request

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

Path Parameters

  • id: retailer ID

Response

HTTP/1.1 200 OK
[
  {
    "id": "65b83786-8b63-11e4-aa3e-db85c11f1a50",
    "name": "Provider 65b83786",
    "details": "Metapack hosts location providers locations",
    "locationsSource": {
      "endpoint": null
    },
    "links": [
      {
        "rel": "self",
        "href": "/locationProviders/65b83786-8b63-11e4-aa3e-db85c11f1a50"
      }
    ]
  },
  {
    "id": "b2893ba5-5417-41f1-be1a-b5656a6eb74c",
    "name": "Provider b2893ba5",
    "details": "A location provider requiring API call to get locations",
    "locationsSource": {
      "endpoint": "http://ddo-b2893ba5-locations.metapack.com"
    },
    "links": [
      {
        "rel": "self",
        "href": "/locationProviders/b2893ba5-5417-41f1-be1a-b5656a6eb74c"
      }
    ]
  },
  /* ... */
]

Failure

User doesn't have the required permission:

HTTP/1.1 403 FORBIDDEN

Consolidator id does not exist:

HTTP/1.1 404 NOT FOUND

Other errors:

HTTP/1.1 500 INTERNAL SERVER ERROR

results matching ""

    No results matching ""