Fired when the abandoned-cart reminder is sent for a draft order.
When: the abandoned-cart reminder runs for a draft order. A cron (every 5 min) picks draft orders that have a transactionId, are neither archived nor rejected, and whose customer has an email. The event fires once, after the shop's dunning delay (dunning.dunningMinutes), and only if no reminder was sent for the order or the customer yet. Shops whose group has managesCustomerRecovery turned off are excluded.
| Field | Type | Description |
|---|---|---|
subscriptionId | string | GreenLeaze order id. Not id. |
transactionId | string | |
source | string | null | Order origin. |
email | string | Customer primary email. |
phone | string | null | |
firstName | string | null | |
lastName | string | null | |
lastPaymentMethodEnteredAt | string | null | Last time the customer entered a payment method. |
lastDunningSentAtSubscription | string | null | Previous reminder for this order. |
lastDunningSentAtCustomer | string | null | Previous reminder for this customer. |
subscriptionLines | line[] | See below. |
Customer email: { "email": string, "sources": ("DECLARED" | "ROLLEE")[], "isPrimary": boolean }.
subscriptionLines[], the public line shape:
| Field | Type | Description |
|---|---|---|
id | string | GreenLeaze order line id. |
name | string | |
combination | string | null | Variant label. |
quantity | number | |
rental | boolean | false for a purchased (non-rented) line. |
duration | number | null | Rental length; null for a purchase. |
unitPrice | number | Unit price HT after discount. |
unitPriceWithNoDiscount | number | null | Unit price HT before discount, when a discount applies. |
priceMonthly | number | Monthly rent HT per unit, before monthly discount. |
priceDeposit | number | Deposit HT per unit. |
fixedDeposit | number | null | |
discountFirstMonth | number | First-month discount (%). |
vat | number | |
deletable | boolean | Whether the customer may remove the line. |
image | string | null | Product image URL. |
{
"subscriptionId": "5b0f7c1e-2d7a-4a59-9d6b-3c1f0e0c9a11",
"transactionId": "GLZ-8F3K2",
"lastPaymentMethodEnteredAt": null,
"lastDunningSentAtSubscription": null,
"lastDunningSentAtCustomer": null,
"email": "[email protected]",
"phone": "+33612345678",
"firstName": "Jean",
"lastName": "Dupont",
"subscriptionLines": [
{
"id": "c3f1…",
"name": "MacBook Pro 14\"",
"duration": 12,
"combination": "Gris sidéral",
"unitPrice": 2082.5,
"priceDeposit": 0,
"priceMonthly": 74.92,
"discountFirstMonth": 0,
"unitPriceWithNoDiscount": null,
"quantity": 1,
"vat": 20,
"deletable": true,
"rental": true,
"fixedDeposit": null,
"image": "https://cdn.example.com/macbook.png"
}
],
"source": "dashboard"
}