Create a new plan with the provided details. Note: This endpoint is restricted for internal use only.
The API key to access the admin API
"Premium Plan"
Unique code for the plan
"iqraa_starter_monthly"
Billing interval
yearly, monthly "monthly"
Currency code
"USD"
Plan amount
x >= 099.99
Trial period in days
x >= 014
Grace period in days after subscription expiry
x >= 07
Add multiple billable metrics in plan
[
{
"billable_metric_id": "1a901a90-1a90-1a90-1a90-1a901a901a94",
"charge_model": "volume",
"invoiceable": true,
"pay_in_advance": false,
"properties": {
"volume_ranges": [
{
"from_value": 0,
"to_value": 100,
"flat_amount": "0",
"per_unit_amount": "0"
},
{
"from_value": 101,
"to_value": null,
"flat_amount": "0",
"per_unit_amount": "0.5"
}
]
}
}
]The plan has been successfully created
"Premium Plan"
Unique code for the plan
"iqraa_starter_monthly"
Billing interval
yearly, monthly "monthly"
Currency code
"USD"
Plan amount
x >= 099.99
Trial period in days
x >= 014
Grace period in days after subscription expiry
x >= 07
Add multiple billable metrics in plan
[
{
"billable_metric_id": "1a901a90-1a90-1a90-1a90-1a901a901a94",
"charge_model": "volume",
"invoiceable": true,
"pay_in_advance": false,
"properties": {
"volume_ranges": [
{
"from_value": 0,
"to_value": 100,
"flat_amount": "0",
"per_unit_amount": "0"
},
{
"from_value": 101,
"to_value": null,
"flat_amount": "0",
"per_unit_amount": "0.5"
}
]
}
}
]