return.approved
The merchant approved a return of an order your carrier app shipped: book the reverse pickup.
- 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 the merchant approves a return of an order your app shipped. Book the reverse pickup and record it with POST /returns/{id}/shipments.
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.
| Field | Type |
|---|---|
id | string |
event | string |
app_id | string |
store_id | integer |
occurred_at | string |
data | object |
data.return_id | integer |
data.order_id | integer |
data.shipment_id | integer |
data.type | string |
data.lines | array |
data.lines[].order_item_id | integer |
data.lines[].quantity | integer |
{
"id": "a4c7e2f1-3b9d-4e6a-8c1f-5d2b7e9a0c36",
"event": "return.approved",
"app_id": "app_…",
"store_id": 1042,
"occurred_at": "2026-11-04T09:00:00+03:00",
"data": {
"return_id": 77,
"order_id": 5521,
"shipment_id": 903,
"type": "refund",
"lines": [
{
"order_item_id": 9001,
"quantity": 1
}
]
}
}
Sample data. New fields may be added; ignore the ones you do not know.
Headers
| Header | Description |
|---|---|
X-Naqllah-Signature-V2 | The 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-Signature | The 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-Event | The event name. |
Content-Type | application/json |
Handling it
- Verify the signature in
X-Naqllah-Signature-V2before anything else: Verifying signatures. - Skip it if you already processed this
id. - Answer 2xx within 5 seconds, then do the work in the background.
- 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