List Ledger Entries
curl --request GET \
--url https://api.example.com/billing/ledgerimport requests
url = "https://api.example.com/billing/ledger"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/billing/ledger', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/billing/ledger",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/billing/ledger"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/billing/ledger")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/billing/ledger")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"entries[].delta": 123,
"entries[].reason": "<string>",
"entries[].model_id": {},
"entries[].balance_after": {},
"entries[].auth_mode": {},
"has_more": true
}Billing
List Ledger Entries
Paginated credit-ledger history for the active team.
GET
/
billing
/
ledger
List Ledger Entries
curl --request GET \
--url https://api.example.com/billing/ledgerimport requests
url = "https://api.example.com/billing/ledger"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/billing/ledger', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/billing/ledger",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/billing/ledger"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/billing/ledger")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/billing/ledger")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"entries[].delta": 123,
"entries[].reason": "<string>",
"entries[].model_id": {},
"entries[].balance_after": {},
"entries[].auth_mode": {},
"has_more": true
}Returns the team’s credit transactions in reverse-chronological order. Every debit (image/video generation, render) and credit (monthly reset, refund, coupon claim, top-up) is a row. Useful for building a usage dashboard, reconciling end-of-month spend, or surfacing “why did my balance drop?” to the user.
Scoped to the team selected by the caller’s session / API key. RLS already enforces team membership.
Query Parameters
string (ISO-8601)
Return rows strictly older than this timestamp. Use the
created_at
of the last row on the previous page as the cursor.Response
200
{
"entries": [
{
"id": 12345,
"delta": -8,
"reason": "image_gen",
"model_id": "fal:nano-banana-pro",
"user_id": "user-uuid",
"route": "/generate/image",
"balance_after": 342,
"metadata": { "job_id": "job-uuid" },
"created_at": "2026-04-21T10:15:00Z",
"auth_mode": "jwt",
"api_key_id": null
}
],
"has_more": true
}
Fields
integer
Signed credit change. Negative for spends, positive for grants /
refunds / top-ups.
string
One of
image_gen, video_gen, render, monthly_reset,
initial_grant, plan_change_topup, refund, admin_grant,
coupon_claim.string | null
Model that incurred the debit, for generation rows.
null for
non-generation reasons.integer | null
Monthly-plan balance immediately after this row was written.
string | null
api_key (agent / server-to-server), jwt (dashboard session), or
null (system-issued row like monthly_reset).boolean
true when more rows exist older than the last returned row. Page
again with ?before=<last_created_at>.Example
cURL
# First page
curl https://api.supapost.so/billing/ledger \
-H "Authorization: Bearer YOUR_API_KEY"
# Next page
curl "https://api.supapost.so/billing/ledger?before=2026-04-21T10:15:00Z" \
-H "Authorization: Bearer YOUR_API_KEY"