Skip to content

Documentation

Credit ledger

GET/v1/ledgerAccount

The account's latest 100 credit movements, newest first: monthly grants, top-ups, QR code runs and refunds. Free to call.

Example request

Terminal
curl "https://snip.link/v1/ledger" \
  -H "Authorization: Bearer $SNIP_KEY"

Example response

Response
{
  "entries": [
    {
      "id": "e1a2b3c4-5d6e-4f70-8a9b-0c1d2e3f4a5b",
      "kind": "grant",
      "delta": 10000,
      "note": "Monthly credits",
      "created_at": "2026-10-01T00:00:00.000Z"
    }
  ]
}

Response fields

FieldTypeDescription
entriesobject[]
entries[].idstring
entries[].kindstringgrant, topup, usage, refund or adjustment.
entries[].deltaintegerCredits added (positive) or spent (negative).
entries[].notestring, null
entries[].created_atstring

Errors

StatusMeaning
401The API key is missing, malformed or revoked.
429Either the key exceeded its requests-per-second limit (honor Retry-After), or a daily or plan quota is used up (details.reason).

Back to getting started