PATCH /loyalty/{program_id}/identifiers/{identifier}ΒΆ
Update a single loyalty identifier.
Path parameters:
Name |
Type |
Description |
---|---|---|
|
integer, required |
the loyalty program identifier |
|
string, required |
the loyalty identifier |
Body parameters:
Name |
Type |
Description |
---|---|---|
|
float, optional |
set current loyalty value |
|
float, optional |
increment the current loyalty value |
|
float, optional |
decrement the current loyalty value |
|
string, optional |
a description of the loyalty change |
Example request:
PATCH /loyalty/1/identifiers/990000000001 HTTP/1.1
Host: api.ereceipts.co.uk
Content-Length: 17
Content-Type: application/json
{"value+=": 10.0}
Example response:
The response contains the entire Loyalty Identifier Object, including the updated loyalty value.
HTTP/1.1 200 OK
Content-Length: 51
Content-Type: application/json; charset=UTF-8
{
"identifier": "990000000001",
"value": 50.0
}