Development
  • Guides
  • API Reference
  • API Explorer
  • SDKs
  • Sample apps
  • System status
Support
  • Developer forums
  • Developer blog
  • YouTube
  • X
More
  • Square Home
  • Square Developer
  • App Marketplace
  • Partner with Square
  • Solutions Partner Program
  • Pricing
  • Sales

© 2026 Square, Inc.

  • Developer terms of service
  • Developer Integration and Marketing Agreement
  • Privacy policy
  • Partnerships
  • Sign In
  • Sign In

    Customers

  • List customers

  • Create customer

  • Bulk create customers

  • Bulk delete customers

  • Bulk retrieve customers

  • Bulk update customers

  • Search customers

  • Delete customer

  • Retrieve customer

  • Update customer

  • Remove group from customer

  • Add group to customer

  • Webhooks

  • customer.created

  • customer.deleted

  • customer.updated

<- Customers API

Customers API

All versions ->

Update customer

PUT

 /v2/customers/{customer_id}

Updates a customer profile.

This endpoint supports sparse updates, so only new or changed fields are required in the request. To add or update a field, specify the new value. To remove a field, specify null.

To update a customer profile that was created by merging existing profiles, you must use the ID of the newly created profile.

Permissions:CUSTOMERS_WRITE

Guide

Update customer profiles

Try in API Explorer
Link to section

Path parameters

Example code

Link to section

customer_id

string

Required

The ID of the customer to update.

Link to section

Request body

Link to section

given_name

string

The given name (that is, the first name) associated with the customer profile.

The maximum length for this value is 300 characters.

Link to section

family_name

string

The family name (that is, the last name) associated with the customer profile.

The maximum length for this value is 300 characters.

Link to section

company_name

string

A business name associated with the customer profile.

The maximum length for this value is 500 characters.

Link to section

nickname

string

A nickname for the customer profile.

The maximum length for this value is 100 characters.

Link to section

email_address

string

The email address associated with the customer profile.

The maximum length for this value is 254 characters.

Link to section

address

The physical address associated with the customer profile. Only new or changed fields are required in the request.

For maximum length constraints, see Customer addresses. The first_name and last_name fields are ignored if they are present in the request.

Link to section

phone_number

string

The phone number associated with the customer profile. The phone number must be valid and can contain 9–16 digits, with an optional + prefix and country code. For more information, see Customer phone numbers.

Link to section

reference_id

string

An optional second ID used to associate the customer profile with an entity in another system.

The maximum length for this value is 100 characters.

Link to section

note

string

A custom note associated with the customer profile.

Link to section

birthday

string

The birthday associated with the customer profile, in YYYY-MM-DD or MM-DD format. For example, specify 1998-09-21 for September 21, 1998, or 09-21 for September 21. Birthdays are returned in YYYY-MM-DD format, where YYYY is the specified birth year or 0000 if a birth year is not specified.

Link to section

version

integer(64-bit)

The current version of the customer profile.

As a best practice, you should include this field to enable optimistic concurrency control. For more information, see Update a customer profile.

Link to section

tax_ids

The tax ID associated with the customer profile. This field is available only for customers of sellers in EU countries or the United Kingdom. For more information, see Customer tax IDs.

Link to section

Response fields

Link to section

errors

Any errors that occurred during the request.

Link to section

customer

The updated customer.

Link to section

Examples

All versions ->

PUT /v2/customers/{customer_id}
curl https://connect.squareup.com/v2/customers/JDKYHBWT1D4F8MFH63DBMEN8Y4 \ -X PUT \ -H 'Square-Version: 2026-11-18' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "phone_number": null, "email_address": "[email protected]", "note": "updated customer note", "version": 2 }'

Response JSON

{ "customer": { "id": "JDKYHBWT1D4F8MFH63DBMEN8Y4", "created_at": "2016-03-23T20:21:54.859Z", "updated_at": "2016-05-15T20:21:55Z", "given_name": "Amelia", "family_name": "Earhart", "email_address": "[email protected]", "address": { "address_line_1": "500 Electric Ave", "address_line_2": "Suite 600", "locality": "New York", "administrative_district_level_1": "NY", "postal_code": "10003", "country": "US" }, "reference_id": "YOUR_REFERENCE_ID", "note": "updated customer note", "preferences": { "email_unsubscribed": false }, "creation_source": "THIRD_PARTY", "version": 3 } }

Error descriptions

400 Bad request

{ "errors": [ { "code": "INVALID_EMAIL_ADDRESS", "category": "INVALID_REQUEST_ERROR" } ] }