Modify and cancellation
It may happen that the customer does not want to redeem all or part of the points they have accumulated in their savings program, or they do not want a specific discount to be applied (provided the service is configured for it).
To modify what Wapping has informed us in the response of the total method, the following method is used, specifying the sessionId obtained in the first call and the list of transactionsIds to deselect and/or the list of transactionsIds with the points/amount to modify.
It's important to note that this method will only be called if something is modified from what the total method is informing. This is to avoid unnecessary calls.
/api/CheckoutSession/sessionIdAs a result, we will receive a response informing us about how the benefits/discounts would be applied after the modifications have been made. Additionally, since it's possible that certain services may be deselected, the incompatibilities are checked again.
The response of this will be processed exactly the same as any other Total Respose, bear in mind that some of the amounts can be in negative as it will be doing a refund of previously used cash
