Skip to content

Credit history

Lists every balance change in reverse chronological order. Each charge entry references its corresponding query_id in ref_id.

GEThttps://geo-api.geoeval.com/v1/credits/transactions

Requires an API key in the Authorization header. Try it below

Query parameters

  • limitintegeroptional

    Results per page. Default 50, max 200.

  • beforestringoptional

    Return items older than this ID; pass next from the previous page.

Example request

curl "https://geo-api.geoeval.com/v1/credits/transactions?limit=20" \
-H "Authorization: Bearer $GEOEVAL_API_KEY"

Response 200

  • transactionsobject[]

    Balance ledger entries, newest first.

    Fields of transactions
    • idstring

      Transaction ID.

    • kindstring

      Entry type: topup (credit purchase), charge (query billing), or adjust (support adjustment).

    • amountnumber

      Signed credit delta.

    • balance_afternumber

      Balance after this transaction.

    • ref_idstring | null

      query_id for charge, top-up ID for topup, or null for adjust.

    • notestring

      Note on an adjustment; empty otherwise.

    • created_atinteger (ms)

      Transaction timestamp.

  • nextstring | null

    Cursor for the next page; pass as the before parameter. null on the last page.

Example response

{
"transactions": [
{
"id": "01a22525-1a2b-7c3d-8e4f-5a6b7c8d9e0f",
"kind": "charge",
"amount": -3,
"balance_after": 97,
"ref_id": "01a22524-9c1e-7a3b-8f21-6b0d4c9e1a27",
"note": "",
"created_at": 1798000095000
}
],
"next": null
}

Errors

All endpoints may also return 400, 401, 403, or 500. See Errors.