{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vruum-ai/json-schema/vruum-ai-get-revenue-request-schema.json",
  "title": "GetRevenueRequest",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vruum-ai-openapi.json#/components/schemas/GetRevenueRequest",
  "properties": {
    "view": {
      "type": "string",
      "enum": [
        "connection",
        "metrics",
        "evidence",
        "bindings",
        "account",
        "service_margin",
        "finance_workspace",
        "finance",
        "finance_setup",
        "commercial_change"
      ],
      "title": "View"
    },
    "reporting_entity_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reporting Entity Id"
    },
    "period_start": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Period Start"
    },
    "period_end": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Period End"
    },
    "knowledge_cutoff": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Knowledge Cutoff"
    },
    "source_ids": {
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "type": "array",
      "maxItems": 20,
      "title": "Source Ids"
    },
    "journey_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Journey Id"
    },
    "company_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Company Id",
      "description": "Required for the account view."
    },
    "instruction_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Instruction Id",
      "description": "Required for the commercial_change view."
    },
    "offset": {
      "type": "integer",
      "maximum": 10000.0,
      "minimum": 0.0,
      "title": "Offset",
      "description": "Account records pagination offset.",
      "default": 0
    },
    "currency": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 3,
          "minLength": 3
        },
        {
          "type": "null"
        }
      ],
      "title": "Currency",
      "default": "USD"
    },
    "limit": {
      "type": "integer",
      "maximum": 200.0,
      "minimum": 1.0,
      "title": "Limit",
      "default": 50
    },
    "cursor": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ],
      "title": "Cursor",
      "description": "Opaque evidence pagination cursor from the previous next_cursor."
    },
    "metric": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "current_gross_mrr_minor",
            "current_gross_arr_minor",
            "net_successful_charge_volume_mtd_minor"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Metric"
    },
    "binding_status": {
      "type": "string",
      "enum": [
        "suggested",
        "confirmed",
        "rejected"
      ],
      "title": "Binding Status",
      "default": "suggested"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "view"
  ]
}