Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.flexype.io/llms.txt

Use this file to discover all available pages before exploring further.

The Abandoned Session Recovery webhook is triggered when a visitor browses your store and shows engagement but does not initiate a checkout session. If no checkout session is created within 15 minutes of their last activity, this webhook fires automatically. This webhook captures browsing behavior, page visits, and any contact information provided during the session — enabling you to identify high-intent visitors early in their journey and engage them with personalized messaging, retargeting campaigns, or incentives before they leave. By leveraging this data, brands can reduce early-stage drop-offs and convert browsers into buyers.

Headers

X-Flexype-Authorization
string
A secret key used to verify that the webhook request originated from FlexyPe. Ensure this token is validated to prevent unauthorized access.
X-Webhook-Version
string
The version of the webhook payload. Here, the value will be 2026-05.
X-Webhook-Id
string
The unique identifier of the webhook configured for your store.
X-Event-Id
string
The unique identifier for the event that triggered this webhook.

Body

event_time
string
The ISO 8601 timestamp when the event occurred.
event_type
string
The type of event. For this webhook, it is ABANDONED_SESSION.
event_id
string
A unique identifier for the event.
store
object
Information about the store where the event occurred.
payload
object
The event-specific data.
{
  "event_time": "2026-05-07T10:00:00Z",
  "event_type": "ABANDONED_SESSION",
  "event_id": "evt_456789123",
  "store": {
    "id": "store_01",
    "name": "My Awesome Store",
    "shopify_domain": "my-store.myshopify.com",
    "main_domain": "my-store.com"
  },
  "payload": {
    "user": {
      "email": "jane.doe@example.com",
      "full_name": "Jane Doe",
      "first_name": "Jane",
      "last_name": "Doe",
      "dial_code": "91",
      "phone": "9876543210",
      "phone_with_dial_code": "+919876543210"
    },
    "cart": [],
    "client_meta": {
      "client_ip": "1.1.1.1",
      "http_referer": "https://google.com",
      "user_agent": "Mozilla/5.0..."
    },
    "metadata": null,
    "page_viewed": [
      {
        "url": "https://my-store.com/products/cool-t-shirt",
        "timestamp": "2026-05-07T09:55:00Z"
      }
    ],
    "products_viewed": [
      {
        "product_id": 12345,
        "variant_id": 67890,
        "title": "Cool T-Shirt",
        "handle": "cool-t-shirt",
        "image": "https://cdn.shopify.com/products/item.jpg",
        "timestamp": "2026-05-07T09:55:00Z"
      }
    ],
    "collection_viewed": [],
    "last_page_visited": {
      "url": "https://my-store.com/products/cool-t-shirt",
      "timestamp": "2026-05-07T09:55:00Z"
    }
  }
}