Customers API
Create customer
Creates a simple minimal representation of a customer. Payments, recurring mandates, and subscriptions can be linked to this customer object, which simplifies management of recurring payments.
Once registered, customers will also appear in your Mollie dashboard.
post/v2/customers
Request
- Base URLhttps://api.mollie.com
- URLhttps://api.mollie.com/v2/customers
- 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
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": "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 newly created 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"
}
}
}