work_orders
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
status | [String] | No | ||
wo_type | [String] | No | ||
requested_date_from | ISODateTime | No | ||
requested_date_to | ISODateTime | No | ||
updated_at_from | ISODateTime | No | ||
updated_at_to | ISODateTime | No | ||
customer_account_id | Int | No | ||
analyze | Boolean | No | If true, the query will only be analyzed (cost estimated) without executing it. |
Return Type
Query
query work_orders(
$status: [String],
$wo_type: [String],
$requested_date_from: ISODateTime,
$requested_date_to: ISODateTime,
$updated_at_from: ISODateTime,
$updated_at_to: ISODateTime,
$customer_account_id: Int,
$analyze: Boolean
) {
work_orders(
status: $status,
wo_type: $wo_type,
requested_date_from: $requested_date_from,
requested_date_to: $requested_date_to,
updated_at_from: $updated_at_from,
updated_at_to: $updated_at_to,
customer_account_id: $customer_account_id,
analyze: $analyze
) {
request_id
complexity
data {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
legacy_id
account_id
warehouse_id
name
configuration
type
scheduled_date
requested_date
started_at
ended_at
ready_to_pick_at
assembly_in_progress_at
completed_at
created_at
updated_at
status
has_special_project
priority
notes {
note
type
account_id
created_at
updated_at
}
assembly_sku {
to_create_quantity
created_quantity
receiving_location {
id
legacy_id
account_id
warehouse_id
type {
id
legacy_id
account_id
name
daily_storage_cost
category
is_lpn_allowed
}
name
zone
pickable
sellable
staging
is_cart
pick_priority
dimensions {
weight
height
width
length
}
length
width
height
max_weight
temperature
products {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
legacy_id
account_id
name
sku
price
value
value_currency
barcode
country_of_manufacture
dimensions {
...DimensionsFragment
}
tariff_code
kit
kit_build
no_air
final_sale
customs_value
customs_description
not_owned
dropship
needs_serial_number
thumbnail
large_thumbnail
created_at
updated_at
product_note
virtual
ignore_on_invoice
ignore_on_customs
active
needs_lot_tracking
packer_note
size
style
vendor_part_number
consumer_package_code
buyer_part_number
buyer_style_number
auto_pack
warehouse_products {
...WarehouseProductFragment
}
fba_inventory {
...FbaInventoryFragment
}
images {
...ProductImageFragment
}
tags
vendors {
...ProductVendorFragment
}
components {
...ProductFragment
}
kit_components {
...KitComponentFragment
}
cases {
...CaseFragment
}
}
cursor
}
}
last_counted
created_at
expiration_lots {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
legacy_id
account_id
po_id
name
sku
created_at
updated_at
expires_at
received_at
is_active
locations {
...LocationConnectionFragment
}
purchase_orders {
...PurchaseOrderConnectionFragment
}
}
cursor
}
}
}
staging_location {
id
legacy_id
account_id
warehouse_id
type {
id
legacy_id
account_id
name
daily_storage_cost
category
is_lpn_allowed
}
name
zone
pickable
sellable
staging
is_cart
pick_priority
dimensions {
weight
height
width
length
}
length
width
height
max_weight
temperature
products {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
legacy_id
account_id
name
sku
price
value
value_currency
barcode
country_of_manufacture
dimensions {
...DimensionsFragment
}
tariff_code
kit
kit_build
no_air
final_sale
customs_value
customs_description
not_owned
dropship
needs_serial_number
thumbnail
large_thumbnail
created_at
updated_at
product_note
virtual
ignore_on_invoice
ignore_on_customs
active
needs_lot_tracking
packer_note
size
style
vendor_part_number
consumer_package_code
buyer_part_number
buyer_style_number
auto_pack
warehouse_products {
...WarehouseProductFragment
}
fba_inventory {
...FbaInventoryFragment
}
images {
...ProductImageFragment
}
tags
vendors {
...ProductVendorFragment
}
components {
...ProductFragment
}
kit_components {
...KitComponentFragment
}
cases {
...CaseFragment
}
}
cursor
}
}
last_counted
created_at
expiration_lots {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
legacy_id
account_id
po_id
name
sku
created_at
updated_at
expires_at
received_at
is_active
locations {
...LocationConnectionFragment
}
purchase_orders {
...PurchaseOrderConnectionFragment
}
}
cursor
}
}
}
account_id
sku
created_at
updated_at
components {
sku
account_id
to_pick_quantity
picked_quantity
pick_location_id
}
items_to_pick
items_per_kit
lot_name
lot_expiration_date
}
}
cursor
}
}
}
}Variables
{
"status": ["abc123"],
"wo_type": ["abc123"],
"requested_date_from": ISODateTime,
"requested_date_to": ISODateTime,
"updated_at_from": ISODateTime,
"updated_at_to": ISODateTime,
"customer_account_id": 987,
"analyze": true
}Response
{
"data": {
"work_orders": {
"request_id": "abc123",
"complexity": 987,
"data": WorkOrderIdentifiableTypeConnection
}
}
}