Skip to content

Update a customer

Changes a customer.

PATCH /v1/customers/{customer}

Use cases

  • Change the email address of a customer when the user changes it in your own system.
  • Change the reference of a customer when you give your users new IDs in your own system.
  • Remove the email address and the names of a customer when the user asks you to delete their personal data.

Authentication

Send an API key. This endpoint requires the scope customers:write. See Authentication and Scopes.

Customers belong to your account, not to one product. An integration that is limited to one product can update every customer. See Product.

Request

Path parameters

ParameterTypeDescription
customerstringThe ID of the customer.

Headers

HeaderRequiredDescription
AuthorizationYesThe word Bearer, a space and the API key.
Content-TypeYesapplication/json.

Body

Send only the fields that you want to change. A field that you leave out keeps its value. A field that you send as null is cleared.

FieldTypeRequiredDescription
external_refstringNoThe ID of the customer in your own system. No other customer in your account can have the same reference. The reference cannot be null. See References.
emailstring or nullNoThe email address of the customer. Send null to remove the email address.
first_namestring or nullNoThe first name of the customer. Send null to remove the first name.
last_namestring or nullNoThe last name of the customer. Send null to remove the last name.

Spaces at the start and the end of a value are removed. An email address or a name that has only spaces is removed, as if it was sent as null.

If one field is not valid, the customer does not change.

Response

The answer has the status 200.

FieldTypeDescription
idstringThe ID of the customer.
external_refstringThe ID of the customer in your own system. See References.
emailstring or nullThe email address of the customer.
first_namestring or nullThe first name of the customer.
last_namestring or nullThe last name of the customer.
created_atstringThe time when the customer was created.
updated_atstringThe time when the customer was last changed.

Errors

StatusReasonDescription
400The request body could not be read.The body is not valid JSON, or a field has the wrong type.
400The submitted details are not valid.A field is not valid. The errors field names it. See the table below.
401An API key is required.The request has no Authorization header, the header is empty, or the header does not use the Bearer scheme.
401The API key is not valid.No integration has this key.
401The API key has expired.The expiry date of the key has passed.
403This integration does not have the customers:write scope.The integration does not have customers:write.
404The customer was not found.No customer in your account has this ID.
409A customer with this reference already exists.Another customer in your account has the reference in external_ref. The errors field names external_ref.
429There are too many requests. Try again later.See Rate limits.

These fields can be in errors:

FieldDescription
external_refThe reference is null, empty or too long.
emailThe email address is not valid or too long.
first_nameThe first name is too long.
last_nameThe last name is too long.

See Errors.

Example

curl -X PATCH https://api.seatify.dev/v1/customers/$CUSTOMER_ID \
  -H "Authorization: Bearer $SEATIFY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "mira@okafor.example"
  }'

The answer:

{
  "id": "<customer id>",
  "external_ref": "usr_104233",
  "email": "mira@okafor.example",
  "first_name": "Mira",
  "last_name": "Okafor",
  "created_at": "2026-09-28T05:50:34Z",
  "updated_at": "2026-09-28T05:50:57Z"
}