Create or update customer

Creates a customer in your Yotpo store.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
👍

How to use this endpoint

  • Required parameters are listed below. For the full list of properties, see About customers.
  • To see an example request, click Examples in the payload on the right.
  • To skip a parameter, enter "null" or exclude it from the payload.
🚧

Deprecated parameters

The following parameters are deprecated and will be removed in a future release. Please discontinue use and remove them from any existing integrations:

  • custom_properties — deprecated. Use dedicated customer property endpoints instead.
  • phone_number — deprecated. Phone number can no longer be set via this endpoint.
👍

Want to check if a customer was registered successfully with Yotpo?

Wait 60 seconds and then use the Retrieve customers endpoint.

Path Params
string
required

The store ID (app_key).

Body Params
json
required

Identifiers and properties of the customer associated with this action. You must identify the customer by an external_id. If there isn’t an external_id that can be used - you must identify the customer by only one of the following identifiers: phone_number or email. If an external_id is not specified, we cannot accept both email and phone_number in the payload.

string

A unique customer identifier. This ID will be used to identify the customer in our database, it is used for creating profiles, attributing events to profiles, and merging profiles. If you don’t have a unique identifier for the customer, avoid using this property. If you’re using Shopify as your eCommerce platform, please use the Shopify customer ID.

string
deprecated

Phone number of the customer associated with the action. E.164 format is required.

string

Email of the customer associated with the action.

json
deprecated

Metadata associated with the customer is represented as a JSON object with < string key >:< primitive type value > pairs. Supported primitive types include string, boolean, int, long, double, and date (ISO). 'null' values are not supported. Property names must use underscores (_) instead of spaces. These properties can be used for segmentation or to personalize campaigns.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Choose an example:
application/json