{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alphabazaar-ai/json-schema/alphabazaar-ai-subscriptions-response-schema.json",
  "title": "SubscriptionsResponse",
  "description": "GET /api/subscriptions",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alphabazaar-ai-subscriptions-api-openapi.yml#/components/schemas/SubscriptionsResponse",
  "properties": {
    "status": {
      "type": "string",
      "title": "Status"
    },
    "subscriptions": {
      "items": {
        "$ref": "#/$defs/SubscriptionItem"
      },
      "type": "array",
      "title": "Subscriptions"
    }
  },
  "type": "object",
  "required": [
    "status",
    "subscriptions"
  ],
  "$defs": {
    "SubscriptionItem": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "current_period_start": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Current Period Start"
        },
        "current_period_end": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Current Period End"
        },
        "cancel_at_period_end": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cancel At Period End"
        },
        "plan_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Plan Id"
        },
        "plan_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Plan Name"
        },
        "amount": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Amount"
        },
        "currency": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Currency"
        }
      },
      "type": "object",
      "required": [
        "id",
        "status"
      ],
      "title": "SubscriptionItem"
    }
  }
}