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
Vouchers

Vouchers

URL

fetch/vouchers

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 YHm1p43i1hjVVIjlGDSq4wQDXe7AmVFs Key obtained from authentiaction.
clientid String M BEST_HMS Client ID

 

Response Values
Name Data Type Min Length Max Length M/O Sample Value Comments
tvouchers Array M Voucher Data
clientid String M CTPL Client ID
tnarration String M Narration Narration
place String M Place Place of Supply
vehicle String M vehicle Vehicle
tvoucherid Integer M 1 Voucher ID From Tally
tvoucherno Integer M 1 Voucher No From Tally
tvouchertype String M Bank Receipt Voucher Type
tvoucherdate String M 2022-4-30 Voucher Date
tfirmid Integer M 1 Firm ID
voucherdetails String M

 

Sample Request
{
    "key": "QH7LlQ3wQMK9oYEKjeG5QOIVJQT4emeq",
    "clientid": "BEST_HMS"
}
Sample Success Response
{
    "tvouchers": [
        {
            "clientid": "CTPL",
            "tnarration": "Narration",
            "place": "Place",
            "vehicle": "vehicle",
            "tvoucherid": "1",
            "tvoucherno": "1",
            "tvouchertype": "Bank Receipt",
            "tvoucherdate": "2022-4-30",
            "tfirmid": "1",
            "voucherdetails": ""
        }
    ],
    "e": 200,
    "msg": "Success"
}