Skip to Content

Reports API

Access financial reports.

Scope required: reports:read

Trial Balance

GET /reports/trial-balance

Returns the trial balance report.

Query Parameters

ParameterTypeDescription
as_at_datedateReport as at date (default: today)

Example Request

curl -H "Authorization: Bearer rb_live_YOUR_API_KEY" \ "https://api.rebased.app/api/v1/external/reports/trial-balance?as_at_date=2026-02-28"

Example Response

{ "as_at_date": "2026-02-28", "rows": [ { "account_id": "550e8400-e29b-41d4-a716-446655440000", "account_code": "1000", "account_name": "Bank Account", "account_type": "asset", "debit": 50000.00, "credit": 0.00, "balance": 50000.00 }, { "account_id": "660e8400-e29b-41d4-a716-446655440000", "account_code": "2000", "account_name": "Accounts Payable", "account_type": "liability", "debit": 0.00, "credit": 5000.00, "balance": 5000.00 } ], "total_debits": 50000.00, "total_credits": 50000.00 }

Profit and Loss

GET /reports/profit-loss

Returns the profit and loss report for a date range.

Query Parameters

ParameterTypeRequiredDescription
from_datedateYesStart date (YYYY-MM-DD)
to_datedateYesEnd date (YYYY-MM-DD)

Example Request

curl -H "Authorization: Bearer rb_live_YOUR_API_KEY" \ "https://api.rebased.app/api/v1/external/reports/profit-loss?from_date=2026-01-01&to_date=2026-02-28"

Example Response

{ "from_date": "2026-01-01", "to_date": "2026-02-28", "revenue": [ { "account_id": "550e8400-e29b-41d4-a716-446655440000", "account_code": "4000", "account_name": "Sales Revenue", "account_type": "revenue", "amount": 100000.00 } ], "expenses": [ { "account_id": "660e8400-e29b-41d4-a716-446655440000", "account_code": "5000", "account_name": "Cost of Goods Sold", "account_type": "expense", "amount": 40000.00 } ], "total_revenue": 100000.00, "total_expenses": 40000.00, "net_profit": 60000.00 }

Balance Sheet

GET /reports/balance-sheet

Returns the balance sheet report.

Query Parameters

ParameterTypeDescription
as_at_datedateReport as at date (default: today)

Example Request

curl -H "Authorization: Bearer rb_live_YOUR_API_KEY" \ "https://api.rebased.app/api/v1/external/reports/balance-sheet?as_at_date=2026-02-28"

Example Response

{ "as_at_date": "2026-02-28", "assets": [ { "account_id": "550e8400-e29b-41d4-a716-446655440000", "account_code": "1000", "account_name": "Bank Account", "account_type": "asset", "balance": 50000.00 } ], "liabilities": [ { "account_id": "660e8400-e29b-41d4-a716-446655440000", "account_code": "2000", "account_name": "Accounts Payable", "account_type": "liability", "balance": 5000.00 } ], "equity": [ { "account_id": "770e8400-e29b-41d4-a716-446655440000", "account_code": "3000", "account_name": "Retained Earnings", "account_type": "equity", "balance": 45000.00 } ], "total_assets": 50000.00, "total_liabilities": 5000.00, "total_equity": 45000.00 }
Last updated on