Ledger
Create Ledger
Create Ledger
POST
{base url}/v1/accounting/ledgers
Create a new ledger
Headers
Name | Type | Description |
---|---|---|
Authorization header* | string |
|
Body
Name | Type | Description |
---|---|---|
| string | Ledger account name |
| string | Ledger currency |
| number | Ledger type |
| string | Ledger description |
| boolean | Ledger status |
| boolean | Ledger manual entry status |
| boolean | Ledger account type |
| string | If ledger head account is false, provide head acount here |
Response
Update Ledger balance
Update Ledger Balance
PATCH
{Base url}/v1/accounting/update_balance/{ledgerId}
Update ledger balance
Headers
Name | Type | Description |
---|---|---|
Authorization header* | string |
|
Body
Name | Type | Description |
---|---|---|
| number | amount |
| string | Ledger type (credit or debit) |
Response
Fetch Ledgers
Fetch Ledgers
GET
{Base url}/v1/accounting/ledgers
Fetch all available ledgers
Headers
Name | Type | Description |
---|---|---|
Authorization header* | string |
|
Response
Fetch Ledger Balance
Fetch Ledger Balance
GET
{Base url}/v1/accounting/{ledgerId}/balance
Fetch ledger balance
Headers
Name | Type | Description |
---|---|---|
Authorization header* | string |
|
Response
Fetch Ledger Transactions
Fetch Ledger Transactions
GET
{base url}/v1/accounting/ledgers/transactions
Fetch all Ledger transactions
Headers
Name | Value |
---|---|
Authorization header |
|
Params
Name | Type | Description |
---|---|---|
| string | Account number |
| string | table sort start date |
| string | table sort end date |
| number | page to fetch |
perPage | number | number of items to fetch perPage |
Response
get trial balance
get trial balance
POST
{base url}/accounting/trial_balance
get ledger trial balance
Headers
Name | Value |
---|---|
|
|
Query parameters
Name | Type | Description |
---|---|---|
| number | page to fetch |
| number | number of items per page |
Response
Last updated