Posted balance on counterparties
Posted balance on counterparties
A counterparty's balance now includes posted: posted credits minus posted debits, in cents. It changes only when a transaction posts, at the transaction's postedAt, so it is the number to reconcile the Posted transactions from GET /api/v1/counterparties/{counterpartyId}/transactions against. A single query returns at most the newest 5,000 matching transactions, so read a longer history in filter[effectiveAtFrom] / filter[effectiveAtTo] windows.
pending and available are unchanged:
| Field | Description |
|---|---|
pending | Incoming credits that have not posted yet |
available | Posted credits minus every debit, posted or in flight. What can be paid out now |
posted | Posted credits minus posted debits |
posted - available is the debits still in flight. A payout reduces available as soon as it is created, and reduces posted when it completes.
posted is on every counterparty response: GET /api/v1/counterparties, GET /api/v1/counterparties/{counterpartyId}, and the create and update responses.