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 '{id}' 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.
Creating a Webhook
- Navigate to Settings → Webhooks
- Select a Subsidiary
- Click Create Webhook
-
Provide:
- Name
- Endpoint URL (HTTPS required)
- At least one subscribed event

- 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, callPOST /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
Required Response
Your endpoint must respond within 30 seconds: Status:- 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.
- The webhook status changes to Active
- The UI status indicator turns green and displays Connected
- Business events begin to be delivered to the endpoint
- 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
Onload.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
IncludePreviousAttributestotruevia the API — see Create webhook). - Defaults to off. When off,
load.changed/trip.changedevents still includedata.diff.changes(what changed) but not the previous values. - Changes take effect immediately and do not require re-verification.
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.
v1is generated using the new secret.v0is generated using the previous secret.- Your endpoint should accept either signature during this transition period.
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