import { ShopifyBuyerInput } from '@daffodil/driver/shopify'
Identifies a B2B buyer for the @inContext directive. Pass this input to contextualize Storefront API queries with data like B2B-specific pricing, quantity rules, and quantity price breaks.
For B2B customers with access to multiple company locations, include the companyLocationId to specify which location they're purchasing for.
interface ShopifyBuyerInput {
companyLocationId: string
customerAccessToken: string
}
companyLocationId string |
|---|
The identifier of the company location. |
customerAccessToken string |
|---|
The customer access token retrieved from the Customer Accounts API. |