product_stores

Stores the product SKU is connected to, with the IDs to use in product_update manage_inventory_stores and whether inventory push can be managed on each.

Arguments

ArgumentTypeRequiredDefaultDescription
skuString!Yes

SKU. SKU matching is case-insensitive and ignores surrounding whitespace.

customer_account_idStringNo

3PL child/customer account ID this record belongs to; omit to use the authenticated account.

analyzeBooleanNo

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

Return Type

ProductStoresQueryResult

Query

query product_stores(
  $sku: String!,
  $customer_account_id: String,
  $analyze: Boolean
) {
  product_stores(
    sku: $sku,
    customer_account_id: $customer_account_id,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...ProductStoreConnectionFragment
    }
  }
}

Variables

{
  "sku": "BLUE-TEE-M",
  "customer_account_id": "QWNjb3VudDoxMjM0",
  "analyze": true
}

Response

{
  "data": {
    "product_stores": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "data": ProductStoreConnection
    }
  }
}