Schedules

The Schedules payload provides detailed real-time information about schedule events.

Supported Events:

  • Schedule Updated: Webhook trigger when an update is made to a schedule

Sample Payloads:

  • Schedule Supply Item Update:

{
  "region": "mm",
  "event_type": "update_supply_item",
  "id": "66fc2f39eb9f77a4792d871b",
  "object": {
    "_id": "66fc2f39eb9f77a4792d871b",
    "start_date": "2024-09-10T04:00:00.000Z",
    "end_date": "2024-09-11T12:00:00.000Z",
    "amount": 49180,
    "lt_number": "ABC1234",
    "origin_producer_ids": [
      "66fc2f39eb9f77a4792d8001",
      "66fc2f39eb9f77a4792d8002"
    ],
    "commodity_type": "milk",
    "created_at": "2024-09-10T21:32:32.786Z",
    "updated_at": "2024-09-10T21:32:32.858Z",
    "route_session": {
      "_id": "66fc2f39eb9f77a4792d8003",
      "status": "closed",
      "manifest_number": "123412",
      "lt_number": "ABC1234"
    },
    "destination_processor": {
      "id": "66fc2f716ac02c3b6e79812e",
      "name": "Milk Moovement Processor",
      "license_number": "1234",
      "object": "destination"
    },
    "hauler": {
      "id": "66fc2f39eb9f77a4792d8004",
      "name": "Milk Moovement Hauler",
      "license_number": "1545",
      "object": "hauler"
    },
    "object": "supply_item"
  }
}
  • Schedule Fluid Item Update:

{
  "region": "mm",
  "event_type": "update_fluid_item",
  "id": "66fc2f39eb9f77a4792d871b",
  "object": {
    "_id": "66fc2f39eb9f77a4792d871b",
    "start_date": "2024-09-10T04:00:00.000Z",
    "pickup_ready_time": "2024-09-10T04:00:00.000Z",
    "end_date": "2024-09-11T12:00:00.000Z",
    "amount": 49180,
    "lt_number": "ABC1234",
    "commodity_type": "cream",
    "created_at": "2024-09-10T21:32:32.786Z",
    "updated_at": "2024-09-10T21:32:32.858Z",
    "route_session": {
      "_id": "66fc2f39eb9f77a4792d8003",
      "status": "closed",
      "manifest_number": "123412",
      "lt_number": "ABC1234"
    },
    "destination_processor": {
      "id": "66fc2f716ac02c3b6e79812e",
      "name": "Milk Moovement Processor 1",
      "license_number": "1234",
      "object": "destination"
    },
    "hauler": {
      "id": "66fc2f39eb9f77a4792d8004",
      "name": "Milk Moovement Hauler",
      "license_number": "1545",
      "object": "hauler"
    },
    "origin_processor": {
      "id": "66ff1e2d9c3a4b1f6e8d1234",
      "name": "Milk Moovement Processor 2",
      "license_number": "4321",
      "object": "origin"
    },
    "object": "fluid_item"
  }
}

Last updated