billing

Preview Plan Change

Quote what /change-plan with the same body would do — Paddle's dry-run proration preview, run through the exact admissibility rules of the execute path so a shown quote can always be confirmed. Commits nothing.

post/v1/billing/change-plan/preview

Request

  • Base URL: https://api.elaan.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.elaan.io/v1/billing/change-plan/preview
  • Auth: none declared

Headers

authorizationstring nullable

Request body

plan'free' | 'pro' | 'business' | 'scale' required

A subscription tier. The natural identity of a plan is its slug; the price lives in Paddle (per price id), and the limits live in this module's PLAN_LIMITS so a pricing change is a one-line edit, not a data migration.

period'monthly' | 'annual' required

How often a paid tier renews. Mirrors the pricing page's monthly/annual toggle; each (plan, period) pair maps to one Paddle price id.

Response

Successful Response

current_period_endstring date-time nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.