6 image models · capabilities and pricing in one placeSee pricing →
API documentationList account ledger

OGA DEVELOPER CENTER

API v1 · Last verified 2026-08-15

List account ledger

List immutable ledger events that changed the account balance.

GET/api/v1/account/ledger
Browse common endpoints

Overview

Ledger events reconcile recharges, holds, settlements, and refunds. Use stable event types and amount fields; do not infer business state from display copy.

Authentication: Bearer API key

Request

Query parameters

NameTypeDescription
pageintegerPage number, starting at 1.
page_sizeintegerItems per page, 1–100; default 20.
event_typestringFilter by stable ledger event type.

Response

JSON endpoints use the standard response envelope. HTTP status represents the request outcome; business errors are not disguised as HTTP 200.

HTTPMeaning
200Request succeeded
400Invalid business parameter or filter
401Missing or invalid API key
403API key disabled or access forbidden
422Request-structure validation failed
500Internal service error

Complete success example (optional fields vary by state)

{
  "code": 0,
  "message": "success",
  "data": {
    "items": [],
    "total": 0,
    "page": 1,
    "page_size": 20
  },
  "request_id": "8f25b42f-2ed1-4ad7-99de-61d7f779bc7b",
  "timestamp": "2026-08-10T00:00:00Z"
}

Important boundaries

  • This read-only query never changes balance or task state.

Open the machine-readable OpenAPI

Code & API explorer

GET · /api/v1/account/ledger

curl -X GET "$OGA_BASE_URL/api/v1/account/ledger?page=1&page_size=20&event_type=settlement" \
  -H "Authorization: Bearer <YOUR_OGA_API_KEY>" \
  -H "X-Request-Id: <UUID_V4>" \
  -H "Accept-Language: en-US"