{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fnlowl-com/json-schema/fnlowl-com-billing-usage-schema.json",
  "title": "BillingUsage",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fnlowl-com-billing-api-openapi.yml#/components/schemas/BillingUsage",
  "type": "object",
  "properties": {
    "used": {
      "type": "integer"
    },
    "limit": {
      "type": "integer"
    },
    "plan": {
      "type": [
        "string",
        "null"
      ]
    },
    "nextPlan": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "none",
        "trialing",
        "active",
        "past_due",
        "canceled"
      ]
    },
    "trialEndsAt": {
      "type": [
        "integer",
        "null"
      ]
    },
    "interval": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "monthly",
        "annual"
      ]
    },
    "renewsAt": {
      "type": [
        "integer",
        "null"
      ]
    },
    "cancelAtPeriodEnd": {
      "type": "boolean"
    },
    "paid": {
      "type": "boolean"
    },
    "overLimit": {
      "type": "boolean"
    },
    "refusing": {
      "type": "boolean"
    },
    "graceLimit": {
      "type": "integer"
    },
    "complimentary": {
      "type": "boolean"
    },
    "billedBy": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "shopify"
      ]
    }
  },
  "required": [
    "used",
    "limit",
    "plan",
    "nextPlan",
    "status",
    "trialEndsAt",
    "interval",
    "renewsAt",
    "cancelAtPeriodEnd",
    "paid",
    "overLimit",
    "refusing",
    "graceLimit",
    "complimentary",
    "billedBy"
  ]
}