Cancel
Last update: March 20, 2024
The cancellation service allows you to cancel the financing/credit made by the customer.
Workflow
To better understand the mechanics of cancel payment at Oney, here is a sequence diagram to understand the workflow
This workflow works with all payment methods offered by Oney (BNPL, Loans).
Example of cancellation
Request :
{
"psp_guid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"merchant_guid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"reference": "CMDE|xxxxxxxx",
"language_code": "FR",
"merchant_request_id": "XXXXXXXXX",
"purchase": {
"cancellation_reason_code": 0,
"cancellation_amount": 10.0
}
}
Response :
{
"language_code": "EN",
"purchase": {
"status_code": "FUNDED",
"status_label": "Payment partially cancelled. New installments for the customer"
}
}
When this service is called:
- The merchant is debited regarding the amount in the request (using the way defined with the merchant).
- The customer is credited of the amount (or installments are reduced).