General Ledger
General Ledger List
URL
accounts/ledger
Method
POST
Request Media type
application/json
Response Media type
application/json
Request Parameters
| Parameter | Data Type | Min | Max | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| key | String | 32 | 32 | M | ETTBUBxAzKmmJHOBFBzbDyYC3NN2R6jf | Key obtained from authentiaction. |
| uid | String | M | CE400858268F4A3CBCD7E2706DD0AF72 | UID of the transaction |
Response Values
| Name | Data Type | Min Length | Max Length | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| generalledger | Array | M | General Ledger | |||
| lreferance | Integer | M | 230607002 | Referance No | ||
| ldate | String | M | 2020-04-01 | Ledger Date | ||
| lfolio | String | M | DC | Folio | ||
| laccode | Integer | M | 200 | Account code | ||
| extype | String | M | ADV | Expense Type Code used | ||
| lremark | String | M | Remarks entered | Ledger Remarks | ||
| lamount | Decimal | M | 300.00 | Ledger Amount | ||
| dc | String | M | D | Type of Ledger - Debit is D and Credit is C | ||
| rowid | Integer | M | 1 | Opening Balance with rowid = -1, Transactions with rowid > -1 and closing balance with maximum rowid | ||
| username | String | M | ADMIN | Entered user |
Sample Request
{
"key": "QH7LlQ3wQMK9oYEKjeG5QOIVJQT4emeq",
"uid": "CE400858268F4A3CBCD7E2706DD0AF72"
}
Sample Success Response
{
"generalledger": [
{
"lreferance": "230607002",
"ldate": "2020-04-01",
"lfolio": "DC",
"laccode": "200",
"extype": "ADV",
"lremark": "Remarks entered",
"lamount": "300.00",
"dc": "D",
"rowid": "1",
"username": "ADMIN"
}
],
"e": 200,
"msg": "Success"
}
Sample Failure Responses
{
"e": 400,
"msg": "Bad Request."
}