Skip to main content
The Abandoned Session Recovery Webhook is triggered when a visitor browses your store and demonstrates engagement without initiating checkout. This webhook captures browsing behavior, page visits, and any contact information provided during the session. It enables businesses to identify high-intent visitors early in their journey and engage them with personalized messaging, retargeting campaigns, or incentives before they leave the site. 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.

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": "12554340-1b6a-496c-5651-24bd9ef56bb4",
  "shopify_domain": "flexype.myshopify.com",
  "user": {
    "full_name": "Roshan Kumar Chatei",
    "phone": "7777788888",
    "dial_code": "91",
    "email": "[email protected]"
  },
  "cart_items": [
    {
      "product_id": 7516974022740,
      "variant_id": 41564857663572,
      "quantity": 1,
      "properties": {
        "color": "red"
      }
    }
  ],
  "client_meta": {
    "client_ip": "103.45.67.89",
    "http_referer": "https://www.google.com/search?q=premium+brownies",
    "user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1"
  },
  "metadata": {
    "utm": [
      {
        "name": "utm_source",
        "value": "google"
      },
      {
        "name": "utm_medium",
        "value": "cpc"
      },
      {
        "name": "utm_campaign",
        "value": "holiday_sale_2025"
      },
      {
        "name": "gclid",
        "value": "Cj0KCQiA1sucBhDgARIsAFoytUvXYZ..."
      }
    ],
    "orig_referer": "https://www.google.com",
    "referer_host": "www.google.com",
    "landing_page": "/collections/brownies"
  },
  "pages": [
    {
      "url": "https://flexype.myshopify.com/collections/brownies",
      "timestamp": "2025-12-08T14:25:00Z"
    },
    {
      "url": "https://flexype.myshopify.com/products/gluten-free-double-chocochunk-walnut",
      "timestamp": "2025-12-08T14:27:30Z"
    },
    {
      "url": "https://flexype.myshopify.com/products/classic-fudge-brownie",
      "timestamp": "2025-12-08T14:30:15Z"
    }
  ],
  "last_page_visited": "https://flexype.myshopify.com/products/classic-fudge-brownie",
  "last_activity_at": "2025-12-08T14:30:45Z"
}