Credits
Credit reduction
Endpoint for reducing credits on the customer's account.
A credit reduction creates a negative credit record, decreasing the customer's wallet balance. Use this endpoint to apply a credit spend, expiration, or manual correction. The response returns the ID of the newly created reduction record.
If credit_type_id is not provided, the project-default credit type is used. The note field is optional and is recorded in the credit history audit log, visible via GET /credit-history.
⚠️ This action method is disabled by default. Please contact the CareCloud administrator to allow usage of this method. ⚠️ Action methods are available only in the Enterprise interface.
post/credits/actions/reduce-credits
Headers
Accept-Languagestring
The unique ID of the language code by ISO 639-1.
Request body
Example request
{
"amount": 100,
"customer_id": "8ea2591121e636086a4a9c0992",
"partner_id": "86e05affc7a7abefcd513ab400",
"credit_type_id": "86e05affc7a7abefcd513ab400",
"currency_id": "8bed991c68a470e7aaeffbf048",
"note": "Credit expiration"
}Response
Created
Example response
{
"data": {
"credit_id": "80c2c110a50db9f8134b6b72b3"
}
}