PATCH /loyalty/{program_id}/identifiers/{identifier}ΒΆ

Update a single loyalty identifier.

Path parameters:

Name

Type

Description

program_id

integer, required

the loyalty program identifier

identifier

string, required

the loyalty identifier

Body parameters:

Name

Type

Description

value

float, optional

set current loyalty value

value+=

float, optional

increment the current loyalty value

value-=

float, optional

decrement the current loyalty value

description

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
}