Skip to main content
Webhooks are configured from Settings → Connections → Webhooks. Each webhook covers one Subsidiary, several Subsidiaries, or every Subsidiary in the tenant. Events are delivered only within the Subsidiary scope the subscription covers: a load event reaches a subscription when the load is invoiced as a covered Subsidiary, and a trip event when the trip is tendered as one. Over the API, send exactly one of SubsidiaryIds (the Subsidiaries the subscription covers), AllSubsidiaries set to true (every Subsidiary in the tenant), or the deprecated single-value SubsidiaryId. Sending none or more than one is rejected with Exactly one of SubsidiaryIds, AllSubsidiaries or SubsidiaryId must be provided. The schema lists AllSubsidiaries as required; send false with SubsidiaryIds or SubsidiaryId (false does not count as a second choice). The schema also marks request bodies as closed, but on update the subsidiary fields are ignored rather than rejected. An empty SubsidiaryIds list is rejected with SubsidiaryIds must contain at least one subsidiary, and a blank entry in the list with SubsidiaryIds cannot contain empty values. AllSubsidiaries is rejected for a credential scoped to specific subsidiaries. A webhook’s Subsidiaries are set at creation and cannot be changed on update: PUT /api/p/v1.0/webhooks/{id} accepts only Name, Url, Events and IncludePreviousAttributes, and ignores any SubsidiaryIds, AllSubsidiaries or SubsidiaryId in the body. A body with only those fields is rejected with At least one field (Name, Url, Events, or IncludePreviousAttributes) must be provided for update. To change coverage, create a new webhook and delete the old one. On the response, SubsidiaryId is null (omitted from the JSON) when the subscription covers several Subsidiaries or all of them, so read SubsidiaryIds and AllSubsidiaries instead. Each event delivered for a subscribed event type carries a top-level subsidiaryId naming the Subsidiary of the record the event is about. The Test webhook delivery payload (webhook.test) and the webhook.verification challenge do not include subsidiaryId or etag. Validation failures return HTTP 400 with a JSON problem-details body: title, status, detail, trace_id, and an errors object mapping each field name (for example Url or Events) to a list of messages. The messages above appear under errors.<Field>; for the subsidiary-exactly-one rule the same message appears under SubsidiaryIds, AllSubsidiaries and SubsidiaryId. Request and response bodies use PascalCase property names, and request property names are matched without regard to case. Event payloads that Alvys sends to your endpoint are different: they use camelCase property names (for example subsidiaryId, loadNumber).
A credential scoped to specific Subsidiaries sees only subscriptions that name Subsidiaries within its scope. Subscriptions that cover every Subsidiary, or that name any Subsidiary outside the scope, are hidden from the list and return 404 on get, update, and delete. Creating a subscription with a Subsidiary outside the scope, or one that does not exist, returns 400 with detail set to Subsidiary &#39;{id}&#39; not found (apostrophes are HTML-encoded) and no field entries in errors.
Two cases deliver across every subscription in the tenant rather than to one Subsidiary:
  • An event whose Subsidiary cannot be determined (fail-open), including carrier.document.* — a carrier carries no broker-side Subsidiary.
  • A subscription created before a Subsidiary was required, which therefore has none recorded.
Document and tender events are Subsidiary-matched like load and trip events. See Which events reach your subscription. If you receive an event you did not expect on a Subsidiary-scoped subscription, check which of the cases above applies before treating it as a routing fault.
Webhook Availability NoticeWebhooks are currently available by request. To enable this functionality for your account, please contact your Customer Success Manager or Implementation Manager.

Creating a Webhook

  1. Navigate to Settings → Webhooks
  2. Select a Subsidiary
  3. Click Create Webhook
  4. Provide:
    • Name
    • Endpoint URL (HTTPS required)
    • At least one subscribed event
The endpoint must be publicly accessible over HTTPS and support TLS 1.2 or higher. After saving:
  • A signing secret is generated.
  • The webhook is created in a Pending state.
  • No events are delivered until the webhook is enabled and verified.

Enabling a Webhook

Webhooks are activated using the Send Events toggle. Alvys verifies ownership of your endpoint before delivering business events. Over the API, call POST /api/p/v1.0/webhooks/{id}/verify. Enable works only on a Disabled webhook; a Pending or VerificationFailed webhook returns 400 until it is verified.

Endpoint Verification

When activation is triggered, Alvys sends an HTTPS POST request to your configured endpoint.

Request

Headers:
Body:
Verification requests are not signed.

Required Response

Your endpoint must respond within 30 seconds: Status:
Body:
Requirements:
  • The response must be valid JSON.
  • The property name must be exactly challenge.
  • The value must match exactly (case-sensitive).
  • Do not wrap the response.
  • Do not return plain text.
If verification succeeds:
  • The webhook status changes to Active
  • The UI status indicator turns green and displays Connected
  • Business events begin to be delivered to the endpoint
If verification fails:
  • The webhook status becomes VerificationFailed
  • The UI displays a failed verification state
  • No events are delivered

Webhook States

A webhook may be in one of the following states:
  • Disabled — Not delivering events
  • Pending — Pending Verification in progress
  • Connected — Verified and delivering events
  • Failed to verify — Verification attempt failed

Updating a Webhook

Changing the Endpoint URL

If the endpoint URL is updated:
  • The webhook is automatically set to Pending
  • Verification is required again
  • No events are delivered until verification succeeds

Updating Subscribed Events

Changes to event selection:
  • Take effect immediately
  • Do not require verification

Include Previous Values

On load.changed and trip.changed events, Alvys can include the previous value of every changed field via data.diff.previousAttributes, so your integration can apply just the delta instead of re-syncing the whole record. This is opt-in per webhook:
  • Enable the Include previous values option on the webhook (or set IncludePreviousAttributes to true via the API — see Create webhook).
  • Defaults to off. When off, load.changed / trip.changed events still include data.diff.changes (what changed) but not the previous values.
  • Changes take effect immediately and do not require re-verification.
See Change Diffs (data.diff) for the full payload shape.

Rotating the Signing Secret

You can regenerate a webhook’s signing secret from the Webhook details page using the Regenerate Secret Key option. When the secret is regenerated:
  • A new signing secret is created.
  • The webhook remains Active.
  • Event delivery continues without interruption.
  • Endpoint re-verification is not required.
During the rotation window, each delivery includes two signatures:
Where:
  • v1 is generated using the new secret.
  • v0 is generated using the previous secret.
  • Your endpoint should accept either signature during this transition period.
After the rotation window ends, only the v1 signature is included in deliveries. If your integration validates webhook signatures, ensure it supports dual-signature verification during secret rotation.

Manual Disable

Disabling a webhook:
  • Immediately stops event delivery
  • Preserves configuration
  • Allows re-enablement at any time