Fetch Customer Details

This endpoint returns a customer record. Most commonly used to fetch a customer’s point balance and unique referral link.

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

Please note:

When using the “with_history” flag set totrue, the completed_at value returned with the customer's history items represents the created_at date passed with the Custom Action API call. This registers when the customer actually completed the action, and not when it was registered in the Yotpo system.

🚧

Please note:

If you're a Shopify merchants who uses, Klaviyo, or a custom ESP integration and joined Yotpo Loyalty & Referrals after August 2024, you will get a response with the following details for the “with_referral_code” parameter:
"referal_link{
"link": "rwrd.io/abc123"
"code":"abc123"
"expired":false },

points_expire_at

The response includes points_expire_at: the date when the customer's points are set to expire, or null when points never expire under your policy. The value follows your Points expiration policy (Last Activity, Date Earned, or Never expire). For Date Earned, the field is the next upcoming expiration across batches (not every batch date). The same field and rules apply to GET /v1/customers, GET /v2/customers, and list responses from GET /api/v2/customers/recent. For the full description, see any webhook that returns a customer object with this field—for example Points Earned.

Query Params
string
required

The customer's email address. Required if no pos_account_id, customer_id or phone_number is passed.

string
required

The identifier used to uniquely identify the customer in your system. Required if no customer_email, pos_account_id or phone_number is passed.

string
required

The identifier used to uniquely identify the customer in your POS system. Required if no customer_email, customer_id or phone_number is passed.

string
required

The customer's phone number in E.164 format. e.g +14155552671. Must be an exact match. Required if no customer_email, pos_account_id or customer_id or is passed.

string
Defaults to null

Only use if unable to send phone_number in full E.164 format. If phone_number is passed in full E.164 format with country_iso_code, this string will be ignored. Example: "US", "GB", i.e.

boolean
Defaults to false

Defaults to false. If you'd like information about the customers referral code you can set this to true.

boolean
Defaults to true

Defaults to false. If you'd like information about the customers point earning and redemption history you can set this to true.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json