cURL
curl --request POST \ --url https://api.getsafepay.com/raastwire/v1/aggregators/{raast-aggregator-id}/refunds \ --header 'Content-Type: application/json' \ --header 'X-SFPY-AGGREGATOR-SECRET-KEY: <api-key>' \ --data ' { "request_id": "9af69842-3011-4d6b-98d0-c3de1caa96d3", "payment_id": "pm_54b6bcee-aa58-454d-aed9-ce97d6bdd797", "amount": 500, "reason": "TechnicalProblem", "addtl_info": "", "debitor_iban": "PK12ALFH0031001006540005" } '
{ "api_version": "v1", "data": { "token": "<string>", "payment_id": "<string>", "amount": "<string>", "type": "<string>", "reason": "<string>", "addtl_info": "<string>", "status": "<string>", "trace_reference": "<string>", "msg_id": "<string>", "return_id": "<string>", "request_id": "<string>", "msg_created_at": "2025-03-13T09:12:34.000Z", "settle_at": null, "created_at": "2025-03-13T09:12:34.000Z", "updated_at": "2025-03-13T09:12:34.000Z" } }
Issue a refund against a payment
The unique identifier for the aggregator
"agg_2288490a-2176-4de5-b373-0ffb6f8e2e6e"
Request to create Refund
TechnicalProblem
DuplicatePayment
This response contains details of a refund
Standard response structure for successful operations
The current version of the API spec
"v1"
Contains the response data
Show child attributes
Was this page helpful?