inventory_generate_snapshot

Arguments

ArgumentTypeRequiredDefaultDescription
dataInventoryGenerateSnapshotInput!Yes

Return Type

InventorySnapshotOutput

Mutation

mutation inventory_generate_snapshot(
  $data: InventoryGenerateSnapshotInput!
) {
  inventory_generate_snapshot(
    data: $data
  ) {
    request_id
    complexity
    snapshot {
      ...InventorySnapshotFragment
    }
  }
}

Variables

{
  "data": {
    "customer_account_id": "abc123",
    "warehouse_id": "abc123",
    "notification_email": "abc123",
    "post_url": "abc123",
    "post_url_pre_check": true,
    "new_format": true,
    "updated_from": ISODateTime,
    "has_inventory": true
  }
}

Response

{
  "data": {
    "inventory_generate_snapshot": {
      "request_id": "abc123",
      "complexity": 987,
      "snapshot": InventorySnapshot
    }
  }
}