POST
Open the payment provider's hosted purchase page

Authorizations

Authorization
string
header
required

Authorization: Bearer twk_<prefix>_<secret>.

The prefix is public and safe to log: it is what identifies which credential leaked. The secret is never logged, never returned after creation, and stored only as a SHA-256 hash.

Body

application/json
plan
string
required

The plan to buy, from /billing/plans.

Example:

"pro"

interval
enum<string>
default:month

Monthly, or annual at ten months' price. The plans that can be bought yearly are purchasable_annual_plans in /billing/entitlements.

Available options:
month,
year

Response

A redirect: url and expires_at.