Commet
  • Pricing
Log InTry out
Add feature to plan POSTAdd price to plan POSTCreate plan POSTDelete plan price DELETEDelete plan DELETEDelete regional prices DELETEGet plan GETList plans GETRemove feature from plan DELETESet default price PUTSet plan visibility PUTUpdate plan feature PUTUpdate plan price PUTUpdate plan PUTUpsert regional prices PUT
DocumentationKnowledge BaseBuild with AIAPI ReferenceWebhooks

Update plan

Update a plan's name, description, visibility, or metadata.

Update plan price PUT

Update an existing price on a plan.

Upsert regional prices PUT

Create or update regional currency price overrides for a plan price.

PUT
/plans/{id}/manage

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

name?string
Length1 <= length
description?|
metadata?
isPublic?boolean

Response Body

application/json

curl -X PUT "https://commet.co/api/v1/plans/string/manage" \  -H "Content-Type: application/json" \  -d '{}'

application/json

application/json

application/json

Update a plan's name, description, visibility, or metadata.

Plan public ID

{
  "success": true,
  "data": {
    "object": "plan",
    "livemode": true,
    "id": "string",
    "name": "string",
    "code": "string",
    "description": "string",
    "consumptionModel": "string",
    "isPublic"












{
  "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"
  }
}
:
true
,
"isDefault": true,
"isFree": true,
"blockOnExhaustion": true,
"sortOrder": 0,
"planGroupId": "string",
"metadata": {
"property1": null,
"property2": null
},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
}