Skip to main content

Refunds API

refund/create

The retailer's website or app sends a request to the Processing Service to create a refund payment, which has the following form:

POST https://<HOSTNAME>/api/v1/refund/create
Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l
Idempotence-Key: ps_refund_1614589640890_3134
Content-Type: application/json
{
"payment_id": "23d93cac-000f-5000-8000-126628f15141",
"value_fiat": "21.00",
"email": "[email protected]"
}

Fields description

#FieldTypeDescription
1payment_idstringpayment ID
2value_fiatstringamount of refund in fiat
3emailstringemail of the buyer; To this address will come the link for the refund procedure

Response if successful:

{
"response": {
"purpose": "R-1254-1",
"iban": "GB29NWBK60161331926819",
"fiat_amount": "21.00",
"amount_too_big": false
}
}

Response Fields description

#FieldTypeDescription
1purposestringpurpose of payment (R-order number-return number, for example R-1254-1);
2ibanstringIBAN;- Bank account details
3value_fiatstringamount of refund in fiat;
4amount_too_bigbooleanflag indicating that the return is executed partially from the amount that was set in the parameters. The state true takes place when the amount of return on the payment exceeds the balance of the payment amount.