Version 2025-07 is the last API version to support React-based UI components. Later versions use web components, native UI elements with built-in accessibility, better performance, and consistent styling with Shopify's design system. Check out the migration guide to upgrade your extension.
Authenticated Account API
The Authenticated Account API provides read-only access to the signed-in customer's ID and B2B purchasing company details. Use this API to identify the current customer, determine whether they're a B2B buyer, and personalize your extension based on their account context.
For more detailed customer data such as email, name, or phone, use the Customer Account API to query for additional details.
Anchor to Use casesUse cases
- Personalize the experience: Display a personalized greeting or tailored content based on the authenticated customer's identity.
- Detect B2B customers: Determine if the buyer is a B2B customer and show company-specific UI.
- Gate features by authentication: Only render certain features when the customer is signed in.
Supported targets
- Customer
Account::Kitchen Sink - customer-account.
footer. render-after - customer-account.
order-index. announcement. render - customer-account.
order-index. block. render - customer-account.
order-status. announcement. render - customer-account.
order-status. block. render - customer-account.
order-status. cart-line-item. render-after - customer-account.
order-status. cart-line-list. render-after - customer-account.
order-status. customer-information. render-after - customer-account.
order-status. fulfillment-details. render-after - customer-account.
order-status. payment-details. render-after - customer-account.
order-status. return-details. render-after - customer-account.
order-status. unfulfilled-items. render-after - customer-account.
order. action. menu-item. render - customer-account.
order. action. render - customer-account.
order. page. render - customer-account.
page. render - customer-account.
profile. addresses. render-after - customer-account.
profile. announcement. render - customer-account.
profile. block. render - customer-account.
profile. company-details. render-after - customer-account.
profile. company-location-addresses. render-after - customer-account.
profile. company-location-payment. render-after - customer-account.
profile. company-location-staff. render-after - customer-account.
profile. payment. render-after
Supported targets
- Customer
Account::Kitchen Sink - customer-account.
footer. render-after - customer-account.
order-index. announcement. render - customer-account.
order-index. block. render - customer-account.
order-status. announcement. render - customer-account.
order-status. block. render - customer-account.
order-status. cart-line-item. render-after - customer-account.
order-status. cart-line-list. render-after - customer-account.
order-status. customer-information. render-after - customer-account.
order-status. fulfillment-details. render-after - customer-account.
order-status. payment-details. render-after - customer-account.
order-status. return-details. render-after - customer-account.
order-status. unfulfilled-items. render-after - customer-account.
order. action. menu-item. render - customer-account.
order. action. render - customer-account.
order. page. render - customer-account.
page. render - customer-account.
profile. addresses. render-after - customer-account.
profile. announcement. render - customer-account.
profile. block. render - customer-account.
profile. company-details. render-after - customer-account.
profile. company-location-addresses. render-after - customer-account.
profile. company-location-payment. render-after - customer-account.
profile. company-location-staff. render-after - customer-account.
profile. payment. render-after
Anchor to PropertiesProperties
The Authenticated Account API object provides the authenticated customer's account information. Access the following properties on the API object to read account data.
- Anchor to authenticatedAccountauthenticatedAccountauthenticatedAccountAuthenticatedAccountAuthenticatedAccountrequiredrequired
The authenticated customer's account information, including their customer ID and B2B company details.
AuthenticatedAccount
- customer
The authenticated customer's account information, including their globally-unique ID.
StatefulRemoteSubscribable<Customer | undefined> - purchasingCompany
The B2B company information for the authenticated business customer. The value is `undefined` if the customer isn't authenticated or isn't a B2B customer.
StatefulRemoteSubscribable<PurchasingCompany | undefined>
Customer
The authenticated customer's account information. {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
- id
A globally-unique identifier for the customer.
string
PurchasingCompany
- company
The company that the authenticated B2B customer belongs to.
Company - location
The company location that the authenticated B2B customer is purchasing for.
CompanyLocation
Company
- id
A globally-unique identifier for the company.
string
CompanyLocation
- id
A globally-unique identifier for the company location.
string
Anchor to Best practicesBest practices
- Handle undefined customer: The
customerproperty isundefinedwhen the buyer isn't authenticated. Always check before accessing customer fields. - Use purchasing company for B2B logic: The
purchasingCompanyprovides the company and location for B2B customers. Use it to implement location-specific pricing or catalog restrictions.