{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wall-marketing/json-schema/wall-marketing-report-schema.json",
  "title": "Report",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wall-marketing-openapi.json#/components/schemas/Report",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "description": "Always \"report\"."
    },
    "booking_id": {
      "type": "string",
      "description": "The booking reported on."
    },
    "livemode": {
      "type": "boolean",
      "description": "False in the sandbox (figures simulated)."
    },
    "status": {
      "type": "string",
      "description": "The booking's status."
    },
    "campaign_name": {
      "type": "string",
      "description": "The campaign name."
    },
    "generated_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "When the report was made. ISO 8601, UTC."
    },
    "method": {
      "type": "string",
      "description": "How days are confirmed and views estimated."
    },
    "totals": {
      "type": "object",
      "description": "Totals over all placements.",
      "properties": {
        "days_booked": {
          "type": "integer",
          "description": "Days booked across all screens."
        },
        "days_confirmed": {
          "type": "integer",
          "description": "Days a screen confirmed showing the advert."
        },
        "estimated_views": {
          "type": [
            "number",
            "null"
          ],
          "description": "Days confirmed times each venue's estimated daily visitors."
        },
        "credit_usd": {
          "type": "number",
          "description": "Credit owed for booked days no screen confirmed, once finished."
        }
      }
    },
    "placements": {
      "type": "array",
      "description": "One per venue.",
      "items": {
        "type": "object",
        "properties": {
          "venue_id": {
            "type": "string",
            "description": "The venue (screen) booked."
          },
          "venue_name": {
            "type": "string",
            "description": "The venue's name."
          },
          "address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The venue's address."
          },
          "start_date": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "First day the advert shows."
          },
          "end_date": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "Exclusive: the first day it no longer shows."
          },
          "last_day": {
            "type": [
              "string",
              "null"
            ],
            "description": "The last day the advert shows (YYYY-MM-DD)."
          },
          "days": {
            "type": "integer",
            "description": "Days booked."
          },
          "amount_usd": {
            "type": "number",
            "description": "Price for this venue, in US dollars."
          },
          "state": {
            "type": "string",
            "description": "not_started, scheduled, live, finished or removed."
          },
          "days_booked": {
            "type": "integer",
            "description": "Days booked at this venue."
          },
          "days_confirmed": {
            "type": "integer",
            "description": "Days this screen confirmed showing the advert."
          },
          "first_confirmed_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "First confirmation. ISO 8601, UTC."
          },
          "last_confirmed_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Latest confirmation. ISO 8601, UTC."
          },
          "screen_online": {
            "type": "boolean",
            "description": "Whether the screen checked in within 26 hours."
          },
          "showing_now": {
            "type": "boolean",
            "description": "Whether the screen reported this advert at its latest check-in."
          },
          "credit_usd": {
            "type": "number",
            "description": "Credit for unconfirmed days at this venue."
          },
          "estimated_views": {
            "type": [
              "number",
              "null"
            ],
            "description": "Estimated views at this venue."
          }
        }
      }
    },
    "personal_data": {
      "type": "string",
      "description": "What is recorded about viewers (nothing)."
    }
  }
}