Update Customer
Changed onUpdates a customer. Only the fields you send are changed.
Changing the default payment method:
Set defaultTokenId to the ID of a payment method this customer already owns. It must be one that can be reused for future payments — a payment method saved for a single use is rejected.
MONEI only ever fills a default that is empty, so a value you set here is kept. Deleting that payment method clears the field, and the next reusable one the customer saves becomes the new default.
What updating does not do:
Updating a customer never changes a payment or a subscription that already exists. Their copies of the customer's details were taken when they were created, so a corrected email here does not rewrite last month's receipt.
Request
- Base URLhttps://api.monei.com/v1
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"email": "john.doe@example.com",
"name": "John Doe",
"phone": "+34666666666",
"billingDetails": {
"name": "John Doe",
"email": "john.doe@example.com",
"address": {
"country": "ES",
"city": "Málaga",
"line1": "Fake Street 123",
"zip": "1234",
"state": "Málaga"
}
},
"shippingDetails": {
"name": "John Doe",
"email": "john.doe@example.com",
"address": {
"country": "ES",
"city": "Málaga",
"line1": "Fake Street 123",
"zip": "1234",
"state": "Málaga"
}
},
"metadata": {
"systemId": "12345"
},
"defaultTokenId": "7cc38b08ff471ccd313ad62b23b9f362b107560b"
}Response
A customer object
Example response
{
"id": "a4e1d1dd-e0c2-4f7a-a2b1-2b0f1f9b6b1e",
"email": "john.doe@example.com",
"name": "John Doe",
"phone": "+34666666666",
"billingDetails": {
"name": "John Doe",
"email": "john.doe@example.com",
"address": {
"country": "ES",
"city": "Málaga",
"line1": "Fake Street 123",
"zip": "1234",
"state": "Málaga"
}
},
"shippingDetails": {
"name": "John Doe",
"email": "john.doe@example.com",
"address": {
"country": "ES",
"city": "Málaga",
"line1": "Fake Street 123",
"zip": "1234",
"state": "Málaga"
}
},
"metadata": {
"systemId": "12345"
},
"defaultTokenId": "7cc38b08ff471ccd313ad62b23b9f362b107560b",
"createdAt": "2026-09-21T10:25:52.000Z",
"updatedAt": "2026-09-21T10:25:52.000Z"
}Changes
- info
endpoint added
- info