Commet
  • Precios
Iniciar SesiónRegistrarse
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 regional pricing PUTSet plan visibility PUTUpdate plan feature PUTUpdate plan price PUTUpdate plan PUTUpsert regional prices PUT
DocumentaciónRecursosConstruir con AIAPI ReferenceWebhooks

Update plan feature

Update limits, overage, or enabled status of a feature on a plan.

PUT
/plans/{id}/features/{featureId}

Update limits, overage, or enabled status of a feature on a plan.

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Path Parameters

id*string
featureId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

enabled?boolean
includedAmount?integer
unlimited?boolean
overage?
creditsPerUnit?|null

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/plans/string/features/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "success": true,  "data": {    "planId": "string",    "featureId": "string",    "enabled": true,    "includedAmount": -9007199254740991,    "unlimited": true,    "overage": {      "enabled": true,      "unitPrice": -9007199254740991    },    "creditsPerUnit": -9007199254740991,    "pricingMode": "fixed",    "margin": -9007199254740991,    "object": "plan",    "livemode": true  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}

Set plan visibility PUT

Toggle a plan between public and private.

Update plan price PUT

Update an existing price on a plan.