Fired every time the shop-facing status of an order changes.
When: every time an order's shopStatus changes (never for a no-op transition). Best effort: a failed emit never blocks the order flow.
| Field | Type | Description |
|---|---|---|
id | string | GreenLeaze order id. |
transactionId | string | null | |
cartId | string | null | |
cartSecureKey | string | null | |
source | string | null | Order origin. |
status | string | Order status at emit time. |
shopStatus | string | New shopStatus. |
previousShopStatus | string | null | Previous shopStatus. |
shop | Shop | Without email. |
customer | Customer | Linked customer account only: fields are absent before one exists. |
{
"id": "5b0f7c1e-2d7a-4a59-9d6b-3c1f0e0c9a11",
"transactionId": "GLZ-8F3K2",
"cartId": "cart_abc123",
"cartSecureKey": "key_xyz789",
"source": "dashboard",
"status": "validating",
"shopStatus": "active",
"previousShopStatus": "payment-method-entered",
"shop": { "id": "0d6e…", "name": "Ma Boutique", "group": { "id": "7a1c…" } },
"customer": {
"id": "a41d…",
"firstName": "Jean",
"lastName": "Dupont",
"phone": "+33612345678",
"email": "[email protected]"
}
}