Update customer
Changed onUpdate an existing customer.
For an in-depth explanation of each parameter, refer to the Create customer endpoint.
Request
- Base URLhttps://api.mollie.com
- URLhttps://api.mollie.com/v2/customers/{customerId}
- Auth
- HTTP bearer
- or HTTP bearer
- or OAuth 2Authorization code: https://my.mollie.com/oauth2/authorizeToken URL: https://api.mollie.com/oauth2/tokens scopes: customers.write
Headers
A unique key to ensure idempotent requests. This key should be a UUID v4 string.
Request body
Example request
{
"resource": "customer",
"id": "cst_5B8cwPMGnU",
"mode": "live",
"name": "John Doe",
"email": "example@email.com",
"locale": "en_US",
"createdAt": "2024-03-20T09:13:37+00:00",
"_links": {
"self": {
"href": "https://...",
"type": "application/hal+json"
},
"dashboard": {
"href": "https://...",
"type": "application/hal+json"
},
"payments": {
"href": "https://...",
"type": "application/hal+json"
},
"mandates": {
"href": "https://...",
"type": "application/hal+json"
},
"subscriptions": {
"href": "https://...",
"type": "application/hal+json"
},
"documentation": {
"href": "https://...",
"type": "application/hal+json"
}
}
}Response
The updated customer object.
Example response
{
"resource": "customer",
"id": "cst_5B8cwPMGnU",
"mode": "live",
"name": "John Doe",
"email": "example@email.com",
"locale": "en_US",
"createdAt": "2024-03-20T09:13:37+00:00",
"_links": {
"self": {
"href": "https://...",
"type": "application/hal+json"
},
"dashboard": {
"href": "https://...",
"type": "application/hal+json"
},
"payments": {
"href": "https://...",
"type": "application/hal+json"
},
"mandates": {
"href": "https://...",
"type": "application/hal+json"
},
"subscriptions": {
"href": "https://...",
"type": "application/hal+json"
},
"documentation": {
"href": "https://...",
"type": "application/hal+json"
}
}
}Changes
- warning
added the new
el_GRenum value to the////response property for the response status - warning
added the new
sl_SIenum value to the////response property for the response status - warning
added the new
tr_TRenum value to the////response property for the response status - info
added the new
el_GRenum value to the request property//// - info
added the new
sl_SIenum value to the request property//// - info
added the new
tr_TRenum value to the request property////
- warning
- warning
added the new
en_BEenum value to the////response property for the response status - warning
added the new
en_NLenum value to the////response property for the response status - info
added the new
en_BEenum value to the request property//// - info
added the new
en_NLenum value to the request property////
- warning