GraphQL Schema Updates

The Storefront GraphQL API now exposes how a cart was created and its associated B2B company.

Storefront GraphQL

  • Cart origin and company: new source and companyId fields on the Cart type.
    • Source: source returns the new CartSource enum, indicating how the cart was created: B2B, B2B_INVOICE, B2B_QUOTE, or BUY_NOW.
    • Company: companyId returns the B2B company ID associated with the cart.

For schema details, browse the Storefront GraphQL API reference.