GET /loyalty/{program_id}/identifiers/{identifier}/eventsΒΆ
Get a list of events associated with a loyalty identifier.
Path parameters:
Name |
Type |
Description |
---|---|---|
|
integer, required |
the loyalty program identifier |
|
string, required |
the loyalty identifier |
Query parameters:
Name |
Type |
Description |
---|---|---|
|
boolean, optional, default: false |
readable output formatting |
|
string, optional, ISO 8601 formatted |
return events recorded on or after this date and time |
|
string, optional, ISO 8601 formatted |
return events recorded on or before this date and time |
Example request:
GET /loyalty/1/identifiers/990000000001/events HTTP/1.1
Host: api.ereceipts.co.uk
Accept: application/json
Example response:
See Loyalty Identifier Event Object for a description of the format.
HTTP/1.1 200 OK
Content-Length: 491
Content-Type: application/json; charset=UTF-8
[
{
"description": "Loyalty identifier created",
"receipt_id": "513e2391ee5e525ff9000000",
"receipt_timestamp": "2013-04-30T13:57:00+00:00",
"set": true,
"timestamp": "2013-04-30T13:57:00+00:00",
"transaction_id": "2013-04-30T13:57:00+00:00",
"value": 10.0
},
{
"description": null,
"receipt_id": null,
"receipt_timestamp": null,
"set": false,
"timestamp": "2013-05-12T14:12:21+00:00",
"transaction_id": null,
"value": -1.0
}
]