API Reference
Build powerful integrations with the PrimeBalance API. Full REST API access to all features.
example.js
// Create a journal entry
const response = await fetch('https://api.prime-balance.de/v1/journal-entries', {
method: 'POST',
headers: {
'Authorization': 'Bearer your_api_key',
'Content-Type': 'application/json',
},
body: JSON.stringify({
date: '2026-01-06',
description: 'Monthly rent payment',
lines: [
{ account_id: 'acc_rent_expense', debit: 5000 },
{ account_id: 'acc_cash', credit: 5000 },
],
}),
});
const journalEntry = await response.json();API Features
Everything you need to build reliable integrations
RESTful JSON API
Simple, predictable URLs with standard HTTP methods.
API Key Authentication
Secure API keys with scoped permissions.
Webhooks
Real-time notifications for events in your account.
Rate Limiting
Generous limits with clear headers and backoff support.
Idempotency
Safe retries with idempotency keys on all mutations.
SDKs & Libraries
Official SDKs for Python, Node.js, and more.
API Endpoints
Complete reference for all available endpoints
Accounts
GET
/v1/accountsPOST
/v1/accountsGET
/v1/accounts/{id}PUT
/v1/accounts/{id}Transactions
GET
/v1/transactionsPOST
/v1/transactionsGET
/v1/transactions/{id}POST
/v1/transactions/{id}/reverseJournal Entries
GET
/v1/journal-entriesPOST
/v1/journal-entriesPOST
/v1/journal-entries/{id}/postReports
GET
/v1/reports/balance-sheetGET
/v1/reports/income-statementGET
/v1/reports/trial-balance