{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usagerail/json-schema/usagerail-post-v1-consumers-id-checkout-request-schema.json",
  "title": "PostV1ConsumersIdCheckoutRequest",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/usagerail-openapi-generated.yml#/components/schemas/PostV1ConsumersIdCheckoutRequest",
  "type": "object",
  "properties": {
    "plan_id": {
      "type": "string",
      "description": "Paid plan identifier"
    },
    "interval": {
      "type": "string",
      "description": "\"month\" (default) or \"year\""
    },
    "success_url": {
      "type": "string",
      "description": "HTTPS URL for success"
    },
    "cancel_url": {
      "type": "string",
      "description": "HTTPS URL for cancellation"
    },
    "credit_pack_id": {
      "type": "string",
      "description": "ID of a credit pack to sell instead of a plan"
    }
  },
  "required": [
    "plan_id",
    "success_url",
    "cancel_url"
  ]
}