From 2634a1a464078852a45dc06e1619aab36b23dad7 Mon Sep 17 00:00:00 2001
From: goutham-M Example Requests:
+ Human understandable description for the Ledger Account
+
+
+ parentId
+
+ To assign a parent for this GLAccount
+
+
+
+ tagId
+
+
@@ -12548,6 +12561,14 @@ Request Body:
Used for tagging the AccountHeads, based on GLAccount types.
+
Example Request:
-
-GET https://DomainName/api/v1/glaccounts/template
+GET https://DomainName/api/v1/glaccounts/template?type=0
{
@@ -12676,7 +12705,161 @@ GET https://DomainName/api/v1/glaccounts/template
"code": "accountUsage.header",
"value": "HEADER"
}
- ]
+ ],
+ "assetHeaderAccountOptions": [
+ {
+ "id": 1,
+ "name": "Two wheeler loan",
+ "glCode": "10001",
+ "disabled": false,
+ "manualEntriesAllowed": true,
+ "type": {
+ "id": 1,
+ "code": "accountType.asset",
+ "value": "ASSET"
+ },
+ "usage": {
+ "id": 2,
+ "code": "accountUsage.header",
+ "value": "HEADER"
+ },
+ "nameDecorated": "Two wheeler loan",
+ "tagId": {
+ "id": 10,
+ "name": "asset tag"
+ }
+ },
+ {
+ "id": 2,
+ "name": "VEHICLE LOAN",
+ "parentId": 1,
+ "glCode": "10002",
+ "disabled": false,
+ "manualEntriesAllowed": true,
+ "type": {
+ "id": 1,
+ "code": "accountType.asset",
+ "value": "ASSET"
+ },
+ "usage": {
+ "id": 2,
+ "code": "accountUsage.header",
+ "value": "HEADER"
+ },
+ "nameDecorated": "....VEHICLE LOAN",
+ "tagId": {
+ "id": 10,
+ "name": "asset tag"
+ }
+ }
+ ],
+ "liabilityHeaderAccountOptions": [
+ {
+ "id": 15,
+ "name": "liabilitieschild",
+ "glCode": "ltchild",
+ "disabled": false,
+ "manualEntriesAllowed": true,
+ "type": {
+ "id": 2,
+ "code": "accountType.liability",
+ "value": "LIABILITY"
+ },
+ "usage": {
+ "id": 2,
+ "code": "accountUsage.header",
+ "value": "HEADER"
+ },
+ "nameDecorated": "liabilitieschild",
+ "tagId": {
+ "id": 11,
+ "name": "liability tag"
+ }
+ }
+ ],
+ "equityHeaderAccountOptions": [
+ {
+ "id": 13,
+ "name": "testajax",
+ "glCode": "12345678",
+ "disabled": false,
+ "manualEntriesAllowed": true,
+ "type": {
+ "id": 3,
+ "code": "accountType.equity",
+ "value": "EQUITY"
+ },
+ "usage": {
+ "id": 2,
+ "code": "accountUsage.header",
+ "value": "HEADER"
+ },
+ "nameDecorated": "testajax",
+ "tagId": {
+ "id": 12,
+ "name": "Equity tag"
+ }
+ }
+ ],
+ "expenseHeaderAccountOptions": [
+ {
+ "id": 8,
+ "name": "Salary",
+ "glCode": "450098",
+ "disabled": false,
+ "manualEntriesAllowed": true,
+ "type": {
+ "id": 5,
+ "code": "accountType.expense",
+ "value": "EXPENSE"
+ },
+ "usage": {
+ "id": 2,
+ "code": "accountUsage.header",
+ "value": "HEADER"
+ },
+ "nameDecorated": "Salary",
+ "tagId": {
+ "id": 14,
+ "name": "Expenses Tag"
+ }
+ }
+ ],
+ "allowedAssetsTagOptions": [
+ {
+ "id": 10,
+ "name": "asset tag",
+ "position": 0
+ }
+ ],
+ "allowedLiabilitiesTagOptions": [
+ {
+ "id": 11,
+ "name": "liability tag",
+ "position": 0
+ }
+ ],
+ "allowedEquityTagOptions": [
+ {
+ "id": 12,
+ "name": "Equity tag",
+ "position": 0
+ }
+ ],
+ "allowedIncomeTagOptions": [
+ {
+ "id": 13,
+ "name": "Income Tag",
+ "position": 0
+ }
+ ],
+ "allowedExpensesTagOptions": [
+ {
+ "id": 14,
+ "name": "Expenses Tag",
+ "position": 0
+ }
+ ]
}
Example Request:
-
1.Assets
+
2.Liabilities
+
3.Equity
+
4.Income
+
5.Expenses
-GET https://DomainName/api/v1/glaccounts/template?type=0
+GET https://DomainName/api/v1/glaccounts/template
+GET https://DomainName/api/v1/glaccounts/template?type=1
{