01When does it fire?
- When a return request is decided: approved (APPROVED) or rejected (REJECTED).
- On approval, the resulting return fires its own event (return.created) — the two are linked by ids.
02Full payload example
{
"id": "mwh:return-request-decided:9e8d7c6b-5a4f-4e3d-2c1b-0a9f8e7d6c5b:d2a6b8c1-4e75-49f0-8a23-6b9c0d1e2f34",
"type": "return.request_decided",
"api_version": "v2",
"tenant_id": "9e8d7c6b-5a4f-4e3d-2c1b-0a9f8e7d6c5b",
"data": {
"request_id": "d2a6b8c1-4e75-49f0-8a23-6b9c0d1e2f34",
"order_id": "3f0c8e6a-1d24-4b7f-9a3e-2c5b8d90f1aa",
"receipt_number": "RCP-20261020-1482",
"status": "APPROVED",
"return_id": "b4e1f7a2-9c30-4d58-8e6b-3f2a1d0c9b87",
"reviewed_by": "1f2e3d4c-5b6a-4988-8a7b-6c5d4e3f2a1b",
"reviewed_at": "2026-10-21T09:12:39.704118+00:00",
"changed_at": "2026-10-21T09:12:39.704522+00:00",
"order": {
"order_id": "3f0c8e6a-1d24-4b7f-9a3e-2c5b8d90f1aa",
"receipt_number": "RCP-20261020-1482",
"order_type": "DELIVERY",
"order_source": "WEBSITE",
"status": "SHIPPED",
"customer_name": "Ahmed Mahmoud",
"customer_phone": "+201001234567",
"delivery_address": "15 El-Tahrir St., Dokki, Giza",
"table_number": null,
"branch_id": "4d5e6f7a-8b9c-4d0e-9f1a-2b3c4d5e6f7a",
"payment_method": "COD",
"coupon_code": "WELCOME10",
"total_amount": 624,
"tax_amount": 62,
"shipping_fee": 50,
"discount_amount": 50,
"created_at": "2026-10-20T12:34:56.789147+00:00",
"items": [
{
"product_id": "7a2b9c4e-8f31-4d5a-b6c2-1e9f8a7b6c5d",
"variant_id": "2c4e6f8a-0b1d-4e2f-8a3b-5c6d7e8f9a0b",
"name": "Cotton T-shirt - Blue / L",
"price": 225,
"quantity": 2
},
{
"product_id": "9d8c7b6a-5f4e-4d3c-2b1a-0f9e8d7c6b5a",
"variant_id": null,
"name": "Summer cap",
"price": 112,
"quantity": 1
}
],
"items_truncated": false
}
}
}03data fields
| Field | Meaning |
|---|---|
| request_id | The return request id (UUID). |
| order_id | The order id. |
| receipt_number | The order receipt number. |
| status | The decision: APPROVED or REJECTED. |
| return_id | The return id linked to the approval. |
| reviewed_by | The id of the reviewing user (UUID). |
| reviewed_at | When it was reviewed, ISO 8601. |
| changed_at | When the request row was last updated. |
| order | The full order summary — the same object as the order.created summary. |
04Event identity
Pattern: mwh:return-request-decided:<tenant_id>:<request_id> — the same resource id as the request event.
COMPLETE YOUR INTEGRATION
