You can adjust the split of a payment independently of the payment method used for the transaction. It depends on the transaction status.
If you want to adjust the amount of the payment, it will also depend on the payment method used for the transaction.
You can only adjust payment operations, not other operations such as a payout or a refund.
Please refer to the payment flows to understand when this operation is valid.
Adjusting only the split of a payment
You can adjust the split of a transaction if it meets the following criteria:
- The transaction status must be completed.
- If the payment breakdown already occurred, the operation status must be registered.
- If it didn't, the operation status must be waiting, cashed or registered.
If you want to adjust only the split and not the amount, the payment amount must be identical to the original one.
Adjusting both payment amount and split
You can't adjust the payment amount of a transaction if the payment method used for the transaction was a card or a SDD payment.
To adjust both the payment amount and the split, it must meet the criteria listed in the previous section.
A new breakdown must be provided in the adjustPayment request for the new amount.
Refer to the Payin operations life cycle section of the Payment flow to get the list of statuses and scenarios.
Adjust a payment
From your server, make a /payin/adjustPayment request with the following parameters:
Here is an example of a JSON payload for a/payin/adjustPayment request:
Retrieving the result
In response to your request, you will receive an adjustPaymentResponse object:
A successful payload response to the /payin/adjustPayment request will be:
If you encounter any error, you can check the following pages for troubleshooting: