create_subscription_plan
Creates recurring subscription plans for live vendors to sell memberships or recurring billing and returns a planId for subscription checkout.
Instructions
Create a recurring subscription plan (e.g. Pro at $12/month) for a live vendor, to sell subscriptions, memberships or recurring billing. Returns a planId for create_subscription_checkout. Renewals are charged to the stored card automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | Yes | ||
| name | Yes | Plan name shown to the customer, unique per vendor, e.g. "Pro" | |
| price | Yes | Price per period in major units, e.g. 12 = $12 | |
| period | No | Number of periodUOM per cycle, default 1 | |
| currency | Yes | ||
| vendorId | Yes | ||
| periodUOM | Yes | ||
| access_token | Yes | The vendor's paas.build access token for this env (PAAS_SANDBOX_ACCESS_TOKEN / PAAS_PROD_ACCESS_TOKEN, returned by go_live and emailed to the builder) |