GraphQL Schema Updates
Authenticated customers can now access their active B2B company context through the Storefront GraphQL API.
Storefront GraphQL
- Active company access: a new
activeCompanyfield on theCustomertype returns the shopper’s active company context through the newActiveCompanytype, or null when the shopper is not an authenticated customer. TheActiveCompanytype exposes:companyUser: the authenticated B2B company user, or null when the caller is not a company user, B2B is disabled, or the feature flag is off.addresses: a paginated, filterable list of the company’s addresses.
For schema details, browse the Storefront GraphQL API reference.