Save Purchase Voucher :- LOGIC API PUSH - PURCHASE VOUCHER

This API is used to create Purchase Voucher in LOGIC

Authorization Detail

Name Detail
End Point http://demo.logicerp.com/api/SavePurchaseVoucher
Request Type POST
Authorization Basic Auth
Username Demo
Password 1

Request


{
  "AccountCode": 99004488,
  "SupplierCode": null,
  "Bill_No": "121",
  "Bill_Date": "21/06/2023",
  "GRN_Prefix": "",
  "GRN_Number": 0,
  "PU_Remarks_1": "",
  "PU_Remarks_2": "",
  "PU_Remarks_3": "",
  "PartyBillDate": "",
  "BranchCode": 2,
  "InvoiceDate": "",
  "Godown_Name": "MAIN",
  "BranchShortName": "",
  "Freight": 0.0,
  "Adjustment_Rs": 0.0,
  "CD_P": 0.0,
  "TD_P": 0.0,
  "SP_CD": 0.0,
  "SpDiscountRs": 0.0,
  "AdjustUnit": 0.0,
  "SchemeRs": 0.0,
  "CreditDays": 0,
  "AgentName": null,
  "CostCenter": "",
  "OrderNo": "",
  "TransporterName": "",
  "PVTMark": null,
  "Insurance_Policy_No": "",
  "Declaration_No": null,
  "OrderDate": null,
  "ChallanNo": null,
  "ChallanDate": null,
  "Cases": null,
  "GRDate": null,
  "TransportMode": "",
  "DeliveryAt": "",
  "DeliveryAdd1": "",
  "DeliveryAdd2": "",
  "CurrencyName": "",
  "ExchangeRate": 0.0,
  "VehicleNo": "",
  "LstItems": [
      {
          "AddlItemCode": "",
          "LogicUser_Code": "TESTITEM101",
          "ScannedQty": 10.0,
          "Lot_Mrp": 0.0,
          "BasicRate": 1000.0,
          "PurRate": 1000.0,
          "SaleRate": 1200.0,
          "Expiry_Date": null,
          "MFG_Date": null,
          "LotNo": "LOT-TEST",
          "Lot_Bill_No": "",
          "ItemDescription": "" ,
          "Production_Unit": "",
          "Org_Production_Unit": ""
      },
      {
          "AddlItemCode": "",
          "LogicUser_Code": "TESTITEM102",
          "ScannedQty": 10.0,
          "Lot_Mrp": 0.0,
          "BasicRate": 1200.0,
          "PurRate": 1200.0,
          "SaleRate": 1500.0,
          "Expiry_Date": null,
          "MFG_Date": null,
          "LotNo": "LOT-TEST",
          "Lot_Bill_No": "",
          "ItemDescription": "" ,
          "Production_Unit": "",
          "Org_Production_Unit": ""
      }
    ],
  "Sup_Code": 0 
}

                  

Name Type Length Mandatory
AccountCode nvarchar-yes
SupplierCode num--
Bill_Nodate/time--
Bill_Datedate/time--
GRN_Prefixnvarchar60-
GRN_Number num60-
PU_Remarks_1nvarchar150-
PU_Remarks_2nvarchar150-
PU_Remarks_3nvarchar150-
PartyBillDatedate/time--
InvoiceDatedate/time--
Godown_Namenvarchar--
BranchShortNamenvarchar--
Adjustment_Rsmoney--
SpDiscountRsmoney--
AdjustUnitmoney--
SchemeRsmoney--
CreditDays date/time--
AgentName nvarchar--
OrderNonvarchar--
TransporterNamenvarchar--
PVTMark nvarchar20-
Insurance_Policy_Nonvarchar25-
Declaration_No nvarchar25-
OrderDate date/time--
ChallanNo nvarchar25-
ChallanDate date/time--
Cases nvarchar80-
GRDate date/time--
TransportModenvarchar--
DeliveryAtnvarchar3-
DeliveryAdd1nvarchar3-
DeliveryAdd2nvarchar3-
CurrencyNamenvarchar--
ExchangeRatemoney--
VehicleNonvarchar25-
LogicUser_Code | AddlItemCodenvarchar-Yes (Any one)
ScannedQtynum-yes

Response

 
{
  "PrintFile": " ",
  "Invoice_No": "GRN-2.00",
  "Order_No": "",
  "Status": true,
  "Message": "",
  "LastSavedCode": 17
}