Retrieving User Accounts

Request

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

Path Parameters

  • role: locationProviders / retailers
  • id: location provider ID / retailer ID

Response

HTTP/1.1 200 OK
{
  "apiKeys": [{
    "id": "719ZUFAK878ZYY83DCQLW1COX"
  }],
  "username": "test-username",
  "email": "test-email@gmail.com",
  "name": "Stuff",
  "createdAt": "2016-07-29T13:08:47.021Z",
  "modifiedAt": "2016-07-29T13:08:47.021Z"
}

Failure

Missing, invalid or expired token:

HTTP/1.1 401 UNAUTHORIZED

User doesn't have the required permission:

HTTP/1.1 403 FORBIDDEN

Invalid role or resource id:

HTTP/1.1 404 NOT FOUND

Other errors:

HTTP/1.1 500 INTERNAL SERVER ERROR

results matching ""

    No results matching ""