Widget

Own ledger (end-user)

Returns newest-first transaction history for the end user encoded in the bearer token. The caller cannot select another externalUserId. Entries include charges, top-ups, allocations, refunds, and other posted balance movements. End-user responses redact base cost, markup, margin, tenant identifiers, and internal pricing configuration.

get/credits/me/ledger

Request

  • Base URL
    https://api.paywithlocus.com/api
  • URL
    https://api.paywithlocus.com/api/credits/me/ledger
  • Auth
    • HTTP bearer
    • or HTTP bearer and API key in header X-Locus-Publishable-Key

Query parameters

cursorstring

Opaque nextCursor from the previous page.

limitinteger

Number of transaction-history entries to return.

Headers

X-Locus-Session-Idstring

Required only when the end-user JWT carries sid. Send the original high-entropy session value; sid is its SHA-256 fingerprint. Ignored for secret-key authentication.

Response

End-user transaction history with internal pricing fields redacted.

successtrue required
nextCursorstring nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.