GET /loyalty/{program_id}/rewards/{id}ΒΆ
Get a single loyalty reward.
Path parameters:
Name |
Type |
Description |
---|---|---|
|
integer, required |
the loyalty program identifier |
|
integer, required |
the reward identifier |
Query parameters:
Name |
Type |
Description |
---|---|---|
|
boolean, optional, default: false |
readable output formatting |
Example request:
GET /loyalty/1/rewards/2 HTTP/1.1
Host: api.ereceipts.co.uk
Accept: application/json
Example response:
See Loyalty Reward Object for a description of the format.
HTTP/1.1 200 OK
Content-Length: 198
Content-Type: application/json; charset=UTF-8
{
"claimed": false,
"id": 2,
"identifier": "990000000002",
"name": "Coupon",
"receipt_timestamp": "2013-06-24T16:25:30+00:00",
"timestamp": "2013-06-24T16:25:31+00:00",
"value": 10.0
}