Add a manual balance entry
Manually adjust the available balance on a commit or credit. This entry is appended to the commit ledger as a new event. Optionally include a description that provides the reasoning for the entry.
Use this endpoint to:
- Address incorrect usage burn-down caused by malformed usage or invalid config
- Decrease available balance to account for outages where usage may have not been tracked or sent to Metronome
- Issue credits to customers in the form of increased balance on existing commit or credit
Usage guidelines:
Manual ledger entries can be extremely useful for resolving discrepancies in Metronome. However, most corrections to inaccurate billings can be modified upstream of the commit, whether that is via contract editing, rate editing, or other actions that cause an invoice to be recalculated.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Add a manual ledger entry to a balance
ID of the customer whose balance is to be updated.
ID of the balance (commit or credit) to update.
ID of the segment to update.
Amount to add to the segment. A negative number will draw down from the balance.
Reason for the manual adjustment. This will be displayed in the ledger.
ID of the contract to update. Leave blank to update a customer level balance.
If using individually configured commits/credits attached to seat managed subscriptions, the amount to add for each seat. Must sum to total amount.
RFC 3339 timestamp indicating when the manual adjustment takes place. If not provided, it will default to the start of the segment.
Response
Success