Plans
Update a plan for a product
Updates a plan under the product. Unfinished pricing fields are stripped from SDK input, and unsupported plan types fall back to "recurring".
put/v1/sdk/products/{productRef}/plans/{planRef}
Path parameters
productRefstring required
Example:prd_1A2B3C4D
Product reference or ID
planRefstring required
Example:pln_1A2B3C4D
Plan reference or ID
Request body
Response
Plan updated successfully
Example response
{
"billingCycle": "monthly",
"billingModel": "pre-paid",
"creditsPerUnit": 1,
"currency": "USD",
"currencySymbol": "$",
"description": "Best for teams getting started",
"freeUnits": 100,
"isActive": true,
"limit": 10000,
"measures": "requests",
"meterRef": "mtr_1A2B3C4D",
"name": "Starter",
"price": 2999,
"pricingOptions": [
{
"basePrice": 1999,
"currency": "USD",
"default": true,
"price": 2999,
"setupFee": 500
}
],
"reference": "pln_1A2B3C4D",
"requiresPayment": true,
"setupFee": 500,
"status": "active",
"trialDays": 14,
"type": "recurring"
}