نقلة
Docs menucart.abandoned

cart.abandoned

العربية

A consenting customer left a cart.

Type
Store event
Attempts
6 in all, 1 min, 5 min, 30 min, 2 h, 6 h apart

When it is sent

When the store first treats a cart as abandoned (an hour after the last change), for a registered customer who consents to marketing. Same fields as GET /abandoned-carts.

Sent once for each order or movement and event, after the store's change is saved.

Payload

The body carries the notification id, the event name, the store id (tenant_uuid), the event time, and the event's data in data.

FieldType
idstring
eventstring
tenant_uuidstring
occurred_atstring
dataobject
data.cart_idinteger
data.customer_idinteger
data.itemsarray
data.items[].product_idinteger
data.items[].variant_idinteger
data.items[].skustring
data.items[].quantityinteger
data.items[].unit_pricestring
data.items_countinteger
data.totalstring
data.recoveredboolean
data.recovered_order_idnull
data.created_atstring
data.updated_atstring
data.marketing_consentobject
data.marketing_consent.emailboolean
data.marketing_consent.smsboolean
data.marketing_consent.whatsappboolean
cart.abandoned · JSON
{
    "id": "6d1f0b2a-7e4c-4a9b-8f3d-2c5e1a9b7d40",
    "event": "cart.abandoned",
    "tenant_uuid": "9b2f6c1e-4d3a-4f7b-a1c2-5e8d0f9a7b31",
    "occurred_at": "2026-11-04T09:15:41+03:00",
    "data": {
        "cart_id": 9120,
        "customer_id": 771,
        "items": [
            {
                "product_id": 318,
                "variant_id": 1204,
                "sku": "TS-BLK-M",
                "quantity": 2,
                "unit_price": "89.00"
            }
        ],
        "items_count": 2,
        "total": "178.00",
        "recovered": false,
        "recovered_order_id": null,
        "created_at": "2026-11-04T08:02:11+03:00",
        "updated_at": "2026-11-04T09:05:00+03:00",
        "marketing_consent": {
            "email": true,
            "sms": true,
            "whatsapp": false
        }
    }
}

Sample data. New fields may be added; ignore the ones you do not know.

Headers

HeaderDescription
X-TGR-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-TGR-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-TGR-EventThe event name.
X-TGR-DeliveryThe notification id, the same value as id in the body.
X-TGR-AttemptThe attempt number, starting at 1.
Content-Typeapplication/json

Handling it

  1. Verify the signature in X-TGR-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. Read the current state from the API before acting, since a later change may already have happened.

Version v1.0.0 Changelog Service status openapi-v1.json Support