Create add-on
Create a new add-on linked to a feature. Each feature can only be assigned to one add-on.
Create a new add-on linked to a feature. Each feature can only be assigned to one add-on.
ApiKeyAuth In: header
application/json
TypeScript Definitions
Use the request body type in TypeScript.
1 <= length <= 100length <= 2550 <= value1 <= length"boolean" | "metered" | "credits" | "balance"0 <= value0 <= value0 <= valueapplication/json
curl -X POST "https://commet.co/api/v1/addons" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "basePrice": 0, "featureId": "string", "consumptionModel": "boolean" }'application/json
application/json
application/json
Feature public ID or code
Create a new add-on linked to a feature. Each feature can only be assigned to one add-on.
{
"success": true,
"data": {
"object": "addon",
"livemode": true,
"id": "string",
"name": "string",
"slug": "string",
"description": "string",
"basePrice": 0,
"consumptionModel"
{
"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"
}
}{
"success": false,
"error": {
"type": "validation_error",
"code": "string",
"message": "string",
"doc_url": "string",
"param": "string"
}
}