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.orders: a paginated list of orders placed under the company. This field is an alpha preview and is not intended for production use.
- Company order filtering and sorting: the new
CompanyOrdersFiltersInputinput filters company orders by search text, status labels, customer ID, company or subsidiary IDs, and created date, while the newOrdersSortInputenum sorts them by created date, total including tax, ID, placed-by name, reference, or status. - Orders collection info: a new
collectionInfofield on theOrdersConnectiontype returns additional information about the orders collection.
For schema details, browse the Storefront GraphQL API reference.