Add price to plan
Add a billing interval price to a plan with optional trial days and included balance/credits.
Add a billing interval price to a plan with optional trial days and included balance/credits.
application/json
TypeScript Definitions
Use the request body type in TypeScript.
"weekly" | "monthly" | "quarterly" | "yearly" | "one_time"0 <= value0 <= valueapplication/json
curl -X POST "https://commet.co/api/v1/plans/string/prices" \ -H "Content-Type: application/json" \ -d '{ "billingInterval": "weekly", "price": 0 }'application/json
application/json
Price in rate scale (10000 = $1.00)
Add a billing interval price to a plan with optional trial days and included balance/credits.
Plan public ID
{
"success": true,
"data": {
"object": "plan",
"livemode": true,
"id": "string",
"planId": "string",
"billingInterval": "string",
"price": 0,
"isDefault": true,
"trialDays"
{
"success": false,
"error": {
"type": "validation_error",
"code": "string",
"message": "string",
"doc_url": "string",
"param": "string"
}
}{
"success": false,
"error": {
"type": "validation_error",
"code": "string",
"message": "string",
"doc_url": "string",
"param": "string"
}
}