The API for interacting with an account in which the customer is fully authenticated.
The base API object provided to this and other `customer-account` extension targets.
Information about the authenticated account.
Provides the customer information of the authenticated customer.
Provides the company info of the authenticated business customer. If the customer is not authenticated or is not a business customer, this value is `undefined`.
Information about the authenticated customer. {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
Customer ID.
Include information of the company of the logged in business customer.
Company ID.
Returns the current authenticated `Customer`. The value is `undefined` if the customer isn't authenticated.
Returns the current authenticated `Customer`. The value is `undefined` if the customer isn't authenticated.
export function useAuthenticatedAccountCustomer< Target extends RenderExtensionTarget, >(): Customer | undefined { const account = useApi<Target>().authenticatedAccount; return useSubscription(account.customer); }
Information about the authenticated customer. {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
Customer ID.
Provides information about the company of the authenticated business customer. The value is `undefined` if a business customer isn't authenticated.
Provides information about the company of the authenticated business customer. The value is `undefined` if a business customer isn't authenticated.
export function useAuthenticatedAccountPurchasingCompany< Target extends RenderExtensionTarget, >(): PurchasingCompany | undefined { const account = useApi<Target>().authenticatedAccount; return useSubscription(account.purchasingCompany); }
Include information of the company of the logged in business customer.
Company ID.