LedgerЖурнал double-entry ledger (§13.1, read-only)

Журнал double-entry ledger (§13.1, read-only)

Immutable записи с postings (сумма постингов entry = 0). user видит только entries, затрагивающие его адреса; admin — весь Vault. Сортировка postedAt DESC, id DESC; keyset-пагинация.

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

better-auth session token. Мобилка/сервисы. Веб использует cookie.

better-auth session token. Мобилка/сервисы. Веб использует cookie.
API Key (cookie: better-auth.session_token)
path
codestring
Required

Уникальный код Vault'а (slug)

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. better-auth session token. Мобилка/сервисы. Веб использует cookie.

path
parameterstring
Required

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

Path Parameters

codestring
Required

Уникальный код Vault'а (slug)

Example:
demo_vault

Query Parameters

operationTypestring
Allowed values:deposittransfer

Responses

itemsarray
Required
nextCursorstring
Required