putty
API ReferenceLedger

Page the caller's credit movements

The append-only ledger of every credit movement on the caller's account, newest first: grants, purchases, and spends. A balance is always the sum of these rows, so this page can explain any balance without trusting a stored counter. A `delta` of 0 is a real row and means a free action — a security review sub-run, a price or chain read — that was still worth recording, so the history shows what the user did rather than only what they paid for.

GET
/billing/ledger

The append-only ledger of every credit movement on the caller's account, newest first: grants, purchases, and spends. A balance is always the sum of these rows, so this page can explain any balance without trusting a stored counter.

A delta of 0 is a real row and means a free action — a security review sub-run, a price or chain read — that was still worth recording, so the history shows what the user did rather than only what they paid for.

Query Parameters

limit?integer

How many rows to return.

Range1 <= value <= 200
Default50
cursor?string

The nextCursor from the previous page.

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/billing/ledger"
{  "entries": [    {      "id": "string",      "delta": 0,      "balanceKind": "allowance",      "action": "string",      "ref": "string",      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": "string"}