Codelayer API Documentation

  • Introduction

    • General Information
  • API Reference

    • Fetch

      • Account Group
      • Account Heads
      • Firm Details
      • Purchase
      • Sales Invoice
      • Stock Item
      • UOM
      • Vouchers
    • Purchase

      • Purchase Invoice
    • Sales

      • Invoice
      • StockItem
      • UOM
    • System

      • Authentication
    • Accounts

      • Account Group
      • Account Heads
      • Firm Details
      • Vouchers
    • Response Codes
Codelayer API Documentation
Account Group

Account Groups List

URL

accounts/account_group

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 RQthjTkUnTv8rK94MlunA9jC7ffFNLWI Key obtained from authentiaction.
gaccount Array M
ac_group String 1 55 M Bank Accounts Name of Account Group
group_parent String 55 M Current Assets Parent group
tfirmid Integer M 22 Firmid from Tally
clientid String 2 20 M CTPL Client ID
tacgcode Integer M 10 Id for Account Group From Tally

 

Response Values
Name Data Type Min Length Max Length M/O Sample Value Comments
status String M OK Updation Status

 

Sample Request
{
    "key": "QH7LlQ3wQMK9oYEKjeG5QOIVJQT4emeq",
    "gaccount": [
        {
            "ac_group": "Bank Accounts",
            "group_parent": "Current Assets",
            "tfirmid": "22",
            "clientid": "CTPL",
            "tacgcode": "10"
        }
    ]
}
Sample Success Response
{
    "status": "OK",
    "e": 200,
    "msg": "Success"
}
Sample Failure Responses
{
    "e": 400,
    "msg": "Bad Request."
}
{
    "e": 401,
    "msg": "Invalid authentication credentials."
}