Refunds API
Create payment refund
Changed onCreates 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
Request
- Base URLhttps://api.mollie.com
- URLhttps://api.mollie.com/v2/payments/{paymentId}/refunds
- Auth
- HTTP bearer
- or HTTP bearer
- or OAuth 2Authorization code: https://my.mollie.com/oauth2/authorizeToken URL: https://api.mollie.com/oauth2/tokens scopes: refunds.write
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.
Example response
{
"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"
}
}
}Changes
- info
the request optional property
////became read-only - info
the response optional property
////became read-only for the status
- info
- breaking
the response property
////became nullable for the status - info
the request property
////became nullable
- breaking