Skip to main content

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

The append-only ledger, newest first. Every movement of money is a row here, and nothing is ever edited or deleted.

Entry kinds

Do not sum these as signed amounts. debit_hold is what leaves the balance when a run starts; debit_capture records the charge but does not itself move the balance again, and hold_release returns the unused remainder. Treating hold and capture as two separate debits double-counts every run. Read balance_after_micro on each row instead of deriving a running total.
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.