Create subscription product
API Refs
- Staging: Create subscription product
Request body
Name | Type | Description | Required |
---|---|---|---|
name | string | Display name for the product | yes |
description | string | Product description | no |
plans | array | Array of pricing plans for this product | yes |
Plan object
Name | Type | Description | Required |
---|---|---|---|
name | string | Display name for the plan | yes |
amount | number | Price in cents (e.g., 1000 = $10.00) | yes |
currency | string | Three-letter ISO currency code (e.g., "usd") | yes |
interval | string | Billing interval: month, year, week, or day | yes |
interval_count | number | Number of intervals between billings (default: 1) | no |
trial_days | number | Default trial period in days | no |
Response
Returns the created product with its associated pricing plans, including generated IDs that can be used for creating subscriptions.
Description
This endpoint creates a new subscription product with one or more pricing plans. Products represent what you're selling (e.g., "Premium Insurance Coverage"), while plans define how you charge for it (e.g., "$100/month" or "$1000/year"). You can create multiple plans for a single product to offer different billing intervals or pricing tiers.
Updated 3 days ago