GET /clients/{authentication}/{client_id}ΒΆ
Get a client credential.
Path parameters:
Name |
Type |
Description |
---|---|---|
|
string, required |
authentication type (example: hmac) |
|
integer, required |
a client identifier |
Query parameters:
Name |
Type |
Description |
---|---|---|
|
boolean, optional, default: false |
readable output formatting |
|
string, required |
authentication type (example: hmac) |
|
integer, required |
a client identifier |
Example request:
This request will fetch a single client.
GET /clients/hmac/1 HTTP/1.1
Host: api.ereceipts.co.uk
Accept: application/json
Example response:
HTTP/1.1 200 OK
Content-Length: 151
Content-Type: application/json; charset=UTF-8
{
"description": "Fetching receipts",
"id": 1,
"key": "SDFGSDFGSDFGSDFGSDFG",
"permissions": [
"view.get_receipt"
],
"revoked": false
}