warehouse_products

Arguments

ArgumentTypeRequiredDefaultDescription
warehouse_idStringNo
activeBooleanNo
skuStringNo
customer_account_idStringNo

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

created_fromISODateTimeNo
created_toISODateTimeNo
updated_fromISODateTimeNo
updated_toISODateTimeNo
analyzeBooleanNo

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

Return Type

WarehouseProductsQueryResult

Query

query warehouse_products(
  $warehouse_id: String,
  $active: Boolean,
  $sku: String,
  $customer_account_id: String,
  $created_from: ISODateTime,
  $created_to: ISODateTime,
  $updated_from: ISODateTime,
  $updated_to: ISODateTime,
  $analyze: Boolean
) {
  warehouse_products(
    warehouse_id: $warehouse_id,
    active: $active,
    sku: $sku,
    customer_account_id: $customer_account_id,
    created_from: $created_from,
    created_to: $created_to,
    updated_from: $updated_from,
    updated_to: $updated_to,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...WarehouseProductConnectionFragment
    }
  }
}

Variables

{
  "warehouse_id": "abc123",
  "active": true,
  "sku": "abc123",
  "customer_account_id": "abc123",
  "created_from": ISODateTime,
  "created_to": ISODateTime,
  "updated_from": ISODateTime,
  "updated_to": ISODateTime,
  "analyze": true
}

Response

{
  "data": {
    "warehouse_products": {
      "request_id": "abc123",
      "complexity": 987,
      "data": WarehouseProductConnection
    }
  }
}