inventory_snapshots
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
warehouse_id | String | No | ||
customer_account_id | String | No | ||
status | String | No | Any of the following statuses: pending: Request received enqueued: Queued for processing processing: Being processed success: Finished successfully error: Terminated early due to an exception aborted: Aborted by the user Multiple statuses can be combined using: , e.g. status: "pending,processing" One or more statuses can be excluded using: ! e.g. status: "!error_all,error_partial" | |
analyze | Boolean | No | If true, the query will only be analyzed (cost estimated) without executing it. |
Return Type
Query
query inventory_snapshots(
$warehouse_id: String,
$customer_account_id: String,
$status: String,
$analyze: Boolean
) {
inventory_snapshots(
warehouse_id: $warehouse_id,
customer_account_id: $customer_account_id,
status: $status,
analyze: $analyze
) {
request_id
complexity
data {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
snapshot_id
job_user_id
job_account_id
warehouse_id
customer_account_id
notification_email
email_error
post_url
post_error
post_url_pre_check
status
error
created_at
enqueued_at
updated_at
snapshot_url
snapshot_expiration
new_format
}
cursor
}
}
snapshots {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
snapshot_id
job_user_id
job_account_id
warehouse_id
customer_account_id
notification_email
email_error
post_url
post_error
post_url_pre_check
status
error
created_at
enqueued_at
updated_at
snapshot_url
snapshot_expiration
new_format
}
cursor
}
}
}
}Variables
{
"warehouse_id": "abc123",
"customer_account_id": "abc123",
"status": "abc123",
"analyze": true
}Response
{
"data": {
"inventory_snapshots": {
"request_id": "abc123",
"complexity": 987,
"data": InventorySnapshotConnection,
"snapshots": InventorySnapshotConnection
}
}
}