billing

Upgrade or downgrade the org's plan

Changed on

GET /billing/subscription/, POST .../change-plan/, POST .../cancel/, POST .../retry-payment/.

post/billing/subscription/change-plan/

Request

  • The document declares no server URL.
  • Auth: one of:
    • HTTP bearer
    • API key in cookie sessionid

Headers

X-Organization-Idstring

Selects the active organization for this request. Optional for callers that belong to exactly one active organization — the single membership is resolved implicitly. Required when the caller has two or more active memberships; omitting it in that case returns 400. If the header names an organization the caller is not an active member of, the server returns 403.

Request body

plan_slugstring required
billing_interval'monthly' | 'annual'
  • monthly - Monthly
  • annual - Annual
idempotency_keystring required
payment_tokenstring

Response

idinteger required
billing_state'free' | 'active' | 'grace' | 'restricted' | 'cancelled' required
  • free - Free
  • active - Active
  • grace - Grace period
  • restricted - Restricted
  • cancelled - Cancelled
billing_interval'monthly' | 'annual' required
  • monthly - Monthly
  • annual - Annual
payment_provider'mercadopago' | 'stripe' required
  • mercadopago - MercadoPago
  • stripe - Stripe
current_period_startstring date-time required
current_period_endstring date-time required
grace_period_ends_atstring date-time nullable required
pending_plan_slugstring required
pending_billing_interval'monthly' | 'annual' required
  • monthly - Monthly
  • annual - Annual
pending_plan_effective_atstring date-time nullable required

Changes

    • ▲

      removed the required property ///// from the response with the status

    • ○

      added the required property ///// to the response with the status

    • ●

      added the new appointment_types enum value to the ////// response property for the response status

    • ●

      added the new appointment_types enum value to the /////////// response property for the response status

    • ○

      removed the calendar_groups enum value from the ////// response property for the response status

    • ○

      removed the calendar_groups enum value from the /////////// response property for the response status