work_order_auto_assign_pick_locations

Assigns pick locations to the components of an assembly work order using FIFO or FEFO rules. Reports which component SKUs were assigned and which were not.

Arguments

ArgumentTypeRequiredDefaultDescription
dataAutoAssignPickLocationsInput!Yes

Return Type

WorkOrderAssignPickLocationsOutput

Mutation

mutation work_order_auto_assign_pick_locations(
  $data: AutoAssignPickLocationsInput!
) {
  work_order_auto_assign_pick_locations(
    data: $data
  ) {
    request_id
    complexity
    work_order {
      ...WorkOrderIdentifiableTypeFragment
    }
    assigned_component_skus
    unassigned_component_skus
  }
}

Variables

{
  "data": {
    "customer_account_id": "QWNjb3VudDoxMjM0",
    "work_order_id": "V29ya09yZGVyOjEyMzQ="
  }
}

Response

{
  "data": {
    "work_order_auto_assign_pick_locations": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "work_order": {id: "T3JkZXI6MTIzNA==", order_number: "SO-100045"},
      "assigned_component_skus": ["BLUE-TEE-M", "RED-HOODIE-L"],
      "unassigned_component_skus": ["BLUE-TEE-M", "RED-HOODIE-L"]
    }
  }
}