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
Purchase

Purchase List

URL

fetch/purchase

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 1CBYpiyRhhJ6bjM7zHCdpB013Dy9TJQh Key obtained from authentiaction.
clientid String 20 M BEST_HMS

 

Response Values
Name Data Type Min Length Max Length M/O Sample Value Comments
tpurchase Array M Purchase List
tvoucherno Integer M 1 Voucher No in Tally
tvoucherdate String M 2022-04-30 Voucher Date
tvouchertype String M GST Purchase Interstate Voucher Type
tfirmid Integer M 1 Firmid in Tally
clientid String M BEST_HMS Client ID in Tally
partyname String 500 M ABC Party Name
partyledgername String 500 M ABC Party Ledger Name
partygstin String 15 M GSTIN
placeofsupply String 55 M Kerala Place of Supply - State
place String 55 M Trivandrum Place
invoicedetails String M Invoice Details
ledgerdetails String M Ledger Details
transportedby String M Vehicle Name Vehicle Name
tvoucherid Integer M 1 Voucher ID From Tally

 

Sample Request
{
    "key": "QH7LlQ3wQMK9oYEKjeG5QOIVJQT4emeq",
    "clientid": "BEST_HMS"
}
Sample Success Response
{
    "tpurchase": [
        {
            "tvoucherno": "1",
            "tvoucherdate": "2022-04-30",
            "tvouchertype": "GST Purchase Interstate",
            "tfirmid": "1",
            "clientid": "BEST_HMS",
            "partyname": "ABC",
            "partyledgername": "ABC",
            "partygstin": "",
            "placeofsupply": "Kerala",
            "place": "Trivandrum",
            "invoicedetails": "",
            "ledgerdetails": "",
            "transportedby": "Vehicle Name",
            "tvoucherid": "1"
        }
    ],
    "e": 200,
    "msg": "Success"
}