{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/billdog-io/json-schema/billdog-io-post-v1-ingest-events-request-schema.json",
  "title": "PostV1IngestEventsRequest",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/billdog-io-openapi-generated.yml#/components/schemas/PostV1IngestEventsRequest",
  "type": "object",
  "properties": {
    "api_key": {
      "type": "string"
    },
    "platform": {
      "type": "string"
    },
    "sdk_version": {
      "type": "string"
    },
    "events": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "timestamp": {
            "type": "integer"
          },
          "session_id": {
            "type": "string"
          },
          "anonymous_id": {
            "type": "string"
          },
          "properties": {
            "type": "object",
            "properties": {
              "$user_id": {
                "type": "string"
              },
              "amount": {
                "type": "number"
              },
              "$currency": {
                "type": "string"
              },
              "$insert_id": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}