LedgerDouble-entry ledger journal (§13.1, read-only)

Double-entry ledger journal (§13.1, read-only)

Immutable entries with postings (an entry's postings sum to 0). A user sees only entries that touch their addresses; an admin sees the entire Vault. Sorted by postedAt DESC, id DESC; keyset pagination.

curl -X GET "https://policy-engine-rest.ezig.workers.dev/api/v1/vaults/demo_vault/ledger/entries?from=example_string&to=example_string&token=example_string&tokenId=example_string&addressId=123%20Main%20St&operationType=deposit&operationId=example_string&entryType=example_string&limit=42&cursor=example_string" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "items": [
    {
      "id": "example_string",
      "vaultId": "example_string",
      "entryType": "example_string",
      "reference": "example_string",
      "description": "example_string",
      "operationType": "example_string",
      "operationId": "example_string",
      "token": {},
      "effectiveAt": "example_string",
      "postedAt": "example_string",
      "createdAt": "example_string",
      "postings": [
        {
          "id": "example_string",
          "accountId": "example_string",
          "amount": "example_string",
          "amountDecimal": "example_string",
          "direction": "example_string",
          "token": {},
          "account": {}
        }
      ]
    }
  ],
  "nextCursor": "example_string"
}
GET
/api/v1/vaults/{code}/ledger/entries
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Session token. Mobile/services. The web uses a cookie.

Session token. Mobile/services. The web uses a cookie.
API Key (cookie: session_token)
session_tokenstring
Required

API key (sent in cookie)

path
codestring
Required

Unique Vault code (slug)

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Session token. Mobile/services. The web uses a cookie.

path
parameterstring
Required

API Key for authentication. Provide your API key in the cookie.

Path Parameters

codestring
Required

Unique Vault code (slug)

Example:
demo_vault

Query Parameters

operationTypestring
Allowed values:deposittransfer

Responses

itemsarray
Required
nextCursorstring
Required