{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dropto-run/json-schema/dropto-run-change-plan-request-body-schema.json",
  "title": "ChangePlanRequestBody",
  "description": "Request body of `POST /api/billing/plan`.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dropto-run-billing-api-openapi.yml#/components/schemas/ChangePlanRequestBody",
  "properties": {
    "interval": {
      "description": "Billing interval, `month` or `year`.",
      "maxLength": 8,
      "type": "string"
    },
    "planId": {
      "description": "Id of the plan to move onto.",
      "maxLength": 32,
      "type": "string"
    },
    "timing": {
      "description": "`now`, or absent, which means the same thing: the change is applied immediately and the\ndifference is settled against the unused remainder of the current period. Kept in the contract only\nso that `period_end` — which this route offered until the provider was found to have no way of\ndeferring anything — can be refused by name instead of being read as `now` and charging a\ncustomer who was told nothing would be charged.",
      "maxLength": 16,
      "type": [
        "null",
        "string"
      ]
    }
  },
  "required": [
    "planId",
    "interval"
  ],
  "type": "object"
}