AgentaOS · Schema

PlanChangePreview

Read-only quote for moving a subscription to another plan. Money is integer minor units.

PaymentsBillingSoftware-as-a-ServiceFreelancersArtificial Intelligence

Properties

Name Type Description
direction string `upgrade` when the new plan costs more per cycle; `downgrade` otherwise; `revert` when the target is the current plan while a downgrade is pending (cancels it, nothing due).
currency string
dueTodayMinor integer Charged now. Always 0 for a downgrade.
dueTodayVatMinor integer
effectiveAt string Upgrade: now. Downgrade: the current period end.
nextInvoiceMinor integer The next regular cycle invoice on the new plan.
nextInvoiceVatMinor integer
nextInvoiceAt string
prorationDate integer Unix seconds. Echo it in the apply request so the charge matches this quote.
View JSON Schema on GitHub

JSON Schema

agentaos-ai-plan-change-preview-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentaos-ai/json-schema/agentaos-ai-plan-change-preview-schema.json",
  "title": "PlanChangePreview",
  "description": "Read-only quote for moving a subscription to another plan. Money is integer minor units.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentaos-ai-subscriptions-api-openapi.yml#/components/schemas/PlanChangePreview",
  "type": "object",
  "properties": {
    "direction": {
      "type": "string",
      "enum": [
        "upgrade",
        "downgrade",
        "revert"
      ],
      "description": "`upgrade` when the new plan costs more per cycle; `downgrade` otherwise; `revert` when the target is the current plan while a downgrade is pending (cancels it, nothing due)."
    },
    "currency": {
      "type": "string"
    },
    "dueTodayMinor": {
      "type": "integer",
      "description": "Charged now. Always 0 for a downgrade."
    },
    "dueTodayVatMinor": {
      "type": "integer"
    },
    "effectiveAt": {
      "type": "string",
      "format": "date-time",
      "description": "Upgrade: now. Downgrade: the current period end."
    },
    "nextInvoiceMinor": {
      "type": "integer",
      "description": "The next regular cycle invoice on the new plan."
    },
    "nextInvoiceVatMinor": {
      "type": "integer"
    },
    "nextInvoiceAt": {
      "type": "string",
      "format": "date-time"
    },
    "prorationDate": {
      "type": "integer",
      "description": "Unix seconds. Echo it in the apply request so the charge matches this quote."
    }
  },
  "required": [
    "direction",
    "currency",
    "dueTodayMinor",
    "dueTodayVatMinor",
    "effectiveAt",
    "nextInvoiceMinor",
    "nextInvoiceVatMinor",
    "nextInvoiceAt",
    "prorationDate"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/agentaos-ai-plan-change-preview"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.