Idempotency Supported
This API call can be used to set the promotional credits balance of a customer. Learn more about Promotional Credits.
For example,
- If a customer has a credit balance of $10 and if you would like to set the balance to $100, you could pass the amount as $100.
- If a customer has a credit balance of $10 and if you would like to set the balance to $5, you could pass the amount as $5.
- If a customer has a credit balance of $10 and if you would like to clear the balance, you could pass the amount as $0.
Sample Request
Sample Result[JSON]
URL Format
POST https://[site].chargebee.com/api/v2/promotional_credits/set
Input Parameters
Returns
Customer object
Resource object representing customer
Promotional credit object
Resource object representing promotional_credit