> 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.

## B2B order data in the Storefront GraphQL API

Authenticated B2B company users can now read company orders and B2B order details through the Storefront GraphQL API, so a single storefront graph can serve both B2C and B2B order experiences.

### Storefront GraphQL

* **Company order queries:** the `orders` field on the `ActiveCompany` type returns orders placed on the current storefront channel by any user in the shopper's active company, with cursor pagination, filtering, and sorting.
* **B2B order fields:** orders add `poNumber`, `reference`, `company`, `placedBy`, `invoice`, `history`, and `extraFields`. These fields require a B2B storefront token.

For example queries, see the [Orders guide](/developer/docs/storefront/guides/graphql-storefront-api/orders), or browse the [Storefront GraphQL API reference](/developer/api-reference/graphql) for schema details.