Listing Retailer Configurations

Required Permission

can-list-configurations

See Auth* (scopes).

Request

GET /configurations
Authorization: Bearer <token>

Response

HTTP/1.1 200 OK

Example response body:

[
  {
    "configurationId": "ff93445d-ade3-457d-aba2-b0139b7799cf",
    "user": "test-deleteme",
    "url": "http://dm-delta.metapack.com/api/5.x/services",
    "enabled": true,
    "repositoryType": "DM",
    "retailerId": "ff93445d-ade3-457d-aba2-b0139b7799cf",
    "shipperId": "2aad63eb-1251-4d0e-8404-5c1f1d2d0826",
    "apiKey": "ff93445d-ade3-457d-aba2-b0139b7799cf",
    "dateCreated": "2016-05-17T13:33Z",
    "links": [
      {
        "rel": "self",
        "href": "/configurations/ff93445d-ade3-457d-aba2-b0139b7799cf"
      }
    ]
  },
  {
    "configurationId": "ff99f5be-53c7-48b0-831c-82efd3cadf19",
    "user": "user",
    "url": "http://test1.metapack.com/api/4.x/services",
    "enabled": true,
    "repositoryType": "DM",
    "retailerId": "ff99f5be-53c7-48b0-831c-82efd3cadf19",
    "shipperId": "8g78b85d-ade3-457d-aba2-b0139b7799cf",
    "apiKey": "79b8734b-a5dc-48e3-8b0c-020b87412bbb",
    "dateCreated": "2014-08-15T15:55Z",
    "links": [
      {
        "rel": "self",
        "href": "/configurations/ff99f5be-53c7-48b0-831c-82efd3cadf19"
      }
    ]
  },
   {
      "configurationId": "ed3dd9a9-4abd-4d1e-b2f1-0eecbb600ec9",
      "user": "test",
      "url": "https://test.mpm.metapack.com/BlackBox",
      "enabled": true,
      "repositoryType": "SMR",
      "retailerId": "ed3dd9a9-4abd-4d1e-b2f1-0eecbb600ec9",
      "apiKey": "cb3dbb84-23a7-4c19-8705-4ff418356de8",
      "dateCreated": "2015-09-15T15:55Z",
      "links": [
        {
          "rel": "self",
          "href": "/configurations/ed3dd9a9-4abd-4d1e-b2f1-0eecbb600ec9"
        }
      ]
   }
  /* ... */
]

Failure

User doesn't have the required permission:

HTTP/1.1 403 FORBIDDEN

Other errors:

HTTP/1.1 500 INTERNAL SERVER ERROR

results matching ""

    No results matching ""