- Updates a customer's information
PATCH {{baseURL}}/v2/customers/{{customerId}}
This endpoint performs a partial update to an existing customer's record using JSON Merge Patch, defined by RFC (request for comments) 7396.
Send only the fields to change. An omitted field is left unchanged. An explicit null clears a clearable field. This applies to nested structures too, such as billingAddress and shippingAddress: updating one field within an address doesn't require resending the whole object. Moving an address to US requires sending stateCode. Moving it out of US clears stateCode when it is not sent. The firstName and lastName fields, and an address's countryCode, cannot be cleared. The externalId field cannot be changed after create.
This endpoint returns the full updated customer: paymentMethods oldest first, shippingAddress is null while shouldUseBillingAsShippingAddress is true, and a card's cardType may be Unknown.
This endpoint requires a merchant API token. A merchant API token managed by a partner also requires that partner's account to have the ListCustomers permission. Failure in either case returns a 403 response.
See Also:
To create a customer, see POST /v2/customers.
To list customers, see GET /v2/customers.
To retrieve a customer by ID, see GET /v2/customers/{customerId}.
To delete a customer, see DELETE /v2/customers/{customerId}.
Specifies fields that should be changed, remain the same, or deleted.
This endpoint is a partial update.
- Send only the fields to change.
- An omitted field is left unchanged.
- An explicit
nullclears a clearable field.
Nested structures are also affected.
Specifies the customer's first name.
This value cannot be cleared.
Example: Alexandro
Specifies the customer's last name.
This value cannot be cleared.
Example: Peppared
Specifies the name of the customer's company or organization.
Example: Peppared Street Cafe
Specifies the customer's email.
Example: peppared@example.com
Specifies the customer's mobile phone number.
Example: +14155552309
Specifies whether the customer has consented to receiving SMS.
Valid values are:
| Value | Description |
|---|---|
| false | The customer has not consented to receiving the SMS. SMS messages cannot be sent to this customer. This is the behavior when omitted. |
| true | The customer has consented to receiving the SMS. |
Because the default is false, consent must be explicitly recorded as true before any SMS is sent.
Example: true
Specifies whether to use the billing address as the shipping address.
Valid values are:
| Value | Description |
|---|---|
| false | Do not use the billing address as shipping address. |
| true | Use the billing address as shipping address. |
Example: true
- Sandbox environmenthttps://sandbox.api.flute.com/v2/customers/{customerId}
- Production environmenthttps://api.flute.com/v2/customers/{customerId}
Updates the customer's name, company, contact details, and both addresses.
// Language is not supported.Identifies the customer.
This value is always provided.
Example: 8fa8e727-73c6-436e-b56f-6f55aabf3b1c
Indicates the merchant's own reference for the customer.
This value is set on create only.
This value is null if not set.
Example: CUST-EXT-12345
Indicates the name of the customer's company or organization.
This value is null if not set.
Example: Peppared Street Cafe
Indicates the customer's email.
This value is null if not set.
Example: peppared@example.com
Indicates the customer's mobile phone number, in E.164 format.
This value is null if not set.
Example: +14125553845
Indicates whether the customer has consented to receiving SMS at their mobilePhoneNumber.
Valid values are:
| Value | Description |
|---|---|
| false | The customer has not consented to receiving the SMS. SMS messages cannot be sent to this customer. |
| true | The customer has consented to receiving the SMS. |
Example: true
Indicates whether the billing address is also used as the shipping address.
Valid values are:
| Value | Description |
|---|---|
| false | shippingAddress is this customer's own shipping address, if one is set. |
| true | Use the billing address as the shipping address. shippingAddress is null. |
Example: false
Indicates the date-time (in an ISO 8601 UTC date-time format) of the customer's most recent transaction.
This value is null if the customer has no transactions yet.
Example: 2026-05-01T12:00:00.917Z
Indicates the sum of all transaction amounts.
Example: 1366.35
Indicates the amount of the most recent transaction.
This value is null if the customer has no transactions yet.
Example: 99.99
Indicates the number of subscriptions in Active status.
Example: 2
Indicates every saved payment method, oldest first.
It is empty if there are none.
Indicates the date-time (in an ISO 8601 UTC date-time format) the customer was created on.
Example: 2026-01-15T10:00:00.063Z
{ "customerId": "c4b210e9-be39-4ebc-8195-0c422de87f90", "externalId": "CUST-EXT-12345", "firstName": "Alexandro", "lastName": "Peppared", "companyName": "Tech Solutions Inc", "email": "peppared@techsolutions.com", "mobilePhoneNumber": "+15559876543", "hasSmsConsent": false, "shouldUseBillingAsShippingAddress": false, "billingAddress": { "city": "Los Angeles", "countryCode": "US", "addressLine1": "456 Oak Avenue", "addressLine2": "Floor 5", "postalCode": "90001", "stateCode": "CA" }, "shippingAddress": { "city": "San Francisco", "countryCode": "US", "addressLine1": "789 Pine Road", "addressLine2": null, "postalCode": "94102", "stateCode": "CA" }, "lastTransactionOn": "2026-05-29T22:04:31.792Z", "transactionsCount": 25, "transactionsTotalAmount": 12500, "lastTransactionAmount": 150, "activeSubscriptionsCount": 2, "paymentMethods": [], "createdOn": "2026-01-15T10:00:00.183Z", "modifiedOn": "2026-06-10T16:00:00.760Z" }