GraphQL API Overview
BigCommerce offers several GraphQL APIs for different use cases:
- Account API — Manage account-level resources such as users.
- Admin API — Query and mutate store data server-side.
- Storefront API — Query products, customers, and carts from the storefront.
- B2B API — Manage B2B Edition resources such as companies, quotes, and shopping lists.
For authentication details specific to GraphQL, see GraphQL Storefront Authentication.
Some Storefront API operations depend on customer context. Sending a request as a signed-in customer can change what a query returns (such as customer-specific pricing) and is required for some operations to work at all. registerCompany, for example, must be called as a signed-in customer. If an operation returns empty data or an authentication error when you expected results, confirm you’re sending a customer context. See Customer context in the GraphQL Storefront API.
GraphQL HTTP status codes
All GraphQL errors return a 401 HTTP status code.