Finance
Get Reconciliation Run
One recorded reconciliation run — its summary plus the discrepancy rows persisted at record time: what disagreed, by how much, and why.
GET
/
v1
/
finance
/
reconciliation
/
runs
/
{id}
Get a recorded reconciliation run with its discrepancies
curl --request GET \
--url https://billing.example.com/v1/finance/reconciliation/runs/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://billing.example.com/v1/finance/reconciliation/runs/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://billing.example.com/v1/finance/reconciliation/runs/{id}', 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://billing.example.com/v1/finance/reconciliation/runs/{id}",
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://billing.example.com/v1/finance/reconciliation/runs/{id}"
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://billing.example.com/v1/finance/reconciliation/runs/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/finance/reconciliation/runs/{id}")
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{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"run_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"run_at": "2023-11-07T05:31:56Z",
"invoices_checked": 123,
"paid_invoices_checked": 123,
"total_discrepancies": 123,
"tb_compared": true,
"tb_accounts_checked": 123,
"tb_transfers_checked": 123,
"created_at": "2023-11-07T05:31:56Z",
"discrepancies_truncated": true,
"discrepancies": [
{
"type": "<string>",
"invoice_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reference_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_code": 123,
"expected_amount": 123,
"found_amount": 123
}
]
}
}Returns one recorded run made addressable: the run summary (who, when, scope,
verdict) plus the per-run discrepancy rows persisted at record time — what
disagreed, by how much, and why. Each discrepancy carries the identifier
needed to drill in: an
invoice_id you can open with
Invoice Journal Entries, or a
transaction_id you can open with Get Journal Entry.
See Explain any number.
discrepancies_truncated is true when fewer rows were stored than were
counted — either the live-run listing cap was hit, or the run was recorded
before per-run persistence existed.
Example Request
curl "https://api.recurso.dev/v1/finance/reconciliation/runs/3f2a1b4c-5d6e-4f70-8a9b-0c1d2e3f4a5b" \
-H "Authorization: Bearer $API_KEY"
Response
{
"data": {
"id": "3f2a1b4c-5d6e-4f70-8a9b-0c1d2e3f4a5b",
"run_by": "b9071c55-0e14-4720-80f3-665613ceb7de",
"run_at": "2026-08-14T09:15:02Z",
"invoices_checked": 58231,
"paid_invoices_checked": 41207,
"total_discrepancies": 2,
"tb_compared": true,
"tb_accounts_checked": 214,
"tb_transfers_checked": 17352,
"created_at": "2026-08-14T09:15:02Z",
"discrepancies_truncated": false,
"discrepancies": [
{
"type": "missing_payment_transaction",
"invoice_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"transaction_id": null,
"reference_id": null,
"account_code": 0,
"expected_amount": 499900,
"found_amount": 0
},
{
"type": "tb_amount_mismatch",
"invoice_id": null,
"transaction_id": "9b2f1c4d-3e5a-4b6c-8d7e-0f1a2b3c4d5e",
"reference_id": null,
"account_code": 0,
"expected_amount": 129900,
"found_amount": 128900
}
]
}
}
Fields
| Field | Type | Description |
|---|---|---|
id | string (uuid) | The recorded run’s id |
run_by | string (uuid), nullable | The user who ran it; null for a scheduled/system run |
run_at | string (date-time) | When the reconciliation ran |
invoices_checked / paid_invoices_checked | integer | Scope of the billing ↔ ledger pass |
total_discrepancies | integer | Full count — 0 means the books tied out |
tb_compared | boolean | Whether the TigerBeetle comparison pass ran |
tb_accounts_checked / tb_transfers_checked | integer | Scope of the TigerBeetle pass |
created_at | string (date-time) | When the summary row was recorded |
discrepancies_truncated | boolean | true when fewer rows were stored than total_discrepancies |
discrepancies[] | array | Persisted discrepancy rows (see below) |
Discrepancy Fields
| Field | Type | Description |
|---|---|---|
type | string | One of the discrepancy types |
invoice_id | string (uuid), nullable | The invoice involved, for billing ↔ ledger types |
transaction_id | string (uuid), nullable | The ledger transaction involved, for ledger ↔ TigerBeetle types |
reference_id | string (uuid), nullable | The referenced business object, for orphan postings |
account_code | integer | The ledger account involved, for trial-balance types; 0 when not applicable |
expected_amount / found_amount | integer (int64) | What the check expected vs found, minor units |
Read-only. A missing or cross-tenant
id returns 404. Correcting drift
stays a deliberate human action; see the
ledger guide.⌘I
Get a recorded reconciliation run with its discrepancies
curl --request GET \
--url https://billing.example.com/v1/finance/reconciliation/runs/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://billing.example.com/v1/finance/reconciliation/runs/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://billing.example.com/v1/finance/reconciliation/runs/{id}', 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://billing.example.com/v1/finance/reconciliation/runs/{id}",
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://billing.example.com/v1/finance/reconciliation/runs/{id}"
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://billing.example.com/v1/finance/reconciliation/runs/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/finance/reconciliation/runs/{id}")
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{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"run_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"run_at": "2023-11-07T05:31:56Z",
"invoices_checked": 123,
"paid_invoices_checked": 123,
"total_discrepancies": 123,
"tb_compared": true,
"tb_accounts_checked": 123,
"tb_transfers_checked": 123,
"created_at": "2023-11-07T05:31:56Z",
"discrepancies_truncated": true,
"discrepancies": [
{
"type": "<string>",
"invoice_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reference_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_code": 123,
"expected_amount": 123,
"found_amount": 123
}
]
}
}