{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/productindex-ai/json-schema/productindex-ai-offer-row-schema.json",
  "title": "OfferRow",
  "description": "As stored/returned by GET /api/offers/list/. price_usd/list_price_usd are stored in cents but this reflects the raw DB row shape returned by that route today.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/productindex-ai-openapi.json#/components/schemas/OfferRow",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "product_slug": {
      "type": "string"
    },
    "headline": {
      "type": "string"
    },
    "detail": {
      "type": [
        "string",
        "null"
      ]
    },
    "destination_url": {
      "type": "string"
    },
    "price_usd": {
      "type": [
        "number",
        "null"
      ]
    },
    "list_price_usd": {
      "type": [
        "number",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "active",
        "paused",
        "expired"
      ]
    },
    "starts_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "promo_code": {
      "type": [
        "string",
        "null"
      ]
    },
    "offer_types": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}