Ledger

Create Ledger

Create Ledger

POST {base url}/v1/accounting/ledgers

Create a new ledger

Headers

Name
Type
Description

Authorization header*

string

API user secret key

Body

Name
Type
Description

ledgerName*

string

Ledger account name

currency*

string

Ledger currency

ledgerType*

number

Ledger type

description

string

Ledger description

isActive

boolean

Ledger status

allowedManualEntry*

boolean

Ledger manual entry status

isHeadAccount

boolean

Ledger account type

headAccount

string

If ledger head account is false, provide head acount here

Response

{
    "responseCode": "00",
    "message": "Ledger successfully created",
    "data": {
        "organizationId": "153c58d7-c15b-41fa-a717-67b5ae8e3f98",
        "name": "Ledger1",
        "type": 101,
        "currency": "NGN",
        "description": "Expense account",
        "allowedManualEntry": false,
        "isHeadAccount": true,
        "isActive": true,
        "accountNumber": "1012130087",
        "id": "5b1f7422-bed6-473f-81a0-1712359a1023",
        "balance": 0,
        "created_at": "2024-03-28T07:09:19.554Z",
        "updated_at": "2024-03-28T07:09:19.554Z"
    }
}

Update Ledger balance

Update Ledger Balance

PATCH {Base url}/v1/accounting/update_balance/{ledgerId}

Update ledger balance

Headers

Name
Type
Description

Authorization header*

string

API user secret key

Body

Name
Type
Description

amount*

number

amount

type*

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

API user secret key

Response

Fetch Ledger Balance

Fetch Ledger Balance

GET {Base url}/v1/accounting/{ledgerId}/balance

Fetch ledger balance

Headers

Name
Type
Description

Authorization header*

string

API user secret key

Response

Fetch Ledger Transactions

Fetch Ledger Transactions

GET {base url}/v1/accounting/ledgers/transactions

Fetch all Ledger transactions

Headers

Name
Value

Authorization header

API user secret key

Params

Name
Type
Description

accountNumber*

string

Account number

startDate

string

table sort start date

endDate

string

table sort end date

page

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

Authorization header *

API user secret key

Query parameters

Name
Type
Description

page

number

page to fetch

perPage

number

number of items per page

Response

Last updated

Was this helpful?