{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://homerunner.io/wp-content/uploads/schemas/sendsquared-cart-abandon.v1.schema.json",
  "title": "HomeRunner abandoned cart, as sent to SendSquared",
  "description": "One HTTPS POST per abandoned cart from a HomeRunner website (Conversion Kit, Cart Abandonment Recovery) to the SendSquared cart-abandon endpoint. Empty fields are omitted. No payment details, passwords or browsing history are ever included. Documentation: https://homerunner.io/integrations/sendsquared/",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "email_address"
  ],
  "properties": {
    "email_address": {
      "type": "string",
      "format": "email",
      "description": "The guest email captured at checkout. Carts without one are never sent."
    },
    "checkout_url": {
      "type": "string",
      "format": "uri",
      "description": "The property page with checkin, checkout and guests in the query string, so the guest lands with the trip restored."
    },
    "property_url": {
      "type": "string",
      "format": "uri",
      "description": "The property page without trip parameters."
    },
    "abandonment_date": {
      "type": "string",
      "format": "date-time",
      "description": "When the cart was created, ISO 8601."
    },
    "unit_id": {
      "type": "string",
      "description": "The PMS listing id for the property."
    },
    "date_of_arrival": {
      "type": "string",
      "format": "date",
      "description": "Check-in date, YYYY-MM-DD."
    },
    "date_of_departure": {
      "type": "string",
      "format": "date",
      "description": "Check-out date, YYYY-MM-DD."
    },
    "total_revenue": {
      "type": "number",
      "description": "Cart total in the site currency."
    },
    "adults": {
      "type": "integer",
      "minimum": 1,
      "description": "Guest count. The site holds one count, sent as adults."
    }
  },
  "examples": [
    {
      "email_address": "guest@example.com",
      "checkout_url": "https://yoursite.com/property/lakeside-cabin/?checkin=2026-10-09&checkout=2026-10-12&guests=4",
      "property_url": "https://yoursite.com/property/lakeside-cabin/",
      "abandonment_date": "2026-09-17T14:05:00+00:00",
      "unit_id": "1842",
      "date_of_arrival": "2026-10-09",
      "date_of_departure": "2026-10-12",
      "total_revenue": 1260.0,
      "adults": 4
    }
  ]
}
