WalletD developers
Accounts

Balance at a moment in effective time

Reconstructs the balance as of a moment in *effective* time, not wall-clock insert time.

GET/v1/ledgers/{ledgerId}/accounts/{accountId}/balance-at

Reconstructs the balance as of a moment in effective time, not wall-clock insert time. Because every transaction carries a caller-suppliable effective_at alongside its immutable created_at, a backdated posting inserted today changes what this endpoint answers for a date last month, which is exactly what a bitemporal ledger is for.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

ledgerId*string
Formatuuid
accountId*string
Formatuuid

Query Parameters

at*string
Formatdate-time

Response Body

application/json

application/problem+json

curl -X GET "https://example.com/v1/ledgers/497f6eca-6276-4993-bfeb-53cbbbba6f08/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08/balance-at?at=2019-08-24T14%3A15%3A22Z"
{  "balance": 0,  "at": "2019-08-24T14:15:22Z"}