> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

## 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](/developer/api-reference/graphql/storefront/queries/site).