Create a refund
Here is a procedure to initiate a refund for a transaction that have been previously collected.
-
Get the IBAN of the payer by calling this endpoint
-
Read the IBAN value from the sender object
{
"id": "e959dccd632c49d7922a766e946ad9e9",
"status": "ACSC",
"user": {
"name": "Firstname Lastname",
"external_reference": "AEF142536-890",
"ip_address": "0.0.0.0"
},
"sender": {
"name": "John doe",
"iban": "FR183490204820028402" // <------ Get this value
},
"transactions": [
{
"amount": 99.5,
"currency": "EUR",
"label": "Payment label",
"id": "79e61d0c29b1491196bc0c39f27b5bb8",
"status": "ACSC",
"beneficiary": {
"first_name": "Test",
"last_name": "Name",
"iban": "FR2310096000301695931368H67"
},
"client_reference": "12345678-AZERTY"
}
],
-
Create a payment-request (Amount of refund, label of refund, IBAN of payer retrieved in the previous step, Bank id of the merchant account).
-
Read the value of the consent_url attributes generated in step 3 and redirect the merchant.
Contact your Account manager
To be able to fetch non-obfuscated IBAN of the payer, you need to contact you account manager.
If eligible, your AM will grant your app.
Updated 7 months ago