API Reference
Treasury
Accounts, expected payments, and returns.
GET
/v1/accountsList accountsReturns all accounts with available and pending balances. Every balance movement is attributable to a payment, return, or conversion.
GET
/v1/accounts/{id}Retrieve an accountPOST
/v1/expected_paymentsCreate an expected paymentDeclares an incoming payment for automatic matching on arrival.
| Parameter | Type | Required | Description |
|---|---|---|---|
account |
string | yes | Receiving account, oz_acct_ |
amount |
object | yes | value, currency, optional tolerance (fraction) |
counterparty_name |
string | yes | Expected sender |
reference |
string | yes | Invoice reference to match against |
expires_at |
string | no | RFC 3339; unmatched declarations expire |
GET
/v1/expected_paymentsList expected paymentsQuery parameters: status (open, matched, expired), account, limit, cursor.
GET
/v1/returns/{id}Retrieve a returnGET
/v1/returnsList returnsReturns reference their original payment. Lifecycle events: return.created, return.settled, return.returned.