Create an A2A refund
Step 1: Get the Payer's IBAN
Call the endpoint Get a single payment request to obtain the IBAN of the payer:
{
"id": "e959dccd632c49d7922a766e946ad9e9",
"status": "ACSC",
"user": {
"first_name": "Thomas",
"last_name": "Pichet",
"external_reference": "AEF142536-890"
},
"sender": {
"name": "Thomas Pichet",
"iban": "FR183490204820028402" // <------ Get this value
},
"transactions": [
{
"id": "79e61d0c29b1491196bc0c39f27b5bb8",
"status": "ACSC",
"beneficiary": {
"first_name": "John",
"last_name": "Doe",
"iban": "FR2310096000301695931368H67"
},
"amount": 99.5,
"end_to_end_id": "E2E_TEST-123",
"currency": "EUR",
"label": "Payment label",
"client_reference": "ABCDE-EEEE_9398848"
},
"client_reference": "12345678-AZERTY"
}
],Create a payment request(Amount of refund, label of refund, IBAN of payer retrieved in the previous step, provider id of the merchant account).
Step 2: Create a Payment Request
Create a payment request with the following details:
- Amount of refund
- Label of refund
- IBAN of the payer (retrieved in the previous step)
- Provider ID of the merchant account
Step 3: Redirect to the consent_url
Read the value of the consent_url attribute generated in step 2 and redirect the merchant accordingly.
Contact your Account managerTo access the non-obfuscated IBAN of the payer, please reach out to your Account Manager. If eligible, your Account Manager will grant this capability to your app.
Updated 2 days ago
Did this page help you?
