HyperTrackDocs
WebhooksOrdersPlanning

Order Planning Failed

Webhook payload sent when order planning fails.

Order Planning Failed Webhook Payload

[
  {
   "created_at":"2021-01-01T14:01:00.000000Z",
   "recorded_at":"2021-01-01T14:00:00.000000Z",
   "account_id":"6784e919-7168-4f61-b686-2020f547637f",
   "type":"order",
   "data":{
      "value":"planning_failed",
      "planning_sequence_number": 1,
      "plan_id": "f9212af2-71e8-40f0-84bd-005424a80a4d",
      "failure_reason": "No Worker was available for this plan.",
      "num_orders": 10,
      "num_unplanned_orders": 2,
      "started_at": "2021-01-01T14:00:00.000000Z",
      "fulfillment_date": "2021-01-01",
      "ops_group_handle": "OPS_123",
      "unplanned_order_reasons": [
        {
          "reason": "No Worker was available for this plan.",
          "num_orders": 2
        }
      ]
     },
   "version":"3.0.0"
  }
]
NameTypeMandatoryDescription
data.valuestringYesplanning_failed
data.planning_sequence_numberintegerYesSequence Number of the plan for this specific plan ID
data.plan_idstringYesUnique identifier of the plan which is getting planned
data.num_ordersintegerYesNumber of orders submitted for planning
data.failure_reasonstringYesFaiure reason for Planning
data.num_unplanned_ordersintegerYesNumber of Orders which could not be planned
data.started_atstringYesTimestamp at which plan was started
data.fulfillment_datestring or nullYesDate for which orders are being planned for. null when the plan has no fulfillment date
data.ops_group_handlestringYesOps group handle for which the planning is triggered
data.unplanned_order_reasonsarrayNoNumber of unplanned orders for each reason. Each item has reason (string) and num_orders (integer). Items are sorted by num_orders, highest first. Present only when at least one order could not be planned. For the reason values, see Unplanned order reasons