{
  "openapi": "3.0.0",
  "paths": {
    "/v1/_deliver": {
      "post": {
        "operationId": "apiDeliver",
        "parameters": [
          {
            "name": "x-retailer-id",
            "in": "header",
            "style": "simple",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeliverRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliverResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request."
          },
          "401": {
            "description": "Unauthorized."
          },
          "403": {
            "description": "Forbidden."
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Deliver contextual ads",
        "tags": [
          "Ads"
        ]
      }
    },
    "/v1/_event": {
      "post": {
        "operationId": "apiEvent",
        "parameters": [
          {
            "name": "x-retailer-id",
            "in": "header",
            "style": "simple",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventRequest"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content."
          },
          "401": {
            "description": "Unauthorized."
          },
          "403": {
            "description": "Forbidden."
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Track events (display, view, click)",
        "tags": [
          "Ads"
        ]
      }
    },
    "/v1/_purchase": {
      "post": {
        "operationId": "apiPurchase",
        "parameters": [
          {
            "name": "x-retailer-id",
            "in": "header",
            "style": "simple",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseRequest"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content."
          },
          "401": {
            "description": "Unauthorized."
          },
          "403": {
            "description": "Forbidden."
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "summary": "Report transaction (purchase)",
        "tags": [
          "Ads"
        ]
      }
    },
    "/v1/health": {
      "get": {
        "operationId": "healthCheck",
        "parameters": [
          {
            "name": "x-retailer-id",
            "in": "header",
            "style": "simple",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK."
          },
          "400": {
            "description": "Bad Request."
          },
          "503": {
            "description": "Service Unavailable."
          }
        },
        "summary": "Health Check",
        "tags": [
          "Health"
        ]
      }
    }
  },
  "info": {
    "title": "veasybl.io",
    "description": "Retail media API",
    "version": "1.0.7"
  },
  "tags": [
    {
      "name": "Ads",
      "description": "Request sponsored ads, record their events, report purchases."
    },
    {
      "name": "Health",
      "description": "Service status."
    }
  ],
  "servers": [
    {
      "url": "https://[retailer-endpoint]"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      }
    },
    "schemas": {
      "SlotRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "sp",
            "description": "A unique identifier for the ad slot where content will be delivered."
          },
          "max": {
            "type": "number",
            "example": 6,
            "default": 1,
            "description": "Maximum number of ads or content items to display in this slot. Defaults to 1 if not specified."
          }
        },
        "required": [
          "id"
        ]
      },
      "ProductPage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "sku82876",
            "description": "Unique identifier for the product, such as an SKU."
          },
          "categories": {
            "example": [
              "8",
              "88",
              "880"
            ],
            "description": "List of category identifiers the product belongs to, ordered from the top-level category to the most specific subcategory.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "offer_id": {
            "type": "string",
            "example": "off1a7z26ue",
            "description": "Unique identifier for the associated offer, if available."
          },
          "seller_id": {
            "type": "string",
            "example": "sel2ac6",
            "description": "Unique identifier for the seller offering this product, if available."
          },
          "brand": {
            "type": "string",
            "example": "FAMOUS BRAND",
            "description": "Brand name or unique identifier for the product's brand."
          },
          "rating": {
            "type": "number",
            "example": 4.2,
            "description": "Average user rating for the product, based on a star system."
          },
          "reviews": {
            "type": "number",
            "example": 1690,
            "description": "Total number of user reviews for the product."
          },
          "price": {
            "type": "number",
            "example": 456.9,
            "description": "Current price of the product, in the store’s default currency."
          },
          "availability": {
            "type": "string",
            "example": "in stock",
            "enum": [
              "in stock",
              "in store",
              "out of stock"
            ],
            "description": "Availability status of the product. Possible values: \"in stock\", \"in store\", or \"out of stock\"."
          }
        },
        "required": [
          "id",
          "categories"
        ]
      },
      "ListedProductsFilter": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "example": "color",
            "description": "The unique key or name identifying the filter applied (e.g., color, price, rating, availability)."
          },
          "op": {
            "type": "string",
            "example": "in",
            "enum": [
              "eq",
              "in",
              "lt",
              "lte",
              "gt",
              "gte"
            ],
            "description": "Operator used for filtering. \"eq\" for exact match, \"in\" for inclusion in a list, \"lt\"/\"lte\" for less than/less than or equal, and \"gt\"/\"gte\" for greater than/greater than or equal comparisons."
          },
          "value": {
            "type": "object",
            "example": [
              "red",
              "green"
            ],
            "description": "The value or values used in the filter condition. Can be a single value or an array, depending on the operator."
          }
        },
        "required": [
          "code",
          "op",
          "value"
        ]
      },
      "ListedProducts": {
        "type": "object",
        "properties": {
          "ids": {
            "example": [
              "skuPos1",
              "skuPos2",
              "skuPos3",
              "..."
            ],
            "description": "Array of product identifiers (SKUs) currently displayed on the page, listed in their visible order.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "page": {
            "type": "number",
            "example": 2,
            "default": 1,
            "description": "Current page number for the product list in paginated results. Defaults to the first page if not specified."
          },
          "sort": {
            "type": "string",
            "example": "price_asc",
            "description": "Specifies the sorting method applied to the product list (e.g., \"price_asc\" for ascending prices, \"rating_desc\" for top-rated)."
          },
          "total": {
            "type": "number",
            "example": 2873,
            "description": "Total number of products available for the current selection or filters, regardless of pagination."
          },
          "filters": {
            "example": [
              {
                "code": "color",
                "op": "in",
                "value": [
                  "red",
                  "blue"
                ]
              },
              {
                "code": "free_delivery",
                "op": "eq",
                "value": true
              },
              {
                "code": "price",
                "op": "lte",
                "value": 99.99
              },
              {
                "code": "rating",
                "op": "gt",
                "value": 4.7
              }
            ],
            "description": "Array of active filter criteria applied to the product list. Each filter describes a condition (such as color, price, or rating) currently used on the page.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListedProductsFilter"
            }
          }
        },
        "required": [
          "ids"
        ]
      },
      "DeliverRequestExtra": {
        "type": "object",
        "properties": {
          "device": {
            "type": "string",
            "example": "mobile",
            "enum": [
              "mobile",
              "desktop",
              "tablet",
              "app"
            ],
            "description": "Type of device making the request. Typical values include \"mobile\", \"desktop\", \"tablet\", or \"app\". Use \"app\" for requests from native applications, and \"mobile\" for mobile web browsers."
          },
          "os": {
            "type": "string",
            "example": "ios",
            "description": "Operating system of the device making the request, such as \"ios\" or \"android\"."
          },
          "store": {
            "type": "string",
            "example": "380",
            "description": "Identifier of the selected or geo-targeted physical store. Used for tailoring content to a specific in-store location."
          },
          "url": {
            "type": "string",
            "example": "/webpage-path/?p=2",
            "description": "Relative URL path of the current page, useful for contextual targeting or analytics."
          },
          "segments": {
            "example": [
              "male",
              "young",
              "csp+"
            ],
            "description": "List of audience segments (DMP: Data Management Platform segments) attributed to the visitor, used for audience targeting or personalization.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "search_hint": {
            "type": "string",
            "example": "ice cream",
            "description": "Curated search terms or topics relevant to the current context, for example highlighting a specific keyword or product theme."
          },
          "vz_preview": {
            "type": "string",
            "example": "akjhz12K3H123123",
            "description": "Identifier of a campaign to be previewed, typically used by internal tools or during QA and preview environments."
          }
        }
      },
      "DeliverRequest": {
        "type": "object",
        "properties": {
          "visitor": {
            "type": "string",
            "example": "CrAzK0R1Zhf5sfWvguJQI",
            "description": "Unique identifier for the site visitor session."
          },
          "alias": {
            "type": "string",
            "example": "77963b7a931377ad4ab5ad6a9cd718aa",
            "description": "Hashed, pseudonymous customer ID for analytics, if available."
          },
          "placement": {
            "type": "string",
            "example": "search",
            "enum": [
              "search",
              "plp",
              "pdp",
              "hub",
              "home"
            ],
            "description": "Type of page where the banner/request is shown. Use \"search\" for search results, \"plp\" for product listing/collection pages, \"pdp\" for product detail pages, \"hub\" for editorial/grouping hubs, and \"home\" for homepages."
          },
          "slots": {
            "example": [
              {
                "id": "sp",
                "max": 3
              },
              {
                "id": "slider",
                "max": 10
              },
              {
                "id": "ban-300x125",
                "max": 1
              },
              {
                "id": "sd",
                "max": 1
              }
            ],
            "description": "List of ad slot requests, describing the slot type and desired maximum number of banners per slot.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SlotRequest"
            }
          },
          "search_terms": {
            "type": "string",
            "example": "ice cream with chocolate",
            "description": "The search query terms entered by the user, used to refine and personalize content or offers."
          },
          "category": {
            "type": "string",
            "example": "880",
            "description": "Identifier for the current category page, used to contextualize the request on a category/collection listing."
          },
          "product": {
            "description": "Information about the current product page, if viewing a product detail. Populated when placement is \"pdp\".",
            "allOf": [
              {
                "$ref": "#/components/schemas/ProductPage"
              }
            ]
          },
          "listed_products": {
            "description": "Set of products listed on the current page (for example, all products shown on a category page). Used to exclude those products from banners or offers.",
            "allOf": [
              {
                "$ref": "#/components/schemas/ListedProducts"
              }
            ]
          },
          "extra": {
            "description": "Additional contextual or technical information about the request, such as device type, operating system, preview flags, etc.",
            "allOf": [
              {
                "$ref": "#/components/schemas/DeliverRequestExtra"
              }
            ]
          }
        },
        "required": [
          "placement",
          "slots"
        ]
      },
      "ProductItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "sku82876",
            "description": "Unique product identifier (SKU or similar)."
          },
          "oid": {
            "type": "string",
            "example": "off1a7z26ue",
            "description": "Unique identifier of the related offer, if applicable."
          },
          "title": {
            "type": "string",
            "example": "Cordless robotic lawn mower",
            "description": "Full product title or name as displayed in the store."
          },
          "brand": {
            "type": "string",
            "example": "FAMOUS BRAND",
            "description": "Brand or manufacturer of the product."
          },
          "link": {
            "type": "string",
            "example": "https://retailer.com/product-sku82876.html",
            "description": "Direct URL to the product details page in the storefront."
          },
          "image_link": {
            "type": "string",
            "example": "https://retailer.com/sku82876/4872337e.jpeg?width=300",
            "description": "URL pointing to the main image of the product."
          },
          "price": {
            "type": "number",
            "example": 400,
            "description": "Current price of the product (in marketplace’s currency)."
          },
          "seller": {
            "type": "string",
            "example": "ACME Seller",
            "description": "Marketplace seller or store providing the product."
          },
          "team": {
            "type": "string",
            "example": "Prime Media Agency",
            "description": "Name of the advertiser's team associated with this product listing."
          },
          "index": {
            "type": "number",
            "example": 5,
            "description": "Position or rank of the product within a recommendation or search result list."
          },
          "beacon": {
            "type": "string",
            "example": "UTnAM08bySeyqXS_xlUpmSJ78WanOdSMlrUmC8Lbtqmd",
            "description": "Tracking beacon or unique token for product attribution and analytics."
          }
        },
        "required": [
          "id",
          "beacon"
        ]
      },
      "ImagePicture": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "example": "image/webp",
            "description": "MIME type of the image resource, used for the \"type\" attribute in an HTML <source> tag (e.g., \"image/webp\" or \"image/jpeg\")."
          },
          "srcset": {
            "type": "string",
            "example": "https://m.vzbl.eu/zhlcutkc0x-h.webp, https://m.vzbl.eu/zhlcutkc0x.webp 2x",
            "description": "Comma-separated list of image URLs and their display densities, intended for the \"srcset\" attribute in the <source> tag to support responsive and retina images."
          }
        },
        "required": [
          "type",
          "srcset"
        ]
      },
      "BannerItem": {
        "type": "object",
        "properties": {
          "image": {
            "type": "string",
            "example": "https://m.vzbl.eu/zhlcutkc0x.png",
            "description": "URL of the main banner image to display."
          },
          "image_picture": {
            "example": "https://m.vzbl.eu/zhlcutkc0x.png",
            "description": "Responsive images for use in HTML <picture> tags, allowing appropriate image selection based on device or resolution.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImagePicture"
            }
          },
          "image_width": {
            "type": "number",
            "example": "350",
            "description": "Width of the main banner image, in pixels."
          },
          "image_height": {
            "type": "number",
            "example": "125",
            "description": "Height of the main banner image, in pixels."
          },
          "image_alt_text": {
            "type": "string",
            "example": "Famous brand new product line",
            "description": "Alternative text for the main image, for accessibility or when the image cannot be loaded."
          },
          "logo_alt_text": {
            "type": "string",
            "example": "Famous brand",
            "description": "Alternative text for the logo image, helps with accessibility."
          },
          "link": {
            "type": "string",
            "example": "https://retailer.com/brand/famous-brand",
            "description": "URL the banner should link to, such as a product or promotional page."
          },
          "link_text": {
            "type": "string",
            "example": "Find out more",
            "description": "Text to display for the call-to-action (CTA) link."
          },
          "headline": {
            "type": "string",
            "example": "Our best product yet !",
            "description": "Headline or main text displayed within the banner."
          },
          "text_color": {
            "type": "string",
            "example": "#c65200",
            "description": "Color of the headline text, specified as a hex code."
          },
          "background_image": {
            "type": "string",
            "example": "https://m.vzbl.eu/zhlcutkc0x.png",
            "description": "URL of the background image for the banner."
          },
          "background_color": {
            "type": "string",
            "example": "#9ed05f",
            "description": "Background color of the banner, specified as a hex code."
          },
          "team": {
            "type": "string",
            "example": "Prime Media Agency",
            "description": "Name of the advertiser team responsible for this banner."
          },
          "index": {
            "type": "number",
            "example": 5,
            "description": "Position or order index of the banner within a list."
          },
          "beacon": {
            "type": "string",
            "example": "qSUaO_EYpgShat8p8-bm_wiskKYotoBDbwMVU-8li2lO8KC-J8n",
            "description": "Unique tracking beacon for banner analytics."
          }
        }
      },
      "CreativeItem": {
        "type": "object",
        "properties": {
          "headline": {
            "type": "string",
            "example": "Summer Sale - Up to 50% off!",
            "description": "Headline or main promotional message displayed in the creative."
          },
          "text_link": {
            "type": "string",
            "example": "Shop now",
            "description": "Label for the primary call-to-action button or link."
          },
          "href_link": {
            "type": "string",
            "example": "https://retailer.com/promo",
            "description": "URL to which the creative directs users when they click the call-to-action."
          },
          "brand_image": {
            "type": "string",
            "example": "https://retailer.com/brand/logo.png",
            "description": "URL of the logo or brand image shown in the creative."
          },
          "background_image": {
            "type": "string",
            "example": "https://retailer.com/banner/background.jpg",
            "description": "URL for the creative's background image."
          },
          "video_file": {
            "type": "string",
            "example": "https://retailer.com/video/ad.mp4",
            "description": "URL to the main video file for video creatives, if provided."
          },
          "video_thumb": {
            "type": "string",
            "example": "https://retailer.com/video/thumb.jpg",
            "description": "URL of the thumbnail image shown before the video plays."
          },
          "video_in_loop": {
            "type": "boolean",
            "example": false,
            "description": "Indicates if the video should play in a continuous loop."
          },
          "aspect_ratio": {
            "type": "string",
            "example": "16:9",
            "description": "Aspect ratio of the creative or video, such as \"16:9\" or \"9:16\"."
          },
          "auto_slide": {
            "type": "boolean",
            "example": true,
            "description": "If true, enables automatic sliding for the product carousel."
          },
          "team": {
            "type": "string",
            "example": "Prime Media Agency",
            "description": "Name of the advertiser team or agency responsible for this creative."
          },
          "beacon": {
            "type": "string",
            "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
            "description": "Encoded string for tracking impressions and attribution."
          }
        }
      },
      "SlotResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "sp",
            "description": "Unique identifier for the ad slot. Corresponds to the requested slot ID."
          },
          "max": {
            "type": "number",
            "example": 6,
            "description": "Maximum number of ads that can be filled in this slot, as configured in the request."
          },
          "fill": {
            "type": "number",
            "example": 3,
            "default": 0,
            "description": "Number of ads returned for this slot in the current response. Indicates actual fill compared to the max allowed."
          },
          "products": {
            "description": "List of sponsored product items delivered for this slot.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductItem"
            }
          },
          "banners": {
            "description": "List of sponsored banner items delivered for this slot.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BannerItem"
            }
          },
          "creative": {
            "description": "List of sponsored display items delivered for this slot.",
            "allOf": [
              {
                "$ref": "#/components/schemas/CreativeItem"
              }
            ]
          }
        },
        "required": [
          "id",
          "max",
          "fill"
        ]
      },
      "DeliverResponse": {
        "type": "object",
        "properties": {
          "slots": {
            "example": [
              {
                "id": "sp",
                "max": 3,
                "fill": 1,
                "products": [
                  {
                    "id": "sku82876",
                    "oid": "off1a7z26ue",
                    "title": "FAMOUS BRAND - Best product",
                    "brand": "FAMOUS BRAND",
                    "price": 123.9,
                    "store": "main",
                    "rating": 95,
                    "reviews": 57,
                    "link": "https://retailer.com/pdp/famous-brand-best-product-sku82876.html",
                    "image_link": "https://img.retailer.com/sku82876/c4e8cfa1-e3ce-4e29-9e00-841510e5a316.jpeg",
                    "seller": "ACME Seller",
                    "team": "Prime Media Agency",
                    "index": 1,
                    "beacon": "tYdH1JZroRdc01NHb5o-b0T9b9kVBHnYTfy1OXoANGhEweHLwIJEN-1W-quaAlHti8pdJZQmE"
                  }
                ]
              },
              {
                "id": "ban-300x125",
                "max": 1,
                "fill": 1,
                "banners": [
                  {
                    "image": "https://m.vzbl.eu/zhlcutkc0x.png",
                    "image_picture": [
                      {
                        "type": "image/webp",
                        "srcset": "https://m.vzbl.eu/zhlcutkc0x-h.webp, https://m.vzbl.eu/zhlcutkc0x.webp 2x"
                      },
                      {
                        "type": "image/png",
                        "srcset": "https://m.vzbl.eu/zhlcutkc0x-h.png, https://m.vzbl.eu/zhlcutkc0x.png 2x"
                      }
                    ],
                    "image_width": 300,
                    "image_height": 125,
                    "image_alt_text": "FAMOUS BRAND new product line",
                    "logo_alt_text": "FAMOUS BRAND",
                    "link": "https://retailer.com/brand/famous-brand",
                    "link_text": "See offers",
                    "team": "Prime Media Agency",
                    "index": 1,
                    "beacon": "ZF6cbsNb7pKf1FcHcxgKWoHZ2vRK8e_WCJEn1Tq5_6eKzchXGJhApQs09OA-YeQHRXcpoH48my5I"
                  }
                ]
              },
              {
                "id": "sd",
                "max": 1,
                "fill": 1,
                "creative": {
                  "headline": "Get Ready for Summer Deals!",
                  "text_link": "Shop Sale",
                  "href_link": "https://retailer.com/summer-sale",
                  "brand_image": "https://m.vzbl.eu/summer_brand_logo.png",
                  "background_image": "https://m.vzbl.eu/banners/sale_bg.jpg",
                  "video_file": "https://m.vzbl.eu/video/ad.mp4",
                  "video_thumb": "https://m.vzbl.eu/thumb/ad.jpeg",
                  "video_in_loop": false,
                  "aspect_ratio": "16:9",
                  "auto_slide": true,
                  "team": "Prime Media Agency",
                  "beacon": "cmkQbeH7svvHEB4XjJ4zk7dTf3Jd_XZvW6Q8W8Vf8jW8T..."
                },
                "products": [
                  {
                    "id": "sku11223",
                    "index": 1,
                    "beacon": "gTKy1zBvKpB6dq85ZAmkPDGJm7P_xTfI0kaFfwrDxepp..."
                  },
                  {
                    "id": "sku98113",
                    "index": 2,
                    "beacon": "QXtL1OPMNzqtqgHTAd8MxBeJHT-zdZTuEKM_WLPn_zXc..."
                  }
                ]
              }
            ],
            "description": "Array of slot responses, each representing one ad slot with its delivered items.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SlotResponse"
            }
          }
        },
        "required": [
          "slots"
        ]
      },
      "EventRequest": {
        "type": "object",
        "properties": {
          "display": {
            "example": [
              "tYdH1JZroRdc01NHb5o-b0T9b9kVBHnYTfy1OXoANGhEweHLwIJEN-1W",
              "qSUaO_EYpgShat8p8-bm_wiskKYotoBDbwMVU-8li2lO8KC-J8nFyvB21u"
            ],
            "description": "Array of event beacons associated with ads that were displayed to the user. Each beacon is a unique, encoded token representing a particular ad impression.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "view": {
            "example": [
              "qSUaO_EYpgShat8p8-bm_wiskKYotoBDbwMVU-8li2lO8KC-J8nFyvB21u"
            ],
            "description": "Array of event beacons for ads that were visible within the user’s viewport. Use this to track which ad impressions were actually viewed.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "click": {
            "example": [
              "qSUaO_EYpgShat8p8-bm_wiskKYotoBDbwMVU-8li2lO8KC-J8nFyvB21u"
            ],
            "description": "Array of event beacons for ads that were clicked by the user. Each token corresponds to a unique click event on an ad creative.",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "PurchaseItem": {
        "type": "object",
        "properties": {
          "product_id": {
            "type": "string",
            "example": "3E4NZE3T12",
            "description": "Unique product identifier (SKU) for the purchased item."
          },
          "price": {
            "type": "number",
            "example": 400,
            "description": "Unit price of the purchased item in the specified transaction currency."
          },
          "quantity": {
            "type": "number",
            "example": 1,
            "description": "Quantity of this product included in the purchase. Defaults to 1 if not provided."
          },
          "offer_id": {
            "type": "string",
            "example": "off1a7z26ue",
            "description": "Optional identifier for the specific sales offer or promotion associated with this item."
          },
          "seller_id": {
            "type": "string",
            "example": "2ac661",
            "description": "Identifier for the seller or merchant offering this product."
          },
          "seller": {
            "type": "string",
            "example": "ACME Seller",
            "description": "Name of the seller or merchant for this item."
          },
          "brand": {
            "type": "string",
            "example": "FAMOUS BRAND",
            "description": "Brand name or identifier for the purchased product."
          }
        },
        "required": [
          "product_id",
          "price"
        ]
      },
      "PurchaseRequest": {
        "type": "object",
        "properties": {
          "visitor": {
            "type": "string",
            "example": "cYFwasdXSlhzqYDpWB0tw",
            "description": "Unique identifier for the visitor session during which the purchase was made."
          },
          "alias": {
            "type": "string",
            "example": "77963b7a931377ad4ab5ad6a9cd718aa",
            "description": "Optional hashed customer identifier for anonymous or privacy-safe tracking of the buyer."
          },
          "currency": {
            "type": "string",
            "example": "EUR",
            "description": "Three-letter currency code (ISO 4217 format) representing the transaction currency.",
            "enum": [
              "EUR"
            ]
          },
          "purchase_id": {
            "type": "string",
            "example": "123RTA7Z",
            "description": "Unique identifier for the purchase transaction."
          },
          "purchase_date": {
            "type": "string",
            "example": "2021-10-05T14:48:00.000Z",
            "description": "ISO 8601 timestamp of when the purchase was completed (e.g., \"YYYY-MM-DDTHH:mm:ss.sssZ\")."
          },
          "items": {
            "description": "List of items purchased in the transaction. Each item contains detailed purchase information.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PurchaseItem"
            }
          }
        },
        "required": [
          "visitor",
          "currency",
          "purchase_id",
          "purchase_date",
          "items"
        ]
      }
    }
  },
  "externalDocs": {
    "description": "API Documentation",
    "url": "https://docs.veasybl.io/api-integration/reference"
  }
}
