inventory_replace

Arguments

ArgumentTypeRequiredDefaultDescription
dataReplaceInventoryInput!Yes

Return Type

UpdateInventoryOutput

Mutation

mutation inventory_replace(
  $data: ReplaceInventoryInput!
) {
  inventory_replace(
    data: $data
  ) {
    request_id
    complexity
    warehouse_product {
      ...WarehouseProductFragment
    }
  }
}

Variables

{
  "data": {
    "customer_account_id": "QWNjb3VudDoxMjM0",
    "sku": "BLUE-TEE-M",
    "warehouse_id": "V2FyZWhvdXNlOjEyMzQ=",
    "quantity": 2,
    "reason": "Customer requested expedited handling.",
    "location_id": "TG9jYXRpb246MTIzNA==",
    "lpn_id": "TGljZW5zZVBsYXRlTnVtYmVyOjEyMzQ=",
    "includes_non_sellable": true
  }
}

Response

{
  "data": {
    "inventory_replace": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "warehouse_product": {sku: "BLUE-TEE-M", name: "Blue Tee"}
    }
  }
}