Przelewy24 Refunds

This section describes how to issue a refund.

Endpoints

Production:
POST
https://api.cybersource.com
/pts/v2/payments/
{id}
/refunds
Test:
POST
https://apitest.cybersource.com
/pts/v2/payments/
{id}
/refunds
The
{id}
is the request ID contained in the original transaction request.

Example: Requesting an Przelewy24 Refund Using the REST API

Light Dark
Request
12345678910111213141516171819
{"orderInformation": { "amountDetails": { "totalAmount": "1", "currency": "EUR" } }, "clientReferenceInformation": { "code":"3798_sale01", "originalTransactionId": "1193033287" }, "paymentInformation": { "paymentType": { "name": "bankTransfer", "method": { "name": "p24" } } }}
Response to a Successful Request
12345678910111213141516171819
{"paymentOptions": { "type": "p24method", "resources":[ { "id":"94", "name":"Euro Bank", "url": "", "type": "", "data": [] }, { "id":"25", "name":"mBank - mTransfer", "url": "", "type": "", "data": [] } ] }}