POST
/v1/tools/choose_planfreeChoose a plan
A Stripe page where a paid plan is started, or changed to the other one: it starts at once, and the month already paid is kept until it runs out. The plan starts when it is paid there. Free is every workspace without a paid plan, never bought: ending a plan on manage_plan returns to it. Free to ask; the plan's price is on the page.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
plan | one of | Required | pro: Pro, $20 a month for $25 of work; max: Max, $100 a month for $140 of work, unused work carries over one monthpromax |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/choose_plan \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{"plan":"pro"}'Answer
{
"ok": true,
"result": {
"…": "…"
}
}What result holds is said above.
Every call can also answer an error: what comes back. Try it with your key from Account.