TypeScript
import { Autumn } from 'autumn-js'; const autumn = new Autumn(); const { data, error } = await autumn.customers.updateBalances('customer_id', { balances: [{ balance: 0, feature_id: 'feature_id' }], });
{ "success": true }
Set the balance of a feature for a specific customer
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Show child attributes
The ID of the feature to update balance for.
The new balance value.