(PUT) Update customers

Update existing customers by ID or external ID.

Endpoint

PUT /api/customers

Update one or more existing customers in a single request. Entries with id update that customer. Entries without id use externalId to find an existing active customer. This endpoint does not create customers.

Endpoint text
PUT /api/customers

Authentication

Requires authentication with an API key that has the customersWrite scope.

Request Body

The request body must be an array of customer objects.

ParameterTypeRequiredDescription
id (body)string (UUID)NoExisting customer ID. When provided, the entry updates that customer.
externalId (body)stringNoExternal customer identifier. Without `id`, this identifies the existing customer to update. With `id`, it can update the customer's external ID.
name (body)string/nullNoCustomer display name. Send null to clear.
email (body)string/nullNoCustomer email address. Send null to clear.
phone (body)string/nullNoCustomer phone number. Send null to clear.
avatar (body)string/nullNoHTTPS avatar image URL. Send null to clear.

Entries with id must include at least one mutable field. Entries without id must include externalId for an existing customer and at least one customer field (name, email, phone, or avatar).