نقلة
Docs menureturn.approved

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.

FieldType
idstring
eventstring
app_idstring
store_idinteger
occurred_atstring
dataobject
data.return_idinteger
data.order_idinteger
data.shipment_idinteger
data.typestring
data.linesarray
data.lines[].order_item_idinteger
data.lines[].quantityinteger
return.approved · JSON
{
    "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

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