Create or update customer
Create or update a customer profile. Uses the email address as the upsert key — if a customer with that email exists, their profile is updated; otherwise, a new customer is created.
Profile fields
firstNameandlastNameare set directly on the customer. A full display name is automatically generated from these fields.phoneNumbershould be in E.164 format (e.g.,+12345678900). If the number is new, it is added to the customer’s contact information.
Location
Providing location sets the customer’s current location. Only the fields
you include are updated.
Custom fields
Use customFields to store arbitrary key-value data on the customer (e.g.,
pricing_plan, subscription_source). Values can be strings, numbers, or
booleans. If a custom field doesn’t exist yet, it is created automatically.
Requires the customers_write scope.
Authorizations
Body
Request body for creating or updating a customer profile. The email address is used as the upsert key.
Custom field values as key-value pairs. Keys are field names and values can be strings, numbers, or booleans. The field type is determined automatically based on the value:
- String values → STRING custom field
- Number values → NUMBER custom field
- Boolean values → BOOLEAN custom field
- ISO 8601 datetime strings (e.g., "2026-02-24T12:15:00.000Z") → DATE custom field (auto-detected)
If a field name does not already have a declaration, one is created automatically. For STRING fields, unique values are tracked as options (used for segment filtering dropdowns). NUMBER, BOOLEAN, and DATE fields do not track options.