Transfer credits
Transfers credits from one customer to another.
A credit transfer moves a specified amount from one customer's wallet to another. This is typically used when merging duplicate customer accounts or redistributing loyalty balances. Both the deduction from the original customer and the addition to the new customer are recorded in the credit history.
The credit_type_id parameter is required. If currency_id is not provided, the project-default currency is used. Returns HTTP 204 on success.
Related: GET /credit-history, GET /customers
⚠️ 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.
Headers
The unique ID of the language code by ISO 639-1.
Request body
Example request
{
"original_customer_id": "8ea2591121e636086a4a9c0992",
"new_customer_id": "84b9167cc2f01ff007d98e1633",
"amount": 100,
"credit_type_id": "8adcb83164fa7e12668035d43e",
"currency_id": "8bed991c68a470e7aaeffbf048",
"note": "Merging customer account"
}Response
No Content