List account transactions
curl --request GET \
--url https://api.ornn.com/v1/ledger/transactions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ornn.com/v1/ledger/transactions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ornn.com/v1/ledger/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.ornn.com/v1/ledger/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.ornn.com/v1/ledger/transactions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.ornn.com/v1/ledger/transactions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ornn.com/v1/ledger/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"next_cursor": "",
"transactions": [
{
"ledger_transaction_id": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
"event": {
"event_type": "credit_applied",
"source_id": "example-source",
"organization_id": "22222222-2222-4222-8222-222222222222",
"invoice_id": null,
"payment_intent_id": "",
"reservation_id": "11111111-1111-4111-8111-111111111111",
"occurred_at": "2026-10-14T12:00:00Z",
"reverses_transaction_id": null
},
"recorded_at": "2026-10-14T12:00:01Z",
"postings": [
{
"account": {
"organization_id": "22222222-2222-4222-8222-222222222222",
"account_role": "ORNN_CREDIT",
"currency": "usd"
},
"amount_cents": 2500
}
]
}
]
}{
"detail": {
"code": "invalid_cursor",
"message": "The cursor is invalid. Start again without a cursor."
}
}{
"code": "<string>",
"detail": "<string>"
}{
"code": "<string>",
"detail": "<string>"
}{
"code": "<string>",
"detail": "<string>"
}List account transactions
Returns a page of your organization’s account transactions, newest recorded first, with only your own postings. Events recorded for another party show only their type, time, and reservation. Pass next_cursor as cursor with the same filters to read older entries. An empty next_cursor marks the end. Omit cursor to restart from the newest entries. Pages are not a snapshot across requests. Requires organization membership.
GET
/
v1
/
ledger
/
transactions
List account transactions
curl --request GET \
--url https://api.ornn.com/v1/ledger/transactions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ornn.com/v1/ledger/transactions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ornn.com/v1/ledger/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.ornn.com/v1/ledger/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.ornn.com/v1/ledger/transactions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.ornn.com/v1/ledger/transactions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ornn.com/v1/ledger/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"next_cursor": "",
"transactions": [
{
"ledger_transaction_id": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
"event": {
"event_type": "credit_applied",
"source_id": "example-source",
"organization_id": "22222222-2222-4222-8222-222222222222",
"invoice_id": null,
"payment_intent_id": "",
"reservation_id": "11111111-1111-4111-8111-111111111111",
"occurred_at": "2026-10-14T12:00:00Z",
"reverses_transaction_id": null
},
"recorded_at": "2026-10-14T12:00:01Z",
"postings": [
{
"account": {
"organization_id": "22222222-2222-4222-8222-222222222222",
"account_role": "ORNN_CREDIT",
"currency": "usd"
},
"amount_cents": 2500
}
]
}
]
}{
"detail": {
"code": "invalid_cursor",
"message": "The cursor is invalid. Start again without a cursor."
}
}{
"code": "<string>",
"detail": "<string>"
}{
"code": "<string>",
"detail": "<string>"
}{
"code": "<string>",
"detail": "<string>"
}Read and parse each complete JSON page before saving its
next_cursor. If the
connection fails, the JSON is incomplete, or the request returns 502 or 503,
discard that page and retry the same cursor with bounded exponential backoff. Do not
advance the cursor or treat a failed page as the end of the results.
A 502 with detail.code: upstream_response_invalid means the response could not
be completed or exceeded the configured JSON response limit. If it persists,
request a smaller page using limit or contact Ornn support.
A 503 with detail.code: gateway_response_capacity_exceeded means response
capacity is temporarily unavailable. Retry this read using the same cursor and
bounded exponential backoff.Authorizations
Create an organization API key in Account Settings > Developer. Do not send this key to the Kubernetes API server.
Query Parameters
Maximum transactions per page.
Required range:
1 <= x <= 500Opaque next_cursor from the previous page. Keep the same reservation filter.
Required string length:
1 - 128Only transactions for this reservation.
Was this page helpful?