v1
latestOpenAPI 3.1.02026-07-26580123.9 KBCreate a plan
Create a new plan for a specific product
post/{companyDomain}/products/{productId}/plans
Path parameters
companyDomainstring required
Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets
productIdinteger required
The unique identifier of the product in the Billsby platform
Request body
Response
200
Example response
{
"planId": 43,
"name": "Premium Plan",
"displayName": "The Premium Plan",
"description": "This plan is our premium experience",
"pricingModelType": 1,
"productId": 123,
"cycles": [
{
"cycleId": 2,
"planId": 2,
"pricingModel": {
"frequency": 4,
"frequencyType": 1,
"setupFeePrice": 15,
"setupFeePriceFormatted": "string",
"billingDateType": 1,
"proRateOption": 1
},
"visibility": "1"
}
],
"featureTags": [
"string"
],
"visibility": "public",
"redirectUrl": "home@mistimail.com",
"hasActiveSubscription": true,
"alertEmail": "accounts@mistimail.com"
}