Billing
Credit Transactions
Paginated credit ledger — every deduction and grant/top-up with its action type
GET
/
v1
/
billing
/
transactions
Credit Transactions
curl --request GET \
--url https://api.example.com/v1/billing/transactionsimport requests
url = "https://api.example.com/v1/billing/transactions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/billing/transactions', 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/v1/billing/transactions",
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/v1/billing/transactions"
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/v1/billing/transactions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/billing/transactions")
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_bodyThe company-scoped credit ledger: one row per credit movement — deductions (negative
amount) from billable operations and grants/top-ups (positive amount) — newest first. Powers the dashboard billing usage table.
Query parameters
| Param | Type | Default | Notes |
|---|---|---|---|
limit | number | 20 | Page size, clamped to 1–100. |
offset | number | 0 | Rows to skip (for pagination). |
Response
{
"transactions": [
{
"id": "txn_…",
"amount": -40,
"action_type": "browser.signup",
"reference_id": "…",
"metadata": { "service": "figma.com" },
"created_at": "2026-06-05T12:00:00.000Z"
},
{
"id": "txn_…",
"amount": 500,
"action_type": "topup",
"reference_id": "medium",
"metadata": null,
"created_at": "2026-06-04T09:30:00.000Z"
}
],
"total": 128,
"limit": 20,
"offset": 0
}
amount is negative for charges and positive for credits added. total is the full count for pagination. For a rolled-up usage summary instead of the raw ledger, see Usage.⌘I
Credit Transactions
curl --request GET \
--url https://api.example.com/v1/billing/transactionsimport requests
url = "https://api.example.com/v1/billing/transactions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/billing/transactions', 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/v1/billing/transactions",
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/v1/billing/transactions"
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/v1/billing/transactions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/billing/transactions")
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