If your customer returns or ask for refund for some part of their purchase you can you this endpoint to cancel the corresponding points/cashback for that purchase
This is the exact same ID used when sending the order to BonifiQ. Usually is the ID from the origin plataform.
The purchase value being refunded. It should be less than the order total value.
This field allows to create idempotency. It can be any unique string such an ID for the cancellation. If you try to cancel the same order using the same CancelKey the cancellation will fail.
Use API Basic Auth Keys
Value to be refunded from the order total. This value must be greater than 0 and less or equal than the OrderTotal value sent when the order was created or updated.
This key is used to avoid duplicated partial cancel on the same order. Use a unique value (such as an ID) for each partial cancel request.