Indicates the billing credit balance for billing credits granted to a customer.
Attributes
- objectstring
String representing the object’s type. Objects of the same type share the same value.
- balancesarray of objects
The billing credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry.
- customerstringExpandable
The customer the balance is for.
- customer_
accountnullable stringPreview feature The account the balance is for.
- livemodeboolean
Has the value
trueif the object exists in live mode or the valuefalseif the object exists in test mode.
The Credit Balance Summary object
{ "object": "billing.credit_balance_summary", "balances": [ { "available_balance": { "monetary": { "currency": "usd", "value": 1000 }, "type": "monetary" }, "ledger_balance": { "monetary": { "currency": "usd", "value": 1000 }, "type": "monetary" } } ], "customer": "cus_QsEHa3GKweMwih", "livemode": false}Retrieves the credit balance summary for a customer.
Parameters
- customerstring
The customer for which to fetch credit balance summary.
- filterobjectRequired
The filter criteria for the credit balance summary.
- customer_
accountstringPreview feature The account for which to fetch credit balance summary.
Returns
Returns the credit balance summary.
Response
{ "object": "billing.credit_balance_summary", "balances": [ { "available_balance": { "monetary": { "currency": "usd", "value": 1000 }, "type": "monetary" }, "ledger_balance": { "monetary": { "currency": "usd", "value": 1000 }, "type": "monetary" } } ], "customer": "cus_QsEHa3GKweMwih", "livemode": false}