a week ago
Credit balance summary endpoint
You can now fetch a summary of a customer's credit balance with a single request to GET /v1/customers/{customer_id}/credits/balance. Previously, getting a total balance meant paging through a customer's credit blocks and adding them up yourself.
The response includes:
balance: the customer's current credit balancepending_payment_balance: credits that are pending paymentnext_expiry_dateandnext_expiry_balance: when the next credits expire, and how manycurrency: the currency of the balance
Learn more about credits in our docs.