Codelayer API Documentation

  • Introduction

    • General Information
  • API Reference

    • Accounts

      • General Ledger
      • Get Account Details
      • Prepare General Ledger
      • Status Request
    • Authentication

      • Authentication
      • Key Validator
    • Camera Server

      • Camera List
      • Get Date and Time
      • Get Snap Shot
      • Set date
      • Vehicle List
    • Connection Check (IQM_V3)

      • Check Connection
    • Cost Centre Management

      • Cost centre Checklist
      • Cost centre Previous Reading Details
      • Gatepass Details
      • Save Checklist Details
      • Save Trip Details
      • Saved Checklist Data
    • Data Temporary Holder

      • Get Data
      • Get Key List
      • Save Data
    • DB Connection Details(IQ_V3)

      • DB Details
    • ESC POS Printing Support

      • Print Bill
      • Print KOT
    • Fee Management

      • Get Admission Details
      • Get Admission Fee Details
      • Get Course Type
      • Get CourseLevel
      • Get Dailyclosingstatus
      • Get Director details
      • Get District
      • Get Educational Qualification
      • Get Eligibility Criteria
      • Get Feepending Data
      • Get Feestruture Data
      • Get Is_available_api
      • Get Master Batch
      • Get MasterCourse
      • Get Pending Fee
      • Get Scholarship
      • Get SpecialDiscountConfiguration
      • Get State
      • Get Student Details
      • Get Subject Data
      • Get Webhook
      • Save Admission Details
      • Save Admission Fee Details
      • Save Course Type
      • Save CourseLevel
      • Save Director
      • Save Eligibility Criteria
      • Save Fee Collection Audit
      • Save Feestructure
      • Save Master Batch
      • Save Master Course
      • Save Scholarship
      • Save SpecialDiscountConfiguration
      • Save Student
      • Save Subject
    • Final Accounts

      • Debtors/Creditors Schedule
      • Prepare Final Account
      • Show Available Requests
      • Status Request
      • Trialbalance (ACGCODE)
    • Firm Database (IQM_V3)

      • Databases
    • Firm Database (IQ_V3_EXT)

      • Database List For Extended IQs
      • QM DB Connection Details
    • FoodProducts

      • Get Non Continous Customer Sale
      • Get Product Routewise Discount
      • Get Routes
    • Front Office

      • Cancel E-Invoice
      • Fetch Card Settlement
      • Generate DC
      • Get E-Invoice
      • Get E-Way Bill
      • Get Invoice Cash Received
      • Invoice Cash Received Save
      • Invoice Data
      • Invoice Save
      • Save Card Settlement
      • Update Audited
    • Internal Data Holder

      • Get Saved Key Data
      • Get Stored Key Details
      • Remove Saved Key Details
      • Save Key Data
    • Inventory_HO

      • PurchaseOrderAudited
      • PurchaseOrderLocateReq
      • PurchaseOrderReqCancel
      • PurchaseOrderReqSave
      • PurchaseOrderSave
      • RequstedPurchaseOrders
    • IQ_V3_Ext Functions

      • Closing Status
      • Get Max Refresh Session
    • Issue Indent

      • Indent Fetch
      • Indent Save
    • Issue Indent Audit

      • Indent Audit Save
    • Masters

      • Account Group
      • AcHeads
      • Active Costcentres
      • Available Firmdb Details
      • Bank
      • Customer wise product rate
      • Employees
      • External Vehicle Type
      • External Vehicles List
      • External Vehicles Save
      • Filter Conditions
      • Get Designation
      • Get GST Schedule
      • Get Hsn
      • Get State
      • Invoice Source
      • Issue Heads
      • Material Count Details
      • Materials
      • Own Vehicles List
      • Places
      • Product
      • Quarry
      • Refetch Master
      • Save Filter Conditions
      • Save Userwise Report Columns
      • Sundries
      • Transporting Heads And Equipment Works
      • Uoms
      • User wise Report Columns
      • Vehicle In Purpose Types
    • Power Management

      • Generator Reading Cancel
      • Generator Reading Data
      • Generator Reading Save
      • Master Save
      • Power Master Data
      • Previous Generator Readings
      • Previous Purchased Power Readings
      • Purchased Power Reading Cancel
      • Purchased Power Reading Data
      • Purchased Power Reading Save
    • Preferences

      • Preferences
    • Production

      • Crusher Production Cancel
      • Crusher Production Locate
      • Crusher Production Save
      • Crusher Production Update
      • Get Production Summary
      • Job Card Cancel
      • Job Card Locate
      • Job Card Save
    • Purchase

      • Get purchase order details
      • Save Purchase
      • SaveUpdateaudited
      • ViewSavedPurchaseDetails
    • Security Systems

      • Cancel GateManagement Qrcode
      • Cancel Outpass
      • Device Configuration Locate
      • Device Configuration Save
      • Device List
      • Fetch Gate Management Data
      • Gate In - Pending Vehicles List
      • Gate In - Remove Pending Vehicles List
      • Gate In - Save Gate In for New Vehicles
      • GateManagement Manual GateOut
      • Get GateManagement GateIn Vehicle
      • Get GateManagement Invehicle
      • Get GateManagement Outpass Data
      • Get GateManagement Outvehicle
      • Get GateManagement QrCode CheckValid
      • Get GateManagementVehicles for Gateout
      • Get GateManagementVehicles for Outpass
      • Get Manual GateOperation
      • Get Outpass
      • Get Outpass Reasons
      • Get Permanent Outpass
      • Get Saved Camera VehicleDetails
      • Save GateManagement
      • Save Manual GateOperation
      • Save Outpass
      • Save Outpass Reason
      • Update GateManagement QrCode
      • Update Vehicle GateManagement
      • Vehicle Q - Cancel Vehicle In
      • Vehicle Q - Fetch Vehicle In
      • Vehicle Q - Save Vehicle In
    • Sessions

      • Get Cash Balance
      • Get Denomination Data
      • Get Session Closing Data
      • Get Session Data
      • Save Session
      • Session Validation
    • Weighing

      • Cancel Weighment
      • Clear Weigment Used
      • Edit Weighment
      • Get Outpass Weighment Data
      • Get Saved Weighment
      • Get Weighment Match Data
      • Get Weigment
      • Locate Saved Weighment
      • Locate Weighment Vehicle
      • Mark Outpass Done
      • Mark Weigment Used In Transaction
      • Opposite Weighment Pending Vehicles
      • Save New Weighment
      • Vehicle Weighment Data Details
      • Weigment Completed Vehicle List
    • MIS DashBoard

      • 00 webmenu
      • 01 Net costing prepare
      • 01 Net costing result
      • 01 Net costing status
      • 02 Route Sales
      • 02 Route salesstatus
      • 02 Routesles Prepare
      • 03 Sales Register
      • 03 Sales Register Prepare
      • 03 Sales Register Status
      • Ageing Creditors=> Prepare
      • Ageing Creditors=> Report
      • Ageing Creditors=> Status
      • Ageing Debtors=> Prepare
      • Ageing Debtors=> Report
      • Ageing Debtors=> Status
      • Ageing of Creditors
      • Ageing of Debtors
      • Bank Balance Summary
      • Cash Balance Summary
      • Firm Category
      • Firm List
      • Firmwise Sales Summary
      • P and L
      • P and L Prepare
      • P and L Status
      • QM Production
      • Sales Summary Firm wise Product Wise
      • Sales Summary MOS Wise
      • Sales Summary Product wise
      • Sales Summary- Firm wise ProductCategory wise
      • Sales Summary- Product Category wise
      • Trial Balance
      • Trial Balance Prepare
      • Trial Balance Status
    • License request
    • Register Device
    • Response Codes
