Orders API
Update order
⚠️ We no longer recommend using the Orders API. Please refer to the Payments API instead.
Certain details of an existing order can be updated.
For an in-depth explanation of each parameter, see Create order.
🔑 Access with
API key
Advanced access token with orders.write
OAuth access with orders.write
patch/orders/{orderId}
Request
- Base URLhttps://api.mollie.com/v2
- URLhttps://api.mollie.com/v2/orders/{orderId}
- Auth
- HTTP bearer
- or HTTP bearer
- or OAuth 2Authorization code: https://my.mollie.com/oauth2/authorizeToken URL: https://api.mollie.com/oauth2/tokens scopes: orders.write
Request body
Example request
{
"redirectUrl": "https://www.example.com/redirect",
"cancelUrl": "https://www.example.com/cancel",
"webhookUrl": "https://www.example.com/webhook",
"billingAddress": {
"title": "Mr.",
"givenName": "John",
"familyName": "Doe",
"organizationName": "Mollie B.V.",
"streetAndNumber": "Keizersgracht 126",
"streetAdditional": "4th floor",
"postalCode": "5678AB",
"email": "example@email.com",
"city": "Amsterdam",
"region": "Noord-Holland",
"country": "NL"
},
"shippingAddress": {
"title": "Mr.",
"givenName": "John",
"familyName": "Doe",
"organizationName": "Mollie B.V.",
"streetAndNumber": "Keizersgracht 126",
"streetAdditional": "4th floor",
"postalCode": "5678AB",
"email": "example@email.com",
"city": "Amsterdam",
"region": "Noord-Holland",
"country": "NL"
}
}Response
The updated order object.
Example response
{
"id": "ord_5B8cwPMGnU",
"mode": "live",
"amount": {
"currency": "EUR",
"value": "10.00"
},
"amountRefunded": {
"currency": "EUR",
"value": "10.00"
},
"amountCaptured": {
"currency": "EUR",
"value": "10.00"
},
"redirectUrl": "https://www.example.com/redirect",
"cancelUrl": "https://www.example.com/cancel",
"webhookUrl": "https://www.example.com/webhook",
"billingAddress": {
"title": "Mr.",
"givenName": "John",
"familyName": "Doe",
"organizationName": "Mollie B.V.",
"streetAndNumber": "Keizersgracht 126",
"streetAdditional": "4th floor",
"postalCode": "5678AB",
"email": "example@email.com",
"city": "Amsterdam",
"region": "Noord-Holland",
"country": "NL"
},
"shippingAddress": {
"title": "Mr.",
"givenName": "John",
"familyName": "Doe",
"organizationName": "Mollie B.V.",
"streetAndNumber": "Keizersgracht 126",
"streetAdditional": "4th floor",
"postalCode": "5678AB",
"email": "example@email.com",
"city": "Amsterdam",
"region": "Noord-Holland",
"country": "NL"
},
"locale": "en_US",
"method": "creditcard",
"shopperCountryMustMatchBillingCountry": true,
"status": "created",
"isCancelable": true,
"profileId": "pfl_5B8cwPMGnU",
"createdAt": "2024-03-20T09:13:37+00:00",
"authorizedAt": "2025-04-03T14:03:17+00:00",
"paidAt": "2025-04-03T14:03:17+00:00",
"canceledAt": "2025-04-03T14:03:17+00:00",
"expiresAt": "2025-01-01",
"expiredAt": "2025-04-03T14:03:17+00:00",
"completedAt": "2025-04-03T14:03:17+00:00",
"consumerDateOfBirth": "2000-01-01",
"lines": [
{
"id": "odl_5B8cwPMGnU",
"type": "physical",
"name": "Ready Player One",
"quantity": 2,
"quantityShipped": 1,
"amountShipped": {
"currency": "EUR",
"value": "10.00"
},
"quantityRefunded": 1,
"amountRefunded": {
"currency": "EUR",
"value": "10.00"
},
"quantityCanceled": 1,
"amountCanceled": {
"currency": "EUR",
"value": "10.00"
},
"shippableQuantity": 1,
"refundableQuantity": 1,
"cancelableQuantity": 1,
"unitPrice": {
"currency": "EUR",
"value": "10.00"
},
"discountAmount": {
"currency": "EUR",
"value": "10.00"
},
"totalAmount": {
"currency": "EUR",
"value": "10.00"
},
"vatAmount": {
"currency": "EUR",
"value": "10.00"
},
"sku": "978-1524763282",
"category": "eco",
"status": "created",
"isCancelable": true,
"orderId": "ord_5B8cwPMGnU",
"imageUrl": "https://www.example.com/image",
"productUrl": "https://www.example.com/product",
"createdAt": "2024-03-20T09:13:37+00:00",
"_links": {
"self": {
"href": "https://...",
"type": "application/hal+json"
},
"imageUrl": {
"href": "https://...",
"type": "application/hal+json"
},
"productUrl": {
"href": "https://...",
"type": "application/hal+json"
}
}
}
],
"_links": {
"self": {
"href": "https://...",
"type": "application/hal+json"
},
"checkout": {
"href": "https://...",
"type": "application/hal+json"
},
"dashboard": {
"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.