نقلة
Docs menushipment.cancel_requested

shipment.cancel_requested

العربية

An order sent to your carrier app went to another carrier or was cancelled.

Type
Install event
Requires
Nothing: every app with a notification address
Attempts
4 in all, 1 min, 5 min, 30 min apart

When it is sent

Carrier apps: when an order you were asked to ship goes to another carrier (reason rerouted) or is cancelled before you shipped it. Stop work on it: its shipping view now answers 404.

Payload

The body carries the notification id, the event name, your app id, the store id, the event time, and the event's data in data.

FieldType
idstring
eventstring
app_idstring
store_idinteger
occurred_atstring
dataobject
data.order_idinteger
data.route_idstring
data.reasonstring
shipment.cancel_requested · JSON
{
    "id": "a4c7e2f1-3b9d-4e6a-8c1f-5d2b7e9a0c36",
    "event": "shipment.cancel_requested",
    "app_id": "app_…",
    "store_id": 1042,
    "occurred_at": "2026-11-04T09:00:00+03:00",
    "data": {
        "order_id": 5521,
        "route_id": "1e7b9c40-2d6a-4f3e-9a8b-5c1d0e2f4a67",
        "reason": "rerouted"
    }
}

Sample data. New fields may be added; ignore the ones you do not know.

Headers

HeaderDescription
X-Naqllah-Signature-V2The signature to verify: t=<send time>,v1=<HMAC-SHA256 of t, a dot and the body>, made at each attempt. Refuse a t more than 5 minutes from your clock.
X-Naqllah-SignatureThe older signature: sha256= followed by the HMAC-SHA256 of the body alone, with the webhook secret. Kept for integrations built before the timestamped one.
X-Naqllah-EventThe event name.
Content-Typeapplication/json

Handling it

  1. Verify the signature in X-Naqllah-Signature-V2 before anything else: Verifying signatures.
  2. Skip it if you already processed this id.
  3. Answer 2xx within 5 seconds, then do the work in the background.
  4. Update what you keep for this store: its scopes, or delete its data on uninstall.

Version v1.0.0 Changelog Service status openapi-v1.json Support