Skip to content

A statement for a period, as CSV

GET
/v1/statement
curl --request GET \
--url 'https://api.sotirea.com/v1/statement?from=example&to=example' \
--header 'Authorization: Bearer <token>'

For each asset: the opening balance, every movement made final in the period (received, sent, network_fee, sweep) and the closing balance, read from the ledger in one snapshot, so opening plus the movements is the closing balance exactly. Columns: row (opening, movement or closing), network, chain_id, asset, symbol, recognised, decimals, at, kind, account, amount, amount_base_units, tx_hash, counterparty, reference (the payment’s id), posting_id, journal_id. Amounts are exact decimals beside their base units; times are UTC. A period is at most 366 days and 100,000 movements.

from
required
string

The first day, YYYY-MM-DD, in UTC.

to
required
string

The last day, YYYY-MM-DD, included.

vault
integer

Only this vault’s; without it, the organisation’s vaults and gas pools.

The file itself, as an attachment.

Media typetext/csv
string format: binary

Refused or failed, in words a person can act on.

Media typeapplication/json
object
error
required
object
code
required
string
fields
object
key
additional properties
string
message
required
string
meta
object
request_id

Quote it when asking about a request.

string
success
required

Example

{
"success": false
}