v1
latestOpenAPI 3.1.0CC-BY-NC-SA-4.02026-07-2413803.8 MBRefunds API
Create payment refund
Creates a refund for a specific payment. The refunded amount is credited to your customer usually either via a bank transfer or by refunding the amount to your customer's credit card.
🔑 Access with
API key
Advanced access token with refunds.write
OAuth access with refunds.write
post/payments/{paymentId}/refunds
Request body
Example request
{
"resource": "refund",
"id": "re_5B8cwPMGnU",
"mode": "live",
"description": "Refunding a Chess Board",
"amount": {
"currency": "EUR",
"value": "10.00"
},
"settlementAmount": {
"currency": "EUR",
"value": "10.00"
},
"paymentId": "tr_5B8cwPMGnU",
"settlementId": "stl_5B8cwPMGnU",
"status": "queued",
"createdAt": "2024-03-20T09:13:37+00:00",
"externalReference": {
"type": "acquirer-reference"
},
"routingReversals": [
{
"amount": {
"currency": "EUR",
"value": "10.00"
},
"source": {
"type": "organization",
"organizationId": "org_1234567"
}
}
],
"_links": {
"self": {
"href": "https://...",
"type": "application/hal+json"
},
"payment": {
"href": "https://...",
"type": "application/hal+json"
},
"settlement": {
"href": "https://...",
"type": "application/hal+json"
},
"documentation": {
"href": "https://...",
"type": "application/hal+json"
}
}
}Response
The newly created refund object.