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

# validateProduct

GraphQL QUERY

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/b2b/b2b-graphql/queries/validate-product

## GraphQL Schema

```graphql
query ExampleQuery($productId: Int!, $variantId: Int!, $quantity: Int!, $productOptions: [GenericScalar], $storeHash: String, $channelId: Int, $target: String) {
  validateProduct(productId: $productId, variantId: $variantId, quantity: $quantity, productOptions: $productOptions, storeHash: $storeHash, channelId: $channelId, target: $target) {
    responseType
    message
    errorCode
    product {
      productId
      variantId
      sku
      availableToSell
      unlimitedBackorder
    }
  }
}
```

## Variables

```json
{
  "productId": 0,
  "variantId": 0,
  "quantity": 0,
  "productOptions": [
    "example"
  ],
  "storeHash": "example",
  "channelId": 0,
  "target": "QUOTE"
}
```