Webhooks
Event payloads
Every delivery is an HTTP POST to the URL you registered, with Content-Type: application/json and any headers you supplied at registration.
Envelope
A subscription is stored with the event type, the object (cardId) or object type, the destination url, your extra headers, and metaData.partnerId for the partnership it was registered under. Deliveries carry that context alongside the event data, so a receiver can route on event type and object without a lookup:
| Field | Meaning |
|---|---|
type | The event type: update, archive, gps, hos, arrive, depart or truckperformance. |
cardId | The object the event is about (loadid, tractorguid, driverid). |
metaData.partnerId | The partnership the subscription was registered under. |
| payload | The event data, described per type below. |
Per-type payloads
| Type | Payload | Read it with |
|---|---|---|
update | The object's current fields, in the same shape as the matching detail read. | Get Load Detail, Get Order Detail, Get Tractor, Get Driver |
archive | The object's identifier and final status. | — |
gps | A position: equipment, timestamp, latitude, longitude, speed and proximity, the same fields as a PositionActor. | Get GPS Positions |
hos | The driver's new duty status and its effective time. | Get Hours of Service |
arrive / depart | The stop that changed, with its StopId, Sequence, the actual arrival or departure time, and the load's identifier. | Get Load Detail |
truckperformance | A PerformanceEvent summary for the tractor. | Get Performance Events |
Field-by-field samples for each event type are being assembled from live deliveries and will be added to this page. Until then, treat the payload as a superset of the matching reference schema and fetch the full record with the read operation in the table when you need a guaranteed shape.
Handling guidance
- Acknowledge quickly with a
2xxand process asynchronously. Do not call CarrierCloud back inside the request handler. - Use
typepluscardIdplus the event timestamp as a de-duplication key; deliveries can repeat. - Expect events out of order under load; apply them by timestamp, not by arrival.
- Do not rely on a webhook as the only record. A nightly reconciliation with the list operations catches anything missed.
Last modified on