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 Heads

Account Heads List

URL

accounts/account_head

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 KTbgN0RXHuSKkx3ZfcaH3XQYCxfUbSke Key obtained from authentiaction.
account_head Array M
achead String M ABC Company Name of Account Head
tacgroup String M SUNDRY DEBTORS Name of Account Group
tfirmid Integer M 1 Firm ID from Tally
clientid String M ABC_01 Client ID
gstin String 20 M 01AMBPG7773M002 Party GSTIN
statename String M Kerala GSTIN Details - State
partyaddress String 250 M Address Address of Party
taccode Integer M 1 ID for Account Head

 

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

 

Sample Request
{
    "key": "QH7LlQ3wQMK9oYEKjeG5QOIVJQT4emeq",
    "account_head": [
        {
            "achead": "ABC Company",
            "tacgroup": "SUNDRY DEBTORS",
            "tfirmid": "1",
            "clientid": "ABC_01",
            "gstin": "01AMBPG7773M002",
            "statename": "Kerala",
            "partyaddress": "Address",
            "taccode": "1"
        }
    ]
}
Sample Success Response
{
    "status": "OK",
    "e": 200,
    "msg": "Success"
}
Sample Failure Responses
{
    "e": 400,
    "msg": "Bad Request."
}
{
    "e": 401,
    "msg": "Invalid authentication credentials."
}