product

Arguments

ArgumentTypeRequiredDefaultDescription
idStringNo
skuStringNo
barcodeStringNo
customer_account_idStringNo

If you are a 3PL you can specify one of your customer's account

analyzeBooleanNo

If true, the query will only be analyzed (cost estimated) without executing it.

Return Type

ProductQueryResult

Query

query product(
  $id: String,
  $sku: String,
  $barcode: String,
  $customer_account_id: String,
  $analyze: Boolean
) {
  product(
    id: $id,
    sku: $sku,
    barcode: $barcode,
    customer_account_id: $customer_account_id,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...ProductFragment
    }
  }
}

Variables

{
  "id": "abc123",
  "sku": "abc123",
  "barcode": "abc123",
  "customer_account_id": "abc123",
  "analyze": true
}

Response

{
  "data": {
    "product": {
      "request_id": "abc123",
      "complexity": 987,
      "data": Product
    }
  }
}