Refunds 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.
post/v2/payments/{paymentId}/refunds
Headers
idempotency-keystring
Example:123e4567-e89b-12d3-a456-426
A unique key to ensure idempotent requests. This key should be a UUID v4 string.
Request body
Example request
{
"resource": "refund",
"id": "re_5B8cwPMGnU",
"mode": "live",
"description": "Refunding a Chess Board",
"amount": {
"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.