Listing Location Providers Linked with Retailers

Required Permission

can-read-retailers

See Auth* (scopes).

Request

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

Path Parameters

  • id: retailer ID

Response

HTTP/1.1 200 OK
[
  {
    "retailerId": "b2893ba5-5417-41f1-be1a-b5656a6eb74c",
    "locationProviderId": "5b1f1987-6636-4bfb-b4e0-0c8351f84780",
    "ownStores": true,
    "excludedLocationTags": [],
    "countryCode": "GBR",
    "links": []
  }, {
    "retailerId": "b2893ba5-5417-41f1-be1a-b5656a6eb74c",
    "locationProviderId": "65b83786-8b63-11e4-aa3e-db85c11f1a50",
    "ownStores": false,
    "excludedLocationTags": [],
    "countryCode": "PRT",
    "links": []
  }
  /* ... */
]

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