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

# orderedProducts

GraphQL QUERY

Get an ordered list of the products.  
Requires a B2B or BC Token.

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/b2b/b2b-graphql/queries/ordered-products

## GraphQL Schema

```graphql
query ExampleQuery($channelId: Int, $offset: Int, $before: String, $after: String, $first: Int, $last: Int, $q: String, $productId: Decimal, $beginDateAt: Date, $endDateAt: Date, $minOrderedTimes: Decimal, $maxOrderedTimes: Decimal, $orderBy: String) {
  orderedProducts(channelId: $channelId, offset: $offset, before: $before, after: $after, first: $first, last: $last, q: $q, productId: $productId, beginDateAt: $beginDateAt, endDateAt: $endDateAt, minOrderedTimes: $minOrderedTimes, maxOrderedTimes: $maxOrderedTimes, orderBy: $orderBy) {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
    edges {
      node
      cursor
    }
    totalCount
  }
}
```

## Variables

```json
{
  "channelId": null,
  "offset": 0,
  "before": "example",
  "after": "example",
  "first": 0,
  "last": 0,
  "q": "example",
  "productId": 0,
  "beginDateAt": "2026-10-25",
  "endDateAt": "2026-10-25",
  "minOrderedTimes": 0,
  "maxOrderedTimes": 0,
  "orderBy": "example"
}
```