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 2025-09.
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

merchant_id
string
Unique identifier for the merchant’s store in FlexyPe.
shopify_domain
string
The Shopify domain/subdomain for the merchant store.
user
User Object
Contact information captured during the browsing session, if available.
cart_items
array
List of products that were viewed or interacted with during the session. This may include items added to cart but not yet checked out.
client_meta
ClientMeta Object
Technical metadata about the visitor’s device and request.
metadata
Metadata Object
Marketing attribution and tracking data captured from the visitor’s landing page.
pages
array
A chronological list of pages visited during the browsing session.
last_page_visited
string | null
The URL of the last page the visitor viewed before the session was abandoned.
last_activity_at
string | null
ISO 8601 formatted timestamp of the visitor’s last activity in the session.
{
  "merchant_id": "123",
  "shopify_domain": "my-store.myshopify.com",
  "user": {
    "full_name": "Jane Doe",
    "phone": "9876543210",
    "dial_code": "91",
    "email": "jane@example.com"
  },
  "cart_items": [],
  "client_meta": {
    "client_ip": "1.1.1.1",
    "http_referer": "",
    "user_agent": ""
  },
  "metadata": {},
  "pages": [],
  "products_viewed": [],
  "collections_viewed": [],
  "last_page_visited": "https://my-store.com/products/cool-t-shirt",
  "last_activity_at": "2025-09-01T09:55:00Z"
}