The authoritative list of valid event-type strings for your account is returned by Get event types (
GET /api/p/v1.0/webhooks/event-types).
Payload
Tender events use the standard Alvys webhook envelope, with one difference from load and trip events: the envelopeversion is v2 rather than v1. The top-level subsidiaryId is the tender’s Subsidiary.
For tender events, etag identifies the tender event that the payload was built from. It is not a version of the tender itself, so two events for the same tender always have different etag values.
The envelope id has the form {tenderId}-{sequence}, where the sequence number grows with each event recorded for the tender. Treat the id as an opaque string. Use it only to deduplicate, and do not parse it.
Every tender payload carries data.tenderId and a data.tender object that holds a full tender snapshot. The snapshot has the same fields as the Get tender response, with camelCase property names, and fields with a null value are omitted. Event-specific fields sit next to it. Optional fields, such as reason on the stop events, are omitted when they have no value.
timestamp is the moment the underlying business event occurred. For the three stop events it is when Alvys recorded the update, which can be later than the arrival, departure, or ETA the payload itself reports — use data.arrivedAt, data.departedAt, or data.estimatedAt when you need the operational time.
tender.created
Fires when a new inbound tender is received, before any review or acceptance. data carries tenderId and the tender snapshot.
This event also fires when a change tender cannot be matched to an existing shipment and Alvys creates a new tender for it. A
data.tender.shipmentId you have already seen can therefore arrive a second time under a different tenderId — key your own records on tenderId, not on the shipment identifier.tender.created fires on every inbound tender rather than only on tenders someone has acted on, it delivers at a substantially higher rate than the other tender events. Size your endpoint accordingly.
tender.change.created
Fires when a change tender is received, whether or not the tender has a linked load. data.queuedForReview tells the two cases apart, and it decides how to read the rest of the payload.
changeCount: 0 and changeTypes: []. Use the zero count to skip it.
changeTypes
changeTypes lists the distinct categories of change proposed, in the order they appear on the tender. changeCount counts every queued update, so the two can disagree — a change tender can carry several updates of one category, and a category Alvys does not publish is counted without being named. Do not treat changeTypes.length as an upper bound on changeCount.
The published vocabulary is:
Other tender events
The other tender events use the same envelope. Onlyid, type, timestamp, etag, and data change. The snapshot in data.tender is truncated in these examples. The tender.rejected and tender.cancelled examples are for two other tenders. The other examples follow one tender from bid to invoice.
tender.stop.departedhas noreason, because the stop update had none.tender.stop.eta_updatedhas noreason.estimatedAtis also omitted when the update carries no estimated time.bidAmountis a number.
Notes
- Delivery is at-least-once. Deduplicate on
X-Alvys-Event-Id. See Event Delivery & Reliability. - Tender events are matched to a subscription by the tender’s Subsidiary — the same subsidiary scoping that applies to load and trip events. See Which events reach your subscription.
- Tender events do not carry a
data.diffnode. The only action available on a queued change is to accept it in full, sochangeTypesis the granularity you can act on. - Delivery order is not guaranteed, including across events for the same tender; retries can reorder them.