Orders API
Create order refund
⚠️ We no longer recommend using the Orders API. Please refer to the Payments API instead.
When using the Orders API, refunds should be made for a specific order.
If you want to refund arbitrary amounts, however, you can also use the Create payment refund endpoint by creating a refund on the payment itself.
If an order line is still in the authorized state, it cannot be refunded. You should cancel it instead. Order lines that are paid, shipping or completed can be refunded.
🔑 Access with
API key
Advanced access token with refunds.write
OAuth access with refunds.write
post/orders/{orderId}/refunds
Request
- Base URLhttps://api.mollie.com/v2
- URLhttps://api.mollie.com/v2/orders/{orderId}/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
Request body
Example request
{
"id": "re_5B8cwPMGnU",
"mode": "live",
"description": "Refunding a Chess Board",
"amount": {
"currency": "EUR",
"value": "10.00"
},
"settlementAmount": {
"currency": "EUR",
"value": "10.00"
},
"orderId": "ord_5B8cwPMGnU",
"settlementId": "stl_5B8cwPMGnU",
"status": "queued",
"createdAt": "2024-03-20T09:13:37+00:00",
"externalReference": {
"type": "acquirer-reference"
},
"lines": [
{
"resource": "orderline",
"id": "odl_5B8cwPMGnU",
"orderId": "ord_5B8cwPMGnU",
"name": "Chess Board",
"type": "physical",
"status": "created",
"quantity": 1,
"amountShipped": {
"currency": "EUR",
"value": "10.00"
},
"amountRefunded": {
"currency": "EUR",
"value": "10.00"
},
"amountCanceled": {
"currency": "EUR",
"value": "10.00"
},
"amount": {
"currency": "EUR",
"value": "10.00"
},
"unitPrice": {
"currency": "EUR",
"value": "10.00"
},
"totalAmount": {
"currency": "EUR",
"value": "10.00"
},
"vatRate": "21.00",
"vatAmount": {
"currency": "EUR",
"value": "10.00"
},
"createdAt": "2025-03-28T16:42:12+00:00",
"discountedAmount": {
"currency": "EUR",
"value": "10.00"
},
"_links": {
"productUr": {
"href": "https://...",
"type": "application/hal+json"
},
"imageUrl": {
"href": "https://...",
"type": "application/hal+json"
}
}
}
],
"_links": {
"self": {
"href": "https://...",
"type": "application/hal+json"
},
"order": {
"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
{
"id": "re_5B8cwPMGnU",
"mode": "live",
"description": "Refunding a Chess Board",
"amount": {
"currency": "EUR",
"value": "10.00"
},
"settlementAmount": {
"currency": "EUR",
"value": "10.00"
},
"orderId": "ord_5B8cwPMGnU",
"settlementId": "stl_5B8cwPMGnU",
"status": "queued",
"createdAt": "2024-03-20T09:13:37+00:00",
"externalReference": {
"type": "acquirer-reference"
},
"lines": [
{
"resource": "orderline",
"id": "odl_5B8cwPMGnU",
"orderId": "ord_5B8cwPMGnU",
"name": "Chess Board",
"type": "physical",
"status": "created",
"quantity": 1,
"amountShipped": {
"currency": "EUR",
"value": "10.00"
},
"amountRefunded": {
"currency": "EUR",
"value": "10.00"
},
"amountCanceled": {
"currency": "EUR",
"value": "10.00"
},
"amount": {
"currency": "EUR",
"value": "10.00"
},
"unitPrice": {
"currency": "EUR",
"value": "10.00"
},
"totalAmount": {
"currency": "EUR",
"value": "10.00"
},
"vatRate": "21.00",
"vatAmount": {
"currency": "EUR",
"value": "10.00"
},
"createdAt": "2025-03-28T16:42:12+00:00",
"discountedAmount": {
"currency": "EUR",
"value": "10.00"
},
"_links": {
"productUr": {
"href": "https://...",
"type": "application/hal+json"
},
"imageUrl": {
"href": "https://...",
"type": "application/hal+json"
}
}
}
],
"_links": {
"self": {
"href": "https://...",
"type": "application/hal+json"
},
"order": {
"href": "https://...",
"type": "application/hal+json"
},
"settlement": {
"href": "https://...",
"type": "application/hal+json"
},
"documentation": {
"href": "https://...",
"type": "application/hal+json"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.