Adjust balance
Adjust a subscription's balance or credits by a signed amount. Positive adds, negative subtracts.
Adjust a subscription's balance or credits by a signed amount. Positive adds, negative subtracts.
application/json
TypeScript Definitions
Use the request body type in TypeScript.
"balance""credits" | "balance"application/json
application/json
curl -X POST "https://commet.co/api/v1/subscriptions/string/balance/adjust" \ -H "Content-Type: application/json" \ -d '{ "amount": 0 }'application/json
Signed integer amount to adjust. Positive adds, negative subtracts.
Reason for the adjustment
Type of balance to adjust
Adjust a subscription's balance or credits by a signed amount. Positive adds, negative subtracts.
Subscription public ID
{
"success": true,
"data": {
"object": "subscription",
"livemode": true,
"amount": 0,
"newBalance": 0,
"reason": "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"
}
}