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.
Headers
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.
Changes
Changed in 6 of the 92 revisions of this API.11313
- ▲
the response property
////became nullable for the statusresponse-property-became-nullable
- ○
the request property
////became nullablerequest-property-became-nullable
- ▲
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ●
removed the optional property
from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
from the response with the statusresponse-optional-property-removed
- ○
the request property
////became optionalrequest-property-became-optional
- ○
the request property
////became optionalrequest-property-became-optional
- ○
the request property
////became optionalrequest-property-became-optional
- ○
added to the response body
allOflist for the response statusresponse-body-all-of-added
- ○
removed the optional write-only property
reverseRoutingfrom the response with the statusresponse-optional-write-only-property-removed
- ○
removed the optional write-only property
testmodefrom the response with the statusresponse-optional-write-only-property-removed
- ▲
- ○
the response property
became required for the statusresponse-property-became-required
- ○
- ○
added the non-success response with the status
response-non-success-status-added
- ○
- ○
the endpoint scheme security
advancedAccessTokenwas added to the APIapi-security-added
- ○
the endpoint scheme security
organizationAccessTokenwas removed from the APIapi-security-removed
This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
request property
////deprecatedrequest-property-deprecated
- ○
response property
settlementAmountdeprecatedresponse-property-deprecated
- ○
Of the 92 revisions, 9 have no diff computed.