{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/invoicepdfs-com/json-schema/invoicepdfs-com-billing-subscription-response-schema.json",
  "title": "BillingSubscriptionResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/invoicepdfs-com-billing-api-openapi.yml#/components/schemas/BillingSubscriptionResponse",
  "properties": {
    "data": {
      "$ref": "#/$defs/BillingSubscriptionData"
    }
  },
  "type": "object",
  "required": [
    "data"
  ],
  "$defs": {
    "BillingSubscriptionData": {
      "properties": {
        "subscription_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Subscription Id"
        },
        "status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Status"
        },
        "plan_id": {
          "type": "string",
          "title": "Plan Id"
        },
        "plan_name": {
          "type": "string",
          "title": "Plan Name"
        },
        "stripe_configured": {
          "type": "boolean",
          "title": "Stripe Configured",
          "default": false
        },
        "has_billing_account": {
          "type": "boolean",
          "title": "Has Billing Account",
          "default": false
        },
        "overage_enabled": {
          "type": "boolean",
          "title": "Overage Enabled",
          "default": false
        },
        "overage_available": {
          "type": "boolean",
          "title": "Overage Available",
          "default": false
        },
        "overage_price_millicents": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Overage Price Millicents"
        },
        "allow_branding_removal": {
          "type": "boolean",
          "title": "Allow Branding Removal",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "plan_id",
        "plan_name"
      ],
      "title": "BillingSubscriptionData"
    }
  }
}