{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contractorroster-com/json-schema/contractorroster-com-usage-response-schema.json",
  "title": "UsageResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/contractorroster-com-openapi.yml#/components/schemas/UsageResponse",
  "type": "object",
  "properties": {
    "partner": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "display_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "suspended",
            "closed"
          ]
        },
        "price_per_record_cents": {
          "type": "integer"
        },
        "balance_cents": {
          "type": "integer"
        }
      }
    },
    "transactions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "topup",
              "api_call",
              "refund",
              "adjustment"
            ]
          },
          "amount_cents": {
            "type": "integer"
          },
          "balance_after_cents": {
            "type": "integer"
          },
          "state": {
            "type": [
              "string",
              "null"
            ]
          },
          "trade": {
            "type": [
              "string",
              "null"
            ]
          },
          "geo_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "geo_value": {
            "type": [
              "string",
              "null"
            ]
          },
          "records_delivered": {
            "type": [
              "integer",
              "null"
            ]
          },
          "stripe_session_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    }
  }
}