Introduction
The Aden General Ledger API provides a comprehensive suite of endpoints for managing your organization’s financial data. This includes chart of accounts management, journal entries, accounts payable (bills), accounts receivable (invoices), payments, credit memos, and financial reporting.Base URL
All API requests should be made to:Authentication
All API endpoints require authentication using a JWT bearer token. Include the token in theAuthorization header:
Core Concepts
Document Lifecycle
Most financial documents in the General Ledger follow a consistent workflow:1
Draft
Documents are created in Draft status and can be freely modified.
2
Submit for Approval
When ready, submit the document for approval. Status changes to “Pending Approval”.
3
Approval Process
Approvers can approve, reject, request changes, or place on hold. Multi-level approval is supported based on amount thresholds.
4
Posted
After final approval, documents are posted to the General Ledger and affect account balances.
Document Statuses
| Status | Description |
|---|---|
Draft | Initial state, document can be modified |
Pending Approval | Submitted and awaiting approval |
On Hold | Temporarily held pending additional information |
Approved | All required approvals obtained |
Posted | Posted to the General Ledger |
Rejected | Rejected during approval process |
Voided | Document has been voided |
Accounting Periods
All transactions must be posted to an open accounting period. The API validates that:- The posting period exists and is open
- Sub-ledgers (AP, AR, GL) are not locked for the period
- The transaction date falls within the period
API Modules
Chart of Accounts
Manage GL accounts, account hierarchy, and balances
Accounting Periods
Create, close, and reopen accounting periods
Journal Entries
Create and manage manual journal entries
Bills
Accounts Payable - manage vendor bills
Bill Payments
Process payments for vendor bills
Invoices
Accounts Receivable - manage customer invoices
Invoice Payments
Record customer payments
Credit Memos
Issue and apply credit memos
Approval Rules
Configure approval workflows
Reports
Generate financial reports
Bank Reconciliation
Reconcile bank statements
Audit Log
View approval audit trails
Common Request Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | JWT authentication token (jwt YOUR_TOKEN) |
Content-Type | Yes (POST/PUT) | application/json |
X-Idempotency-Key | No | Prevents duplicate operations for approval actions |
Error Handling
The API returns standard HTTP status codes:| Status | Description |
|---|---|
200 | Success |
201 | Created |
400 | Bad Request - Invalid parameters |
401 | Unauthorized - Invalid or missing token |
403 | Forbidden - Insufficient permissions |
404 | Not Found - Resource doesn’t exist |
409 | Conflict - Resource state conflict |
422 | Unprocessable Entity - Validation failed |
500 | Internal Server Error |
Error Response Format
Pagination
List endpoints support pagination usinglimit and offset parameters:
| Parameter | Default | Description |
|---|---|---|
limit | 20 | Number of records to return (max 100) |
offset | 0 | Number of records to skip |
Rate Limiting
API requests are rate limited. When you exceed the limit, you’ll receive a429 Too Many Requests response. Include appropriate backoff logic in your integration.