Balance
available_micro is the number to check before a run. Anything currently held
by an in-flight run has already left balance_micro, so the available figure
never double-counts a run you have not settled yet.
Promotional credit is spent before cash, and it expires. An expired promo drops
out of the balance automatically.
This is also the fastest check an agent can make after a 402 insufficient_funds: it tells you exactly how much is there so you can tell a
human what to top up.
Activities
Entry kinds
A completed run leaves three rows: one
debit_hold, one debit_capture for
the actual cost, and one hold_release for the difference. A run that failed,
timed out or was stopped leaves a debit_hold and a hold_release for the
whole amount, and no capture.
Errors
How pricing works
Rates, totals and ceilings, in plain terms.