curl --request POST \
--url https://api.example.com/v1/sdk/products/{productRef}/plans \
--header 'Content-Type: application/json' \
--data '
{
"name": "Basic Plan",
"accessExpiryDays": 30,
"basePrice": 29.99,
"billingCycle": "monthly",
"billingModel": "pre-paid",
"currency": "USD",
"default": false,
"description": "Basic recurring plan with monthly billing",
"features": {
"apiAccess": true,
"prioritySupport": false
},
"freeUnits": 100,
"isFreeTier": false,
"limits": {
"maxTransactions": 1000
},
"maxActiveUsers": 10,
"metadata": {},
"price": 29.99,
"pricePerUnit": 0.01,
"quota": 10000,
"requiresPayment": true,
"rolloverUnusedUnits": false,
"setupFee": 0,
"status": "active",
"trialDays": 7,
"type": "recurring",
"unit": "request"
}
'curl --request POST \
--url https://api.example.com/v1/sdk/products/{productRef}/plans \
--header 'Content-Type: application/json' \
--data '
{
"name": "Basic Plan",
"accessExpiryDays": 30,
"basePrice": 29.99,
"billingCycle": "monthly",
"billingModel": "pre-paid",
"currency": "USD",
"default": false,
"description": "Basic recurring plan with monthly billing",
"features": {
"apiAccess": true,
"prioritySupport": false
},
"freeUnits": 100,
"isFreeTier": false,
"limits": {
"maxTransactions": 1000
},
"maxActiveUsers": 10,
"metadata": {},
"price": 29.99,
"pricePerUnit": 0.01,
"quota": 10000,
"requiresPayment": true,
"rolloverUnusedUnits": false,
"setupFee": 0,
"status": "active",
"trialDays": 7,
"type": "recurring",
"unit": "request"
}
'Product reference or ID
Plan name
"Basic Plan"
Access expiry in days
30
Base price for hybrid plans
29.99
Billing cycle (required for recurring/hybrid, optional for post-paid usage-based)
weekly, monthly, quarterly, yearly, custom "monthly"
Billing model for usage-based plans
pre-paid, post-paid "pre-paid"
Currency code (ISO 4217)
USD, EUR, GBP, SEK, NOK, DKK, CAD, AUD, JPY, CHF, PLN, CZK, HUF, RON, BGN, HRK, RSD, MKD, BAM, ALL, ISK, TRY, RUB, UAH, BYN, MDL, GEL, AMD, AZN, KZT, KGS, TJS, TMT, UZS, MNT, CNY, KRW, THB, VND, IDR, MYR, SGD, PHP, INR, PKR, BDT, LKR, NPR, AFN, IRR, IQD, JOD, KWD, LBP, OMR, QAR, SAR, SYP, AED, YER, ILS, EGP, MAD, TND, DZD, LYD, SDG, ETB, KES, TZS, UGX, RWF, BIF, DJF, SOS, ERN, SLL, GMD, GNF, CVE, STN, AOA, ZAR, BWP, SZL, LSL, NAD, ZMW, ZWL, MZN, MWK, MGA, MUR, SCR, KMF, MVR "USD"
Whether this is the default plan
false
Plan description
"Basic recurring plan with monthly billing"
Plan features (generic key/value, shape is provider-defined)
{
"apiAccess": true,
"prioritySupport": false
}Number of free units included
100
Whether this is a free tier plan
false
Usage limits (shape varies by plan type)
{ "maxTransactions": 1000 }Maximum number of active users
10
Additional metadata
Plan price
29.99
Price per unit for usage-based plans
0.01
Usage quota for usage-based plans
10000
Whether payment is required
true
Whether to rollover unused units
false
Setup fee
0
Plan status
active, inactive, archived "active"
Trial days
7
Plan type
recurring, usage-based, hybrid, one-time "recurring"
Unit name for usage-based plans
"request"