{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/algenta-ai/json-schema/algenta-ai-checkout-request-schema.json",
  "title": "CheckoutRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/algenta-ai-account-api-openapi.yml#/components/schemas/CheckoutRequest",
  "properties": {
    "plan": {
      "type": "string",
      "maxLength": 32,
      "minLength": 1,
      "title": "Plan"
    },
    "quantity": {
      "type": "integer",
      "maximum": 10000.0,
      "minimum": 1.0,
      "title": "Quantity",
      "default": 1
    },
    "success_url": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2048
        },
        {
          "type": "null"
        }
      ],
      "title": "Success Url"
    },
    "cancel_url": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2048
        },
        {
          "type": "null"
        }
      ],
      "title": "Cancel Url"
    }
  },
  "type": "object",
  "required": [
    "plan"
  ]
}