GET /clients/{authentication}ΒΆ

This request will return a list of all client credentials.

Path parameters:

Name

Type

Description

authentication

string, required

authentication type (example: hmac)

Query parameters:

Name

Type

Description

pretty

boolean, optional, default: false

readable output formatting

Example request:

This request will fetch client credentials.

GET /clients/hmac HTTP/1.1
Host: api.ereceipts.co.uk
Accept: application/json

Example response:

HTTP/1.1 200 OK
Content-Length: 343
Content-Type: application/json; charset=UTF-8

[
  {
    "description": "Fetching receipts",
    "id": 1,
    "key": "SDFGSDFGSDFGSDFGSDFG",
    "permissions": [
      "view.get_receipt"
    ],
    "revoked": false
  },
  {
    "description": "Receipt posting",
    "id": 2,
    "key": "CVHJCGHJCHVJVHJVCHJZ",
    "permissions": [
      "view.post_receipt"
    ],
    "revoked": false
  }
]