billing

Switch subscription plan (free plans switch immediately; paid plans return an approval_url)

post/api/v1/billing/plan

Request

  • Base URL: https://www.callagent.pro
  • URL: https://www.callagent.pro/api/v1/billing/plan
  • Auth: HTTP bearer

Request body

plan_idinteger required

Response

Either the plan switched outright (switched true, e.g. a downgrade needing no payment) or a payment is required first, in which case approval_url is present and the plan changes only after the human approves. Exactly one of the two fields is present.

okboolean
switchedboolean

Present and true when the change took effect immediately

approval_urlstring uri

Present when the human must approve a payment first

Changes

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