cycle_counts

Arguments

ArgumentTypeRequiredDefaultDescription
warehouse_idString!Yes

The warehouse ID to filter cycle counts by.

customer_account_idStringNo

Filter by customer account ID (for 3PL accounts).

skuStringNo

Filter by SKU.

status[String]No

Filter by status. Possible values: uncounted, in_progress, closed.

count_type[DSCycleCountBatchCountTypes]No

Filter by count type.

date_fromISODateTimeNo

Filter by created date (from).

date_toISODateTimeNo

Filter by created date (to).

analyzeBooleanNo

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

Return Type

CycleCountsQueryResult

Query

query cycle_counts(
  $warehouse_id: String!,
  $customer_account_id: String,
  $sku: String,
  $status: [String],
  $count_type: [DSCycleCountBatchCountTypes],
  $date_from: ISODateTime,
  $date_to: ISODateTime,
  $analyze: Boolean
) {
  cycle_counts(
    warehouse_id: $warehouse_id,
    customer_account_id: $customer_account_id,
    sku: $sku,
    status: $status,
    count_type: $count_type,
    date_from: $date_from,
    date_to: $date_to,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...CycleCountBatchConnectionFragment
    }
  }
}

Variables

{
  "warehouse_id": "abc123",
  "customer_account_id": "abc123",
  "sku": "abc123",
  "status": ["abc123"],
  "count_type": ["PRODUCTS"],
  "date_from": ISODateTime,
  "date_to": ISODateTime,
  "analyze": true
}

Response

{
  "data": {
    "cycle_counts": {
      "request_id": "abc123",
      "complexity": 987,
      "data": CycleCountBatchConnection
    }
  }
}