Start the Agent Simulations plan on the saved card
Subscribes the organization to the monthly Agent Simulations plan on its saved card, adding 1,000 credits once the first invoice is paid. When trialAvailable, the first month is free: a $0 invoice still adds the credits and the card is first charged at trialEnd. Starting a plan that is set to cancel at period end resumes it instead. A requires_action result carries a client secret for Stripe.js to finish card authentication, after which POST /current/plan/confirm activates the plan. A new plan starts under the current Agent Simulation Terms: while the organization has not accepted them (GET /current/plan says, in terms), the start carries terms (version, sha256 and the consent sentence shown), recorded as the caller’s acceptance, else 409 terms_required (409 terms_stale when the page showed an older version); and it carries renewal, the renewal disclosure shown above the button, recorded as the caller’s consent before the plan starts (409 disclosure_required without it). Staff working in an organization through the switcher are never asked and nothing is recorded for them. Organization admins only.
Authorizations
Body
Response
Default Response
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$