Plans
Create a plan for a product
Changed onCreates a plan under the product from its composable pricing options[] (charges, billing cycle, tiers, limits, entitlements, trials, discounts). Options are validated for cross-option coherence and rejected with 400 if invalid; money fields are integer minor units.
post/v1/sdk/products/{productRef}/plans
Request
- Base URLhttps://api.solvapay.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
productRefstring required
Example:prd_1A2B3C4D
Product reference or ID
Request body
Response
Plan created successfully
Example response
{
"currency": "USD",
"currencySymbol": "$",
"description": "Best for teams getting started",
"isActive": true,
"name": "Starter",
"price": 2999,
"reference": "pln_1A2B3C4D",
"requiresPayment": true,
"status": "active",
"type": "recurring"
}Changes
- breaking
removed
subschema #4subschema #6subschema #8from the/request propertyoneOflist - info
added
subschema #4subschema #6to the/request propertyoneOflist
- breaking
- breaking
removed the enum value
top_upof the request property/// - info
added the new
draw_creditsenum value to the request property///
- breaking