Source of truth: the live API reference and the OpenAPI document at
https://connect.rylixfleet.com/api/v1/openapi.json. If this wiki and they ever disagree, they win.
Rylix POSTs one signed JSON event per change to each enabled endpoint that subscribes to it, for every order of the business, whichever way the order was created (API, dashboard, CSV import or Shopify).
Webhooks carry no customer personal data. No event contains a customer's name, phone number or address, coordinates, a note, order lines or a tracking link. Order events carry business fields only (ids, references, status, cash to collect, times). To read the rest, fetch the order with GET /api/v1/orders/{id} and a key that has orders:read.
In the dashboard: Settings → Developers → Webhook endpoints → Add endpoint, or with POST /api/v1/webhook-endpoints (scope webhooks:manage).
https:// on a public host. No IP addresses, local or private hosts, or user name and password in the URL; up to 2048 characters.Change any of this later with PATCH /api/v1/webhook-endpoints/{id} or in Settings → Developers: only the keys you send change, and the signing secret stays the same (even when you change the URL).
The endpoint's signing secret (whsec_…) is shown once, when the endpoint is created. Store it; you need it to verify signatures.
POST /rylix/webhooks HTTP/1.1
Content-Type: application/json
User-Agent: Rylix-Webhooks/1
Rylix-Signature: t=1764414120,v1=5f2b…
Rylix-Event-Id: evt_cm4w5t1cd0003s8z0e7v3n4t5
Rylix-Event-Type: order.delivered
Rylix-Delivery-Id: cm4w5…
Custom headers you set are sent in addition to these.
| Header | About |
|---|---|
Rylix-Signature |
t=<unix seconds>,v1=<hex HMAC-SHA256>. See Verifying signatures. |
Rylix-Event-Id |
The event id (the same on retries and resends). |
Rylix-Event-Type |
The event type, e.g. order.delivered. |
Rylix-Delivery-Id |
This delivery's log id. |
Rylix-Test |
1 on a test send only. |
The body is the event: { "id", "type", "createdAt", "data" } (plus "test": true on a test send). See Events for every payload.
By default an endpoint receives every event it subscribes to. Conditions narrow that: an endpoint with conditions receives an event only when all of them hold (AND). Up to 10 conditions, each { "field", "op", "value" }:
| Field | Kind | Operators |
|---|---|---|
order.payment |
cod or prepaid |
eq, neq, in, not_in |
order.cod_amount |
money | gt, gte, lt, lte, between |
order.branch, order.pickup_location, order.account, driver.group |
an id from your business | eq, neq, in, not_in |
order.client, order.service |
an id (delivery agencies; order.service needs selling prices) |
eq, neq, in, not_in |
order.kind |
delivery or return |
eq, neq, in, not_in |
order.source |
shopify, manual, csv, api or return |
eq, neq, in, not_in |
order.failure_category |
a failure category | eq, neq, in, not_in |
order.status |
a public status | eq, neq, in, not_in |
order.urgent |
boolean | is |
money.currency |
USD or LBP |
eq, neq, in, not_in |
in and not_in take a list of 1 to 50 values and give you OR within one field.{ "amount": "25.00", "currency": "USD" }, or { "min", "max", "currency" } for between. They are compared in whole minor units (cents, whole Lebanese pounds), in that currency only: a USD condition never matches an LBP amount.settlement.* event can never match; the endpoint's warnings list tells you which subscribed events a condition can never match.filteredToday on the endpoint counts the events its conditions filtered out since local midnight (business time zone).GET /api/v1/webhook-catalog lists every condition field, operator and allowed value, so you can build the same editor Settings has.
For each event family an endpoint can choose the fields it receives. A family you leave out sends every approved field (the default). An empty list sends only the ids. The envelope and the id and object of the main resource are always sent. No customer field exists to choose.
| Family | Events | Selectable fields |
|---|---|---|
order_status |
the 11 order status events | order.reference, order.orderName, order.trackingNumber, order.status, order.kind, order.source, order.pickupLocationId, order.cashOnDelivery, order.pieces, order.failureCategory, order.etaMinutes, order.createdAt, order.updatedAt, order.terminalAt, failureCategory |
order_summary |
every other event about an order | order.reference, order.orderName, order.trackingNumber, order.status, order.kind, order.updatedAt |
settlement |
settlement.* |
settlement.driverId, .status, .period, .day, .submitted, .expected, .confirmed, .difference, .submittedAt, .decidedAt |
remittance |
remittance.* |
remittance.clientId, .number, .status, .currency, .cutoffAt, .grossCod, .adjustments, .feesNetted, .remittanceFee, .net, .amountHanded, .receiptMethod, .readyAt, .confirmedAt |
location |
location.* |
location.name, .address, .lat, .lng, .isDefault, .kind, .active, .phone, .hours, .parentBranchId, .createdAt |
driver |
driver.shift_* |
shift.driverId, shift.startedAt, shift.endedAt |
A field you leave out is absent from the payload (not null), so write your receiver to treat every field except the ids as optional. The event's own facts (by, changeId, cash, rating, proof, and so on) are always sent.
Add up to 5 headers that Rylix sends with every delivery to the endpoint, for example an API key your receiver checks. Header values are stored encrypted, are never returned by the API (the API shows the name and a masked tail such as ••••9f3a), and are never written to the delivery log.
Host, Content-Length, Content-Type, Content-Encoding, Transfer-Encoding, Connection, Keep-Alive, Upgrade, TE, Trailer, Expect, Forwarded, Via, User-Agent, Cookie, Set-Cookie, Date, and every name starting with Proxy-, X-Forwarded- or Rylix-.PATCH, send headers.set (add or replace values) and headers.remove (names to drop). If the stored values can no longer be read, the API answers 409 headers_unavailable: set every header again.Check your receiver without waiting for a real event:
POST /api/v1/webhook-endpoints/{id}/test with { "type": "order.delivered" } (or Settings → Developers). Rylix sends the fixture event of that type (made-up data, never yours) to the endpoint right now, signed with its secret, with its custom headers and timeout. The body has "test": true, the event id starts with evt_test_, and the request carries Rylix-Test: 1. The answer reports the status code, how long it took and an error code if it failed (http_<status>, timeout, network and so on).409 endpoint_disabled, 422 invalid_event).429 rate_limited, with Retry-After).GET /api/v1/webhook-endpoints/{id}/preview?type=order.delivered returns the exact JSON body a test send would carry for this endpoint, after its field selection. No request is sent and nothing is signed.Handle test events like real ones, but do not act on them: skip any event with "test": true (or Rylix-Test: 1) in your business logic.
timeoutMs. The timeout is one deadline for the whole request, connecting included. Rylix reads only the status: the response body is never read. Do the real work after answering.A failed attempt is retried, up to 8 attempts in all, with exponential backoff starting at 30 seconds (then about 1, 2, 4 minutes and so on).
Events can arrive more than once and out of order:
id;data.order.status and data.order.updatedAt, not the order in which events arrive.When 5 events in a row fail every attempt (test sends do not count), Rylix switches the endpoint off, emails the business owner (the email names the host, never the full URL), and records it in the activity log. Settings shows the endpoint as "Switched off after failures".
Fix the endpoint, then switch it back on in Settings → Developers. While an endpoint is off, no events are sent to it. A successful delivery resets the failure count.
You can also switch an endpoint off and on by hand, or delete it (its pending deliveries and its log are deleted too).
Settings → Developers → Delivery log shows the last 50 deliveries, for all endpoints or one, with each attempt's status code and duration (or "timed out", "no answer", "address not allowed"). Payloads are not shown.
Click Resend on a delivery to queue it again (test deliveries cannot be resent). A resend carries the same event id and payload. The endpoint must be switched on to resend.
Settings → Developers → Activity records who created or revoked keys, added, changed, deleted or switched endpoints, sent test events, resent webhooks, and automatic switch-offs.