Pay: plans create
pay_plans_createCreate a subscription plan for recurring payments, defaulting to GBP and monthly billing, and sync with Stripe. Optionally map Apple product IDs for in-app purchases.
Instructions
Create a subscription plan (prompts for missing fields). Creates a subscription plan (a recurring price end users can buy), defaulting to gbp, monthly, type web and active, and once Stripe Connect is onboarded syncs a matching Stripe product and price. Nobody is charged until a user subscribes. Set the Apple product id to map an in-app purchase to it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name shown to subscribers | |
| type | No | Plan type (create default: web; update keeps the current value) | |
| amount | No | Recurring amount (decimal, in the plan's currency) | |
| currency | No | Currency code (create default: gbp; update keeps the current value) | |
| inactive | No | Mark the plan inactive (hidden from picker) | |
| interval | No | Billing interval: day, week, month, year (create default: month; update keeps the current value) | |
| plan_name | No | Internal plan identifier (e.g. "trial", "monthly", "annual") | |
| reference | No | Internal reference / external id (optional) | |
| tier_rank | No | Plan tier rank (update keeps the current value) | |
| trial_days | No | Trial period length in days (optional) | |
| description | No | Description | |
| product_name | No | Stripe product display name (optional, defaults to Name) | |
| interval_count | No | Number of intervals per billing cycle (create default: 1; update keeps the current value) | |
| apple_product_id | No | Apple App Store product id for this plan (optional) | |
| product_description | No | Stripe product description (optional) | |
| apple_subscription_group_id | No | Apple subscription group id (optional; auto-filled on first verify) |