v4
latestOpenAPI 3.0.02026-07-31811,0021.1 MBAdd or remove points from a customer
This endpoint allows you to add or remove points to/from a customer.
Some important remarks
- Use OperationType=0 if you want to add points. Use OperationType=1 if you want to remove points
- If you want to add points, use a positive number (eg: 10).
- If you want to remove points, use a negative number (eg: -10)
The ChangeKey field
This field allows you to create idempotency: even if you make the exactly same request twice it will change points only once. As distributed systems should be fault-tolerant it may result in requests being done more than one time. Not using the ChangeKey may duplicate a change-point request thus adding or removing more point than intended
How to use this field
Inform some string that is unique for this change. For instance: if you are adding 10 point for customerID=ABC regarding the OrderId=123 purchase he just made, our key could be ADD-ABC-10-123 If you dont need this kind of verification you can just use some time-related string, such as 2023-01-01 23:59:00:000
The Reason field
This field is important to track why some point are given/taken from the customer. This information is internal-use only, it will not be visible to the customer.