Skip to content

Updates a customer's information

Request

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}.

Security
Bearer
Path
customerIdstring, (UUID)required

Specifies a customer's identifier.

Example: c4b210e9-be39-4ebc-8195-0c422de87f90

Example:c4b210e9-be39-4ebc-8195-0c422de87f90
Bodyapplication/json

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 null clears a clearable field.

Nested structures are also affected.

firstNamestring or null, <= 100 characters

Specifies the customer's first name.

This value cannot be cleared.

Example: Alexandro

Example:"Alexandro"
lastNamestring or null, <= 100 characters

Specifies the customer's last name.

This value cannot be cleared.

Example: Peppared

Example:"Peppared"
companyNamestring or null, <= 100 characters

Specifies the name of the customer's company or organization.

Example: Peppared Street Cafe

Example:"Peppared Street Cafe"
emailstring or null, <= 250 characters

Specifies the customer's email.

Example: peppared@example.com

Example:"peppared@example.com"
mobilePhoneNumberstring or null, (E.164), <= 20 characters^(null|\+\d{1,20})$

Specifies the customer's mobile phone number.

Example: +14155552309

Example:"+14155552309"
hasSmsConsentboolean or null

Specifies whether the customer has consented to receiving SMS.

Valid values are:

ValueDescription
falseThe customer has not consented to receiving the SMS. SMS messages cannot be sent to this customer. This is the behavior when omitted.
trueThe 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

Default:false
Example:true
shouldUseBillingAsShippingAddressboolean

Specifies whether to use the billing address as the shipping address.

Valid values are:

ValueDescription
falseDo not use the billing address as shipping address.
trueUse the billing address as shipping address.

Example: true

Default:false
Example:true
billingAddressobject or null

Specifies the address information.

shippingAddressobject or null

Specifies the address information.

Updates the customer's name, company, contact details, and both addresses.

// Language is not supported.

Responses

OK

Bodyapplication/json
customerIdstring, (UUID)

Identifies the customer.

This value is always provided.

Example: 8fa8e727-73c6-436e-b56f-6f55aabf3b1c

Example:"8fa8e727-73c6-436e-b56f-6f55aabf3b1c"
externalIdstring or null

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

Example:"CUST-EXT-12345"
firstNamestring

Indicates the customer's first name.

Example: Alexandro

Example:"Alexandro"
lastNamestring

Indicates the customer's last name.

Example: Peppared

Example:"Peppared"
companyNamestring or null

Indicates the name of the customer's company or organization.

This value is null if not set.

Example: Peppared Street Cafe

Example:"Peppared Street Cafe"
emailstring or null

Indicates the customer's email.

This value is null if not set.

Example: peppared@example.com

Example:"peppared@example.com"
mobilePhoneNumberstring or null, (E.164)

Indicates the customer's mobile phone number, in E.164 format.

This value is null if not set.

Example: +14125553845

Example:"+14125553845"
hasSmsConsentboolean

Indicates whether the customer has consented to receiving SMS at their mobilePhoneNumber.

Valid values are:

ValueDescription
falseThe customer has not consented to receiving the SMS. SMS messages cannot be sent to this customer.
trueThe customer has consented to receiving the SMS.

Example: true

Example:true
shouldUseBillingAsShippingAddressboolean

Indicates whether the billing address is also used as the shipping address.

Valid values are:

ValueDescription
falseshippingAddress is this customer's own shipping address, if one is set.
trueUse the billing address as the shipping address. shippingAddress is null.

Example: false

Example:false
billingAddressobject or null

Specifies the address information.

shippingAddressobject or null

Specifies the address information.

lastTransactionOnstring or null, (ISO 8601 date-time)

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

Example:"2026-05-01T12:00:00.917Z"
transactionsCountinteger, (int32)

Indicates the total number of transactions.

Example: 12

Example:12
transactionsTotalAmountnumber, (double)

Indicates the sum of all transaction amounts.

Example: 1366.35

Example:1366.35
lastTransactionAmountnumber or null, (double)

Indicates the amount of the most recent transaction.

This value is null if the customer has no transactions yet.

Example: 99.99

Example:99.99
activeSubscriptionsCountinteger, (int32)

Indicates the number of subscriptions in Active status.

Example: 2

Example:2
paymentMethodsArray of objects

Indicates every saved payment method, oldest first.

It is empty if there are none.

createdOnstring, (ISO 8601 date-time)

Indicates the date-time (in an ISO 8601 UTC date-time format) the customer was created on.

Example: 2026-01-15T10:00:00.063Z

Example:"2026-01-15T10:00:00.063Z"
modifiedOnstring, (ISO 8601 date-time)

Indicates the date-time (in an ISO 8601 UTC date-time format) the customer was last modified on.

Example: 2026-05-01T12:00:00.735Z

Example:"2026-05-01T12:00:00.735Z"
Response
{ "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" }