Orbit's webhooks facilitate real-time data provision, allowing your application to respond to events as they transpire, without the need for constant polling for changes. This results in a more efficient and often more effective system, reducing server strain.
Consider these webhook events as a reverse API call. Rather than your application requesting data from our API, Orbit pushes the data directly to your application as the specified event takes place.
Orbit's webhooks can be set up to notify about a variety of events. These could include the creation of a new tour, the completion of a tour, or a new shipper registration. By subscribing to these events, your application can automate tasks, align data, or even interact with other systems, thereby streamlining your processes.
You can set up webhooks in Orbit through MissionControl under Settings -> Webhooks.
In the subsequent table, we provide a description of each webhook event type and the corresponding payload format.
Event Type | Payload |
---|---|
tour-created | {tour: Tour} |
tour-assigned | {tour: Tour} |
tour-unassigned-carrier | {tour: Tour} |
tour-started | {tour: Tour} |
tour-arrived-at-stop | {tour: Tour} |
tour-departed-from-stop | {tour: Tour} |
tour-proof-attached | {tour: Tour} |
tour-waiting-for-review | {tour: Tour} |
tour-completed | {tour: Tour} |
tour-cancelled | {tour: Tour} |
tour-deleted | {tourId: String} |
tour-edited | {tour: Tour} |
shipments-created | {shipments: Shipment[]} |
shipment-deleted | {shipmentId: String} |
shipment-updated | {shipment: Shipment} |
order-created | {order: Order} |
order-updated | {order: Order} |
shipper-created | {shipper: Shipper} |
shipper-updated | {shipper: Shipper} |
shipper-team-created | {shipperTeam: ShipperTeam} |
shipper-team-updated | {shipperTeam: ShipperTeam} |
shipper-user-created | {shipperUser: ShipperUser} |
shipper-user-updated | {shipperUser: ShipperUser} |
mailbox-created | {mailbox: MailBox} |
mailbox-mail-received | {mailboxId: string} |
mailbox-status-changed | {mailboxId: string, newStatus:"active" | "inactive", newStatus:"active" | "inactive"} |
decode-job-result | {jobId: string, resultType: "success" | "failure"} |