Webhooks

Subscribe to RUC events so Paxon pushes order, work-order and carrier updates to your endpoint instead of polling.

Overview

Webhooks let Paxon push events to your systems as they happen, so you do not have to poll the REST services. You register a destination URL for a topic, and Paxon POSTs a JSON payload to that URL whenever a matching event occurs. Your endpoint acknowledges with HTTP 200.

The Webhook service is one of the OAuth2-secured REST services. Manage subscriptions with a Bearer token as described in the OAuth2 guide. The full request and response schemas are in the Webhook reference.

Managing subscriptions

The service exposes four resources for the subscription lifecycle:

ResourcePurpose
createRegister a new webhook for a topic and destination URL.
patchPartially update an existing webhook.
deleteRemove a webhook.
getFetch the details of a webhook.

Subscription fields

A subscription is defined by the fields below. The required fields are topicName, clientId, facilityCode, url and contentType.

FieldDescription
topicNameThe event topic to subscribe to, e.g. parcel:load or workOrder:completion.
clientIdYour RUC client identifier, issued during onboarding.
facilityCodeThe facility the subscription applies to, e.g. EEUK01.
urlDestination URL where Paxon pushes events.
contentTypeContent type Paxon sets when posting, e.g. application/json.
emailListAddresses alerted if the destination is unreachable or errors.
customHeadersExtra headers Paxon sends to the destination, e.g. an API key.
isPaused0 active, 1 paused. A paused webhook receives no messages.

Creating a webhook

Create a subscription with a POST carrying a Bearer token and the subscription body:

curl -X POST https://ruc-public-api.fulfilit.cloud/v1/webhookService/webhook/create \
  -H 'Authorization: Bearer <access_token>' \
  -H 'Content-Type: application/json' \
  -d '{
    "topicName": "parcel:load",
    "clientId": "<clientId>",
    "facilityCode": "EEUK01",
    "url": "https://hooks.acme.example/ruc/events",
    "contentType": "application/json",
    "emailList": ["integrations@acme.example"]
  }'

Event payloads

The payload Paxon pushes depends on the topic.

Work order completion

Subscribe to workOrder:completion to receive a JSON event each time a finished good or a consumed component is reported for a work order. Separate events are pushed for the finished good and for each component. The full schema is documented under the Webhook reference.

Carrier events

Carrier track-and-trace events can also be delivered by webhook. Five representative events span the parcel lifecycle:

Event codeEvent
10Order Received
50Order Allocated
60Order Packed
100Order Despatched
200Delivered

The field-by-field structure of these payloads, the milestone mapping and the full event list are documented in the Carrier events guide.

Next