Herald
OpenapiBilling

Delete a Credit Bucket (DELETE).

204 on success; 409 `bucket_in_use` with `{ code, activeSubscriptions, holdersWithBalance, ruleReferences, historyReferences }` when in-flight subscriptions, residual balances, rule references or history exist.

DELETE
/api/bill/credit-buckets/{bucketId}

204 on success; 409 bucket_in_use with { code, activeSubscriptions, holdersWithBalance, ruleReferences, historyReferences } when in-flight subscriptions, residual balances, rule references or history exist.

Authorization

bearer_auth
headerAuthorizationBearer <token>

Path Parameters

bucketId*string

Credit Bucket ID

Formatuuid

Response Body

Credit bucket deleted

Example Request
curl -X DELETE 'https://example.com/api/bill/credit-buckets/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
Empty