Commet
  • Precios
Iniciar SesiónRegistrarse
Add seats POSTBulk set seats PUTGet all seat balances GETGet seat balance GETRemove seats DELETESet seats PUT
DocumentaciónRecursosConstruir con AIAPI ReferenceWebhooks

Remove seats

Remove seats from a customer's subscription. Takes effect at the end of the billing period.

DELETE
/seats

Remove seats from a customer's subscription. Takes effect at the end of the billing period.

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

customerId*string
featureCode*string
count*integer

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/seats" \  -H "Content-Type: application/json" \  -d '{    "customerId": "string",    "featureCode": "string",    "count": 1  }'
{  "success": true,  "data": {    "id": "string",    "customerId": "string",    "featureCode": "string",    "previousBalance": -9007199254740991,    "newBalance": -9007199254740991,    "ts": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z",    "object": "seat",    "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"  }}

Get seat balance GET

Get current balance for a specific seat type.

Set seats PUT

Set seats to an exact count.