Codelayer API Documentation
ViewSavedPurchaseDetails

URL

purchase/purchasedata

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 DoQfLic2nIhHRaZK08YyX5DN5cWCvJkG Key obtained from authentiaction.
islno Integer M
fyear Integer M

 

Response Values
Name Data Type Min Length Max Length M/O Sample Value Comments
purchasedet Array M
pbillno String M SSR/1/22/11 Purchase Bill No
pbilldate String M 2022-11-13 Purchase Bill Date
purchmode String M D {"D", "CREDIT"}, {"C", "CASH"}
debitto Integer M 11 Purchase Head Code
scode Integer M 1245 Supplier Code
cgstin String M 12AAAAA1234AAZA GSTIN
remarks String M TEST ENTRY Remarks
itceligibility String M T T for ITC Eligible F for ITC In-Eligible
reversetaxcalc String M F T for Reverse Tax Calculation F for Reverse Tax Calculation Not Required
taxcalcneeded String M T T for Tax Calculation F for Tax Calculation Not Required
supplier String M SSR Supplier name
debittohead String M Purchase Head Debitto Head
debittoheadGroup String M 12 Account Group Code
placeid Integer M 4 Place ID
place String M Kochi Place Name
stateid String M KER State ID of Place
firmstateid String M KER Firm State ID
regmode String M Normal Customer GST Registration Mode Enum GSTRegistrationMode { Normal = 1, Compound = 2, Unregistered = 3, NotifiedServiceProviderWithReverseCharge = 4 }
iqmslno Integer M 1 Mandatory on Edit if Audited Entries, slno
iqmfyear Integer M 22 Mandatory on Edit if Audited Entries, fyear
itemamount Decimal M 100 Total Item Amount
serviceamount Decimal M 100 Total Service Amount
taxamount Decimal M 5% Total Tax Amount
otheramount Decimal M 0 Total Other Amount
roundoff Decimal M 0 Round Off Value
grossamount Decimal M 210 Total Gross Amount
grossamount_ForLabel Decimal M Total Grossamount for Label
purchasedetails Array M
itemcode Integer M 1 Item Code
ptype String M M Product Type of selected Item
hsnid Integer M 1 HSN Id of Item
qty Decimal M 10 Quantity
stockqty Decimal M 10 Qty to Stock.
uomid Integer M 1 Unit of measurement Id
stockuomid Integer M 1 StockUomid of selected item
uprice Decimal M 100 Price of Item
discount Decimal M 0 Discount given
scheduleid Integer M 3 Tax Schedule id
extra Decimal M 0 Any extra amount for item
stockamount Decimal M 1000 Stock amount calculated for item
taxdetails Array M
TaxPercentage Decimal M 5 Percentage of Tax
TaxDisplayName String M 5% Tax Display name
PostingHeadCode Integer M 1234 Tax Posting Code
PostingReverseCode Integer M 12345 Reverse Posting Code
PostingAmount Decimal M 25 Posting Amount
TaxFormulaCode String M SGST Formula Code From Tax Class
taxrowid Integer M 1 Row Id from Tax Class
hsncode String M 456789 HSN Code of Item
itemname String M Item Name Name of Item
taxpercent Decimal M 5 Percentage of Tax
uom String M no Unit of Measurement
ledgerdetails Array M
lfolio String M PI Purchase Folio
laccode Integer M 11 Account Code for Ledger Posting
extype String M Expense Type (if Any)
lremark Decimal M TEST ENTRY Purchase Remarks
lamount Decimal M 1000 Amount to be posted
dc String M D D is DebitC is Credit
stockdetails Array M
refno Integer M
fyear Integer M
sdate String M
stype String M
batchno String M
itemcode Integer M
qty Decimal M
amount Decimal M
purchasehead Integer M
otherexpensedetails Array M
accode Integer M 11 Account Code
credit Decimal M 0 Credit Amount
debit Decimal M 1000 Debit Amount
achead String M Purchase Head Account Head Name
cancel String M F If Cancel T otherwise F
purchdata String M
eventtype String M E E - for Edit
eventid String M 1 Form ID for Purchase
pdate String M 2022-11-13 Date in yyyy-MM-dd Format
slno Integer M 1 Mandatory for Edit
fyear Integer M 22 Mandatory for Edit
purchtype String M BB {"BB", "GST DEALER"}, {"BI", "INTERSTATE"}, {"BU", "UNREGISTERED DEALER"}, {"SO", "ADD ONLY TO STOCK"}
gstreferanceno String M PI/1 Mandatory on Edit

 

Sample Request
{
    "key": "QH7LlQ3wQMK9oYEKjeG5QOIVJQT4emeq",
    "islno": "",
    "fyear": ""
}
Sample Success Response
{
    "purchasedet": [
        {
            "pbillno": "SSR/1/22/11",
            "pbilldate": "2022-11-13",
            "purchmode": "D",
            "debitto": "11",
            "scode": "1245",
            "cgstin": "12AAAAA1234AAZA",
            "remarks": "TEST ENTRY",
            "itceligibility": "T",
            "reversetaxcalc": "F",
            "taxcalcneeded": "T",
            "supplier": "SSR",
            "debittohead": "Purchase Head",
            "debittoheadGroup": "12",
            "placeid": "4",
            "place": "Kochi",
            "stateid": "KER",
            "firmstateid": "KER",
            "regmode": "Normal",
            "iqmslno": "1",
            "iqmfyear": "22",
            "itemamount": "100",
            "serviceamount": "100",
            "taxamount": "5%",
            "otheramount": "0",
            "roundoff": "0",
            "grossamount": "210",
            "grossamount_ForLabel": "",
            "purchasedetails": [
                {
                    "itemcode": "1",
                    "ptype": "M",
                    "hsnid": "1",
                    "qty": "10",
                    "stockqty": "10",
                    "uomid": "1",
                    "stockuomid": "1",
                    "uprice": "100",
                    "discount": "0",
                    "scheduleid": "3",
                    "extra": "0",
                    "stockamount": "1000",
                    "taxdetails": [
                        {
                            "TaxPercentage": "5",
                            "TaxDisplayName": "5%",
                            "PostingHeadCode": "1234",
                            "PostingReverseCode": "12345",
                            "PostingAmount": "25",
                            "TaxFormulaCode": "SGST"
                        }
                    ],
                    "taxrowid": "1",
                    "hsncode": "456789",
                    "itemname": "Item Name",
                    "taxpercent": "5",
                    "uom": "no"
                }
            ],
            "ledgerdetails": [
                {
                    "lfolio": "PI",
                    "laccode": "11",
                    "extype": "",
                    "lremark": "TEST ENTRY",
                    "lamount": "1000",
                    "dc": "D"
                }
            ],
            "stockdetails": [
                {
                    "refno": "",
                    "fyear": "",
                    "sdate": "",
                    "stype": "",
                    "batchno": "",
                    "itemcode": "",
                    "qty": "",
                    "amount": "",
                    "purchasehead": ""
                }
            ],
            "otherexpensedetails": [
                {
                    "accode": "11",
                    "credit": "0",
                    "debit": "1000",
                    "achead": "Purchase Head"
                }
            ],
            "cancel": "F",
            "purchdata": "",
            "eventtype": "E",
            "eventid": "1",
            "pdate": "2022-11-13",
            "slno": "1",
            "fyear": "22",
            "purchtype": "BB",
            "gstreferanceno": "PI/1"
        }
    ],
    "e": 200,
    "msg": "Success"
}