wholesale_order_auto_allocate_for_picking

Arguments

ArgumentTypeRequiredDefaultDescription
dataWholesaleOrderAutoAllocateInput!Yes

Return Type

WholesaleOrderAutoAllocateForPickingMutationOutput

Mutation

mutation wholesale_order_auto_allocate_for_picking(
  $data: WholesaleOrderAutoAllocateInput!
) {
  wholesale_order_auto_allocate_for_picking(
    data: $data
  ) {
    request_id
    complexity
    line_items {
      ...WholesaleOrderAutoAllocateForPickingTypeFragment
    }
  }
}

Variables

{
  "data": {
    "order_id": "abc123",
    "prioritized_location_ids": ["abc123"],
    "sort_lots": "RECEIVING_FIFO",
    "location_type": "PICKABLE",
    "sort_stock": "LEAST",
    "prioritize_largest_uom": true,
    "lot_expires_in_days": 987
  }
}

Response

{
  "data": {
    "wholesale_order_auto_allocate_for_picking": {
      "request_id": "abc123",
      "complexity": 987,
      "line_items": WholesaleOrderAutoAllocateForPickingType
    }
  }
}