Skip to main content

Buyer Identity API

Requires access to protected customer data. The customer and purchasingCompany properties require level 1 access. The email and phone properties require level 2 access.

The Buyer Identity API provides read-only access to the buyer who placed the order on the Order status page, including their customer account, email, phone, and B2B purchasing company. Use this API to display buyer details, differentiate between B2B and direct-to-consumer orders, or detect guest buyers.

Customer data reflects the account at the time the order was placed. If the buyer's account details have changed since then, the values returned by this API may not reflect those updates.

  • Display buyer details: Show the buyer's email or phone number alongside their order information.
  • Identify B2B orders: Detect B2B orders and display company-specific information such as the company name or location.
  • Guest vs. signed-in detection: Determine if the buyer has a customer account or is checking out as a guest.

The shopify global object provides the buyer identity. Access the following property on shopify to read information about the buyer who placed the order.

Anchor to buyerIdentity
buyerIdentity

The buyer who placed the order, including their customer account, email, phone number, and B2B purchasing company. Use this to personalize the Order status page or identify B2B orders.

Reflects the customer account at the time the order was placed. Doesn't update if account details change afterward.


Was this page helpful?