With the help of this plan, the customers will be able to get access to the Advanced features i.e. view the data of Current Stock, able to push own Invoice detail with own rate.
MobileAppSolution - Billing API consist of 2 API’s:
This API is basically for those customers who need a compact solution. This service/feature can be used for Master Sync. For example: Party/Customer, Product, User Master, Rate updation etc. In this API
we will provide the following Masters:
URL: https://wservices.margcompusoft.com/api/eOnlineData/MargMST2017
API URL |
https://wservices.margcompusoft.com/api/eOnlineData/MargMST2017 |
Interface/API Name |
MargMST2017 |
Json Input |
{ "CompanyCode": "", "MargID": "", "Datetime": "", "Index": "" } |
Request Type |
POST |
Content Type |
Application Json |
Interface Description |
This service/feature is used For Master Sync. For example Customer, Product, User Master, Rate updation etc. |
Field Name | Data Type | Sample Value | Remark |
---|---|---|---|
CompanyCode | String | MARGLIVE | MARGLIVE |
MargID | Integer | 8835 | MARGID (Provided by Margerp) |
Datetime | Date Time (Json Format) | If DateTimepass blank then API return ALL Data.Other wise provide incremental data. Datetime format – (2017-01-14 13:53:20) | |
index | Integer | 0 | Defult 0 |
{
"CompanyCode": "VIKRAMNEGI2",
"MargID": "314539",
"Datetime": "",
"index": "0"
}
Json Object name | Field name | Data Type | Length/Decimal | Sample Value | Remark | |||||
---|---|---|---|---|---|---|---|---|---|---|
Pro_N | Rid | Integer | 9 | 20170110 | Row ID | |||||
" " | CatCode | Varchar | 6 | Z1 | Item Category Code | |||||
" " | Code | Varchar | 22 | 1000005 | Item Code | |||||
" " | Name | Varchar | 45 | BETNSOL INJ. | Item Name | |||||
" " | Stock | Numeric | 15,3 | 1.00 | Current Stock | |||||
" " | Remark | Varchar | 200 | |||||||
" " | Company | String | 40 | Cadila Pharma | Name of Product Company | |||||
" " | ShopCode | |||||||||
" " | MRP | Numeric | 10,2 | 0.00 | Maximum Retail Price | |||||
" " | Rate | Numeric | 10,2 | 0.00 | Billing Price | |||||
" " | Deal | Numeric | 5 | 10 | Deal on (10 if Deal is 10+1) | |||||
" " | Free | Numeric | 5 | 1 | Free Qty(1 deal is 10+1) | |||||
" " | PRate | Numeric | 10,2 | 0.00 | Purchase Price | |||||
" " | Is_Deleted | Integer | 6 | 0 or 1 | If product is deleted or not 0=Not Deleted, 1=Deleted | |||||
" " | CurBatch | Varchar | 12 | ABC0002 | Current Running batch of the item | |||||
" " | Exp | Varchar | 20 | 20/03/2015 | Expiry Date of current batch | |||||
" " | GCode | Varchar | 6 | CP002 | Product Company Code | |||||
" " | MargCode | Varchar | 200 | |||||||
" " | Conversion | Varchar | 200 | 15 | Item conversion | |||||
" " | Salt | Varchar | 6 | "A" | Salt code | |||||
" " | ENCODE | Varchar | 25 | " " | Barcode | |||||
" " | Remarks | Varchar | Remarks information | |||||||
" " | Gcode6 | Varchar | SJU | HSN code (internal code) | ||||||
" " | ProductCode | |||||||||
Pro_U | Rid | Integer | 9 | 20170110 | Row ID (It will Return when Pass Date & Time) | |||||
" " | CatCode | Varchar | 6 | Z1 | Item Category Code | |||||
" " | Code | Varchar | 22 | 1000005 | Item Code | |||||
" " | Name | Varchar | 45 | BETNSOL INJ. | Item Name | |||||
" " | Stock | Numeric | 15,3 | 1.00 | Current Stock | |||||
" " | Remark | Varchar | 200 | |||||||
" " | Company | String | 40 | Cadila Pharma | Name of Product Company | |||||
" " | ShopCode | |||||||||
" " | MRP | Numeric | 10,2 | 0.00 | Maximum Retail Price | |||||
" " | Rate | Numeric | 10,2 | 0.00 | Billing Price | |||||
" " | Deal | Numeric | 5 | 10 | Deal on (10 if Deal is 10+1) | |||||
" " | Free | Numeric | 5 | 1 | Free Qty(1 deal is 10+1) | |||||
" " | PRate | Numeric | 10,2 | 0.00 | Purchase Price | |||||
" " | Is_Deleted | Integer | 6 | 0 or 1 | If product is deleted or not 0=Not Deleted, 1=Deleted | |||||
" " | CurBatch | Varchar | 12 | ABC0002 | Current Running batch of the item | |||||
" " | Exp | Varchar | 20 | 20/03/2015 | Expiry Date of current batch | |||||
" " | GCode | Varchar | 6 | CP002 | Product Company Code | |||||
" " | MargCode | Varchar | 200 | |||||||
" " | Conversion | Varchar | 200 | 15 | Item conversion | |||||
" " | Salt | Varchar | 6 | "A" | Salt Code | |||||
" " | ENCODE | Varchar | 25 | "" | Barcode | |||||
" " | Remarks | Varchar | Remarks information | |||||||
" " | Gcode6 | Varchar | SJU | HSN code (internal code) | ||||||
" " | ProductCode | |||||||||
Pro_S | Code | Varchar | 22 | 124 | Item internal Code (It will Return when Pass Date & Time) | |||||
" " | Stock | Varchar | 15,3 | "0" | item stock Qty | |||||
" " | ProductCode | |||||||||
Pro_R | Code | Varchar | 22 | 124 | Item internal Code (It will Return when Pass Date & Time) | |||||
" " | Stock | Numeric | 0.00 | Item Stock Qty | ||||||
" " | MRP | Numeric | 10,2 | 0.00 | MRP Rate | |||||
" " | Rate | Numeric | 10,2 | "1.66" | Sale rate | |||||
" " | Deal | Varchar | 5 | "0" | Deal Qty | |||||
" " | Free | Varchar | 5 | "0" | Free Qty | |||||
" " | PRate | Numeric | 10,2 | 0.00 | Purchase rate | |||||
" " | ProductCode | |||||||||
" " | Curbatch | Varchar | "BFE456" | Current Batch (FIFO base) | ||||||
Stype | Rid | Integer | 6 | 85344 | Row ID(Identity) | |||||
" " | Sgcode | Varchar | 6 | "AREA" | Sub Master Code,,, For Company 'AREA' for Category CATEGO','.'ROUT' | |||||
" " | Scode | Varchar | 6 | "A9" | Sub Master Code | |||||
" " | Name | String | 45 | CADILA PHARMA | Name of Group/area/company/route | |||||
" " | Is_Deleted | Integer | 0 | 0=not deleted ,1=deleted | ||||||
Party | Rid | Integer | 186999 | Row ID ( Identity) | ||||||
" " | Area | String | 6 | " " | Area Code | |||||
" " | Code | String | 6 | CREDIT | Party Code | |||||
" " | Address | String | 150 | " " | Party Address | |||||
" " | Name | String | 45 | CREDIT CARD | Party Name | |||||
" " | Balance | Numeric | 14,2 | 0.00 | Current Party Balance | |||||
" " | Pdc | Numeric | 14,2 | 0.00 | PDC amount of party | |||||
" " | Gcode | String | 6 | C6 | Ledger Type ( Group Debtor, creditor, sales man etc) | |||||
" " | Opening | Numeric | 14,2 | 0.00 | Party Opening as on start of the financial year | |||||
" " | Is_Deleted | Integer | 0 | 1=deleted , 0 = not deleted | ||||||
" " | Phone1 | String | 12 | 8527812345 | phone number-1 | |||||
" " | Phone2 | String | 12 | 8527812345 | phone number-2 | |||||
" " | Phone3 | String | 12 | 8527812345 | phone number-3 | |||||
" " | Phone4 | String | 12 | 8527812345 | phone number-4 | |||||
" " | String | 45 | test1@gmail.com | Email ID-1 | ||||||
" " | Emai2 | String | 45 | test1@gmail.com | Email ID-2 | |||||
" " | Email3 | String | 45 | test1@gmail.com | Email ID-3 | |||||
" " | Bank | String | 45 | " " | Bank Name For Payment | |||||
" " | Branch | String | 45 | " " | Bank Branch Name | |||||
" " | MargCode | String | 20 | " " | ||||||
" " | GSTIN | String | 15 | " " | ||||||
" " | DlNo. | String | 45 | " " | ||||||
" " | LedgerCode | |||||||||
Users | RowID | Integer | 12361 | Row ID ( Identity) | ||||||
" " | UserID | String | 50 | PNC | User ID | |||||
" " | Name | String | 100 | PNC | User Name | |||||
" " | Address1 | String | 60 | F-11 Roshanara Plaza, | User Address-1 | |||||
" " | Address2 | String | 60 | Roshanara Road, | User Address-2 | |||||
" " | Address3 | String | 60 | Delhi | User Address-3 | |||||
" " | Phone | String | 25 | 011 30969600 | User Phone | |||||
" " | Mobile | String | 25 | 9329203638 | User Mobile | |||||
" " | String | 50 | test@gmail.com | User Email ID | ||||||
" " | Is_Deleted | Integer | 0 | 1=deleted , 0 = not deleted | ||||||
" " | Type | String | 1 | S | User Type (S-salesman) | |||||
Index | Integer | 500000 | ||||||||
DataStatus | String | 10 | Completed | |||||||
DataStatus | String | 10 | Completed | |||||||
Status | String | 10 | Success | Message | ||||||
DateTime | Date & TIme | 26 | 2017-01-14 13:53:20 | API Returns Date & Time.(it will use for next time) |
{
"Details": {
"pro_N": [
{
"rid": "31579023",
"catcode": "SFB ",
"code": "1010049",
"name": "ITEM CATEGORY",
"stock": "0.000",
"remark": "",
"company": "COMPANY ABC",
"shopcode": "",
"MRP": "0.00",
"Rate": "0.00",
"Deal": "0",
"Free": "0",
"PRate": "0.00",
"Is_Deleted": "0",
"curbatch": "",
"exp": " ",
"gcode": "FE ",
"MargCode": "",
"Conversion": "0",
"Salt": "SFB",
"ENCODE": "",
"remarks": "P;9;2; ;1;;;;;;PCS ;;;0;9;;;",
"Gcode6": null,
"ProductCode": ""
}
],
"pro_U": [
{
"rid": "31579023",
"catcode": "SFB ",
"code": "1010049",
"name": "ITEM CATEGORY",
"stock": "0.000",
"remark": "",
"company": "COMPANY ABC",
"shopcode": "",
"MRP": "0.00",
"Rate": "0.00",
"Deal": "0",
"Free": "0",
"PRate": "0.00",
"Is_Deleted": "0",
"curbatch": "",
"exp": " ",
"gcode": "FE ",
"MargCode": "",
"Conversion": "0",
"Salt": "SFB",
"ENCODE": "",
"remarks": "P;9;2; ;1;;;;;;PCS ;;;0;9;;;",
"Gcode6": null,
"ProductCode": ""
}
],
"pro_S": [
{
"code": "1010045",
"stock": "27.000",
"ProductCode": ""
}
],
"pro_R": [
{
"code": "1010019",
"stock": "0.000",
"MRP": "300.00",
"Rate": "220.00",
"Deal": "0",
"Free": "0",
"PRate": "200.00",
"ProductCode": "",
"Curbatch": ""
}
],
"Stype": [
{
"rid": "3704087",
"sgcode": "CATEGO",
"scode": "SFB ",
"name": "CETEGORY",
"Is_Deleted": "0"
}
],
"Party": [
{
"rid": "4790934",
"area": " ",
"code": "KJ ",
"address": "",
"name": "B",
"balance": "600.00",
"pdc": "0.00",
"gcode": "C6 ",
"opening": "0.00",
"Is_Deleted": "0",
"phone1": "",
"phone2": " ",
"phone3": " ",
"phone4": " ",
"email1": "",
"email2": "",
"email3": "",
"bank": "",
"branch": "",
"MargCode": "0000 ",
"GSTIN": "",
"DlNo": "",
"LedgerCode": ""
}
],
"Users": [
{
"RowID": "171339",
"UserID": "SALES",
"Name": "SALESMAN",
"Address1": "",
"Address2": "",
"Address3": "",
"Phone": "",
"Mobile": "",
"Email": "",
"Is_Deleted": "0",
"Type": "S"
}
],
"Index": "500000",
"Datastatus": "Completed",
"Status": "Sucess",
"DateTime": "2022-03-25 16:07:44"
}
}
In InsertOrderDetail API, we will provide a list of all newly inserted orders along with their details. In other words, we will provide different Request Parameters for passing their values in these fields (Order ID, Order No., Customer ID, Marg ID, Type, Product Code, Quantity, etc) and then insert the items in the different Response Parameters (Order Details, Customer ID, User ID, Status, etc).
URL: https://wservices.margcompusoft.com/api/eOnlineData/InsertOrderDetail
API URL |
https://wservices.margcompusoft.com/api/eOnlineData/InsertOrderDetail |
Interface/API Name |
InsertOrderDetail |
Json Input |
{ "OrderID":"", "OrderNo": "", "CustomerID": "", "MargID": "", "Type": "", "Sid": "", "ProductCode": "", "Quantity": "", "Free": "", "Lat": "", "Lng": "", "Address": "", "GpsID": "", "UserType": "", "Points": "", "Discounts": "", "Transport": "", "Delivery": "", "Bankname": "", "BankAdd1": "", "BankAdd2": "", "shipname": "", "shipAdd1": "", "shipAdd2": "", "shipAdd3": "", "paymentmode": "", "paymentmodeAmount": "", "payment_remarks": "", "order_remarks": "", "CustMobile": "", "CompanyCode": "", "OrderFrom": "" } |
Request Type |
POST |
Content Type |
Application Json |
Interface Description |
This Service/Feature is used For Master Sync. For example Customer, Product Company, User Master etc. (It will Return All Data). |
Field Name | Data Type | Sample Value | Remark |
---|---|---|---|
OrderId | Integer | 494135 | Pass Auto generated unique Order Id |
OrderNo | Integer | 0 | Pass Default Value |
CustomerId | Integer | 77604 | Pass Customer Row Id |
MargId | Integer | 8835 | e-Business ID From Marg |
Type | String | S | Pass Default Value S (S:Sales Man) |
Sid | Integer | 6804 | Pass Sales Man Row ID |
ProductCode | Integer | 60 | Pass Item Code |
Quantity | Numeric | 10 | Pass Order Item Quantity |
Free | Numeric | 0 | Pass Free Item Quantity (Default Value 0) |
Lat | String | Blank | It’s Not mandatory field, (If want pass latitude of Address, please pass Here) |
Lng | String | " " | It’s Not mandatory field, (If want pass longitude of Address, please pass Here) |
Address | String | " " | It’s Not mandatory field (If want pass Order Punching Address, Pass here) |
GpsID | Integer | 0 | It’s Not mandatory field (Default Value 0) |
UserType | Integer | 1 | It’s mandatory field (Default Value 1) |
Points | Numeric | 0.00 | It’s Not mandatory field (Default Value 0.00) and it's used for Customer Earn Point Value |
Discounts | Numeric | 0.00 | It’s Not mandatory field (Default Value 0.00) and it's used for Discount Amount Particular Order |
Transport | String | Blank | It’s Not mandatory field (Default Value Blank) |
Delivery | String | It''s use for Order Delivery Purpose | |
BankName | String | " " | It’s Not mandatory field (Default Value Blank) |
BankAdd1 | String | " " | It’s Not mandatory field (Default Value Blank) |
BankAdd2 | String | " " | It’s Not mandatory field (Default Value Blank) |
ShipName | String | " " | It's use for Payment Detail Purpose |
ShipAdd1 | String | " " | " " |
ShipAdd2 | String | " " | " " |
ShipAdd3 | String | " " | " " |
PaymentMode | Integer | " " | It's use for Goods payment |
PaymentmodeAmount | Numeric | " " | " " |
Payment_remarks | String | " " | " " |
Order_remarks | String | " " | " " |
CustMobile | String | 1 | It’s Not mandatory field (Default value 1) |
CompanyCode | String | MARGLIVE | MARGLIVE |
OrderFrom | String | MARGLIVE |
{
"OrderID": "A000002",
"OrderNo": "0",
"CustomerID": "5396829",
"MargID": "1837",
"Type": "S",
"Sid": "21155",
"ProductCode": "5946",
"Quantity": "10",
"Free": "0",
"Lat": "",
"Lng": "",
"Address": "",
"GpsID": "0",
"UserType": "1",
"Points": "0.0",
"Discounts": "0.0",
"Transport": "",
"Delivery": "",
"Bankname": "",
"BankAdd1": "",
"BankAdd2": "",
"shipname": "",
"shipAdd1": "",
"shipAdd2": "",
"shipAdd3": "",
"paymentmode": "1",
"paymentmodeAmount": "0.00",
"payment_remarks": "",
"order_remarks": "",
"CustMobile": "",
"CompanyCode": " MargTest ",
"OrderFrom": " MargTest "
}
Json Object name | Field name | Data Type | Length/Decimal | Sample Value | Remark | |||||
---|---|---|---|---|---|---|---|---|---|---|
Order Details | OrderId | Integer | 0 | Auto generate Unique order Id | ||||||
" " | OrderNo | Integer | 77604 | Always return unique order Id (It should be used for Track dispatch Against order etc.) | ||||||
CustomerID | N/A | Integer | 77604 | customer Row Id | ||||||
UserID | - | - | - | - | N/A | |||||
Name | - | - | - | - | N/A | |||||
PCode | - | String | - | HLZ | N/A | |||||
Status | String | 10 | Success | Message | ||||||
Message | - | String | 26 | Record updated successfully | Record updated successfully |
{
"Details": {
"OrderDetails": [
{
"OrderID": "0",
"OrderNo": "1081271"
}
],
"CustomerID": "5396829",
"UserID": "",
"Name": "",
"PCode": "HLZ ",
"Status": "Sucess",
"Message": "Record Inserted Successfully"
}
}
With this API, we will provide all existing online bills as well as offline bills and inventory.
URL: https://wservices.margcompusoft.com/api/eOnlineData/InventoryVoucherGet2017
API URL |
https://wservices.margcompusoft.com/api/eOnlineData/InventoryVoucherGet2017 |
Interface/API Name |
InventoryVoucharGet2017 |
Json Input |
{"CompanyCode": "", "MargID": "", "Type": "", "FrmDatetime": "", "ToDatetime": "", "index": "" } |
Request Type |
POST |
Content Type |
Application Json |
Interface Description |
This Service/Feature is used For Master Sync. For example Customer, Product Company, User Master etc.. (It will Return All Data). |
Field Name | Data Type | Sample Value | Remark |
---|---|---|---|
CompanyCode | String | MARGLIVE | MARGLIVE |
MargID | Integer | 8835 | e-Business ID From Marg |
Type | Chart | S | Data |
FrmDateTIme | Date & Time | 2018-7-21 13:52:06 | If Date column is blank in that case API return All Data |
ToDatetime | Date & time | 2018-7-21 13:52:06 | If Date Column is blank in that case API return ALL Data. |
index | Integer | 0 |
{
"CompanyCode": "MARGLIVE",
"MargID": "8835",
"Type": "S",
"FrmDatetime": "",
"ToDatetime": "",
"index": "0"
}
Json Object name | Field name | Data Type | Length/Decimal | Sample Value | Remark | |||||
---|---|---|---|---|---|---|---|---|---|---|
OtherTrans | Rid | Integer | 20170110 | Row ID(Identity) | ||||||
" " | PartyRowID | Integer | ||||||||
" " | FrmCompId | Integer | 9 | 8835 | This Firm CompId | |||||
" " | Code | Varchar | 10 | 10000001 | Item Code | |||||
" " | VCN | Chart | 12 | It’s Bill No. | ||||||
" " | Date | Date & TIme | 26 | 2018-07-16 | API Return Date & TIme | |||||
" " | Amount | Numeric | 12,3 | 279.00 | Bill Value | |||||
" " | Billfmt | N/A | N/A | N/A | N/A | |||||
" " | Remsark | Varchar | 200 | BH-321 | General remark(combination of MRP, rate, Schemeetc) | |||||
"Index " | 0 | Integer | 0 | |||||||
DataStatus | Completed/Pending | Completed/Pending | ||||||||
Status | Success | Char | 10 | Success | Message | |||||
Datetime | 2017-02-24 | Date & Time | 26 | 2018-07-16 13:52:06 | API Return Date & Time |
{
{
Details:
{
OtherTrans: [
{
rid: 6147522,
PartyRowID: 325181,
FrmCompID: 0,
code: "CREDIT",
vcn: "WL020001074",
date: "2018-03-06",
amount: 564,
Billfmt: "H,1,WL020001074,06032018,,00000000,,1,,06032018,,,060320 18,-,0,0 T,Z2100,FOOD PRODUCTS,OIFPR024,OIFPR024,APPLE CIDER,500 ML,,L-7223,01082019,1,1,18,0,595,0.00,595,1,0,,1,0,0,178.50,0,352.96,63.54, MARG1020107, T,Z10110,FORMULATION,OIFOR005,OIFOR005,BOWLCARE,60 CAPS,,VW-765,01092020,1,1,12,0,210,0.00,210,1,0,,1,0,0,63,0,131.24,15.76,MARG 1040172, F,564,241.50,",
remarks: null
},
Index: "2000",
Datastatus: "Completed",
Status: "Sucess",
Datetime: "2018-09-10 15:14:12"
},
},
],
}
This API is used for collection on behalf of bill wise & outstanding wise collection. Distributor can get the collection with
User can do the manual collection and adjust the balance bill by bill also.
URL: http://wservices.margcompusoft.com/api/eOnlineData/LiveOrderTagUpload
API URL |
http://wservices.margcompusoft.com/api/eOnlineData/LiveOrderTagUpload |
Interface/API Name |
LiveOrderTagUpload |
Json Input |
{ "CompanyCode": "ORDSYNLV", "TAGNO": "0", "TagDetailIDArray": "[0]", "VOUCHERArray": "[500201036]", "PYMNTDATEArray": "[20/09/2018]", "RCPTAMTArray": "[100]", "SHORTArray": "[0]", "CHQNOArray": "[]", "CHQDTArray": "[]", "REMARKArray": "[test]", "BankArray": "[]", "BranchArray": "[]", "ItemArray": "[, ]", "QtyArray": "[, ]", "PartyCodeArray": "[#949154]", "SalesmanIDArray": "[51776]", "SVOUCHERArray": "[0]", "BillNoArray": "[0]", "PerticularArray": "[advance amount]", "adjBillRemarkArray": "[]", "ArrayPaymentType": "[1]", "MID": "", "TID": "", "CardHolder": "", "TxnID": "", "AuthID": "", "ArrayOtherStatus": "[]", "MargID":"10416" } |
Request Type |
POST |
Content Type |
Application Json |
Interface Description |
This API/Service is used for manual invoice |
Field Name | Data Type | Sample Value | Remark |
---|---|---|---|
CompanyCode | R | String | ORDSYNLV |
TAGNO | O | String | 0 |
TagDetailDArray | O | 0 | [0] |
VOUCHARArray | R | [500201036] | |
PYMNTDATEArray | R | [20/09/2018] | |
RCPTAMTArray | R | [100] | |
SHORTArray | R | [0] | |
CHQNOArray | O | [] | |
CHQDTArray | O | [] | |
REMARKArray | R | [test] | |
BANKArray | R | [] | |
BRANCHArray | O | [] | |
ITEMArray | O | [] | |
QTYArray | O | [] | |
PARTYCodeArray | R | String | [#949154] |
SalesmanIDArray | R | [51776] | |
SVOUCHARArray | O | [0] | |
BillNoArray | O | [0] | |
PerticularArray | R | String | [advance amount] |
adjBillRemarkArray | O | [] | |
ArrayPaymentType | R | [1] | |
MID | O | " " | |
TID | O | " " | |
CardHolder | O | " " | |
TxnID | O | " " | |
AuthID | O | " " | |
ArrayOtherStatus | O | [] | |
MargID | R | Integer | 10416 |
{
{ "CompanyCode": "ORDSYNLV",
"TAGNO": "0",
"TagDetailIDArray": "[0]",
"VOUCHERArray": "[500201036]",
"PYMNTDATEArray": "[20/09/2018]",
"RCPTAMTArray": "[100]",
"SHORTArray": "[0]",
"CHQNOArray": "[]",
"CHQDTArray": "[]",
"REMARKArray": "[test]",
"BankArray": "[]",
"BranchArray": "[]",
"ItemArray": "[, ]",
"QtyArray": "[, ]",
"PartyCodeArray":
"[#949154]",
"SalesmanIDArray": "[51776]",
"SVOUCHERArray": "[0]",
"BillNoArray": "[0]",
"PerticularArray": "[advance amount]",
"adjBillRemarkArray": "[]",
"ArrayPaymentType": "[1]",
"MID": "", "TID": "",
"CardHolder": "",
"TxnID": "",
"AuthID": "",
"ArrayOtherStatus": "[]",
"MargID":"10416" }
}
Json Object name | Field name | Data Type | Length/Decimal | Sample Value | Remark | |||||
---|---|---|---|---|---|---|---|---|---|---|
Details | ||||||||||
Status | Success | Success | ||||||||
Message | Success | Record updated Successfully |
{
{"Details":
"Status":"Sucess",
"Message":"Record Updated Sucessfully."
}
}
With this distributors can check their orders, invoices & outstanding party wise.
Using this API total party outstanding balance will show bill by bill.
URL: http://wservices.margcompusoft.com/api/eOnlineData/OutStandingData
API URL |
http://wservices.margcompusoft.com/api/eOnlineData/OutStandingData |
Interface/API Name |
OutstandingData |
Json Input |
{ "CompanyCode": "ORDSYNLV", "DateTime": "", "SalemanID": "ORDERJINI", "UserType":"S", "MargID":"10416" } |
Request Type |
POST |
Content Type |
Application Json |
Interface Description |
This API/Service used to check outstanding Data |
Field Name | Data Type | Sample Value | Remark |
---|---|---|---|
CompanyCode | R | String | ORDSYNLV |
DateTime | R | Date | " " |
SalesmanID | R | String | ORDERJINI |
UserType | R | String | "S" |
MargID | R | Integer | 10416 |
{
{ "CompanyCode": "ORDSYNLV",
"DateTime": "",
"SalemanID":
"ORDERJINI",
"UserType":"S",
"MargID":"10416" }
}
Json Object name | Field name | Data Type | Length/Decimal | Sample Value | Remark | |||||
---|---|---|---|---|---|---|---|---|---|---|
Outstanding_N | Rid | Integer | 4 | 8155419 | ||||||
" " | Code | String | 6 | #368 | ||||||
" " | Amount | Numeric | 9 | 2947.00 | ||||||
" " | Billno | String | 12 | 0000030 | ||||||
" " | Date | Date | 2018-09-20 | |||||||
" " | Duedays | Numeric | 5 | 0 | ||||||
" " | Vouchar | Numeric | 5 | 500200967 | ||||||
" " | Billval | Numeric | 5 | 2947.00 | ||||||
" " | Shopcode | String | 12 | Null | ||||||
" " | Is_Deleted | Bit | 1 | False | ||||||
" " | SVOUCHAR | Numeric | 5 | 500200819 | ||||||
" " | Area | String | 6 | A18 | ||||||
Outstanding_D | Rid | Integer | 4 | 8155419 | ||||||
Outstanding_B | Rid | Integer | 4 | 8155419 | ||||||
" " | Amount | Numeric | 9 | 2947.00 | ||||||
Status | Success | String | Success | |||||||
DateTime | Date&Time | 2018-09-20 17:29:06 | ||||||||
Message | Success | String | Success |
{
"Outstanding_N": [
{"rid": 9429251,
"code": "#8954 ",
"amount": 202.00,
"billno": "*CN0253 ",
"date": "2015-01-07",
"duedays": 0,
"Voucher": 2316016,
"billval": 202.00,
"shopcode": null,
"Is_Deleted": false,
"SVOUCHER": 1779076,
"Area": " "
}
],
"Outstanding_D": [
{ "rid": 9429284}
],
"Outstanding_B": [
{ "rid": 9429284,"amount": 35418.00}
],
"Status": "Success",
"DateTime": "2019-02-26 12:36:24",
"Message": "Success"
}
In this we provide all bill invoice detail, which relate to billfmt field, so user can these detail for own bill invoice.
Column | Field Name | Length | Data Type | Format/Description | Remarks |
---|---|---|---|---|---|
A | Type of record | 1 | Char(1) | H | Present (Hard coded)- Mandatory |
B | Document Format Version | 3 | String | 1.0 | Mandatory-Present (Hard coded) Shows as 1 in excel & 1.0 when opened in notepad |
C | Invoice Number | 15 | String | Generated by Company | Mandatory |
D | Invoice Date | 8 | String | DDMMYYYY | Mandatory |
E | Stockist Purchase Order No. | 20 | String | Generated by Stockist System | |
F | Order Date | 8 | String | DDMMYYYY | eg : 01072016 |
G | Documents Through | 30 | String | Bank / Direct - whatever applicable | Mandatory |
H | Payment | 1 | Integer | Put '0' Cash, '1' Credit | Mandatory |
I | Cheque No. | 15 | String | ||
J | Payment Due Date | 8 | String | DDMMYYYY | eg : 01072016 |
K | Transporter Name | 40 | String | ||
L | L.R. Number | 15 | String | We recommend that these columns are kept blank as generally there is a time lag till the LR details are filled in. If the stockist is in the same city he will receive the goods & physical copy, | |
M | L.R. Date | 8 | String | DDMMYYYY | on the same day & the soft copy will be delayed b'cos the LR details have to be filled in. The main purpose of the invoice soft copy is to reduce/eliminate the data entry of the stockist. If we wait for LR details then the soft copy will be delayed & the entire purpose of soft copy will be defeated |
N | Destination | 30 | String | City Name | Mandatory |
O | Number of cases in invoice | 3 | Integer | ||
P | Calculation method of invoice | 1 | Integer | Put '0' PTS Rate, '1' PTR Rate less discount | Present - (Hard Coded)- Mandatory |
Column | Field Name | Length | Data Type | Format/Description | Remarks |
---|---|---|---|---|---|
A | Type of record | 1 | Char(1) | T | Present - T (Hard Coded) |
B | Company Code | 5 | String | Unique - will be alloted by AWACS | Mandatory - (as created by Awacs) |
C | Company Name | 30 | String | Mandatory-Present - (Hard Coded). Shd be only 30 characters | |
D | Company Product Code | 15 | String | Existing SAP code or any other code - decided by Company | Mandatory |
E | Uniform Product Code (UPC) | 20 | String | Unique - will be alloted by AWACS | Mandatory |
F | Product Name | 40 | String | Brand Name with / without strength &/or pack | Mandatory - Should be in UPPER CASES |
G | Pack | 10 | String | ||
H | Manufacturer Name | 30 | String | Mandatory | |
I | Batch Number | 15 | String | Decided by Company | Mandatory |
J | Expiry Date | 8 | String | DDMMYYYY | Mandatory (eg: 01072019) |
K | PRI batch | 20 | String | ||
L | Blank field 1 | ||||
M | Taxes | 9 | Double | ||
N | Product Rate | 9 | Double | 999999.99 | Mandatory |
O | Actual Rate | 14,4 | Numeric | Put '0' Inclusive, '1' L.T. Extra | Mandatory |
P | Blank field 2 | ||||
Q | MRP | 14,4 | Numeric | Mandatory | |
R | Blank field 3 | ||||
S | Excise Tax | 12,2 | Numeric | ||
T | Blank field 4 | ||||
U | Quantity | 12,3 | Numeric | ||
V | Free Quantity | 12,3 | Numeric | 99999 | Mandatory |
W | Discount | 3,2 | Numeric | 99.99 | If present - Mandatory |
X | Volume Discount | 10,2 | Numeric | 999999.99 | If present - Mandatory |
Y | Discount 2 | 3,2 | Numeric | 99.99 | |
Z | Amount(Without Tax) | 12,2 | Numeric | 999999.99 | |
AA | Taxable Amount | 12,2 | Numeric | 999999.99 | Unit * PTR or PTS (PTR or PTS is based on input given in the field 'Calculation method of invoice' in the header row). |
AB | Blank field 5 | ||||
AC | Blank field 6 | ||||
AD | Blank field 7 | ||||
AE | Blank field 8 | ||||
AF | Blank field 9 | ||||
AG | Blank field 10 | ||||
AH | Blank field 11 | ||||
AI | Blank field 12 | ||||
AJ | Blank field 13 | ||||
AK | Blank field 14 | ||||
AL | Product Code | 10 | String | ||
AM | HSN code | 20 | String | ||
AN | Product Name | 25 | String | ||
AO | Packing | 25 | String | ||
AP | Rate 1 | 12,2 | Numeric | ||
AQ | Rate2 | 12,2 | Numeric | ||
AR | Rate3 | 12,2 | Numeric | ||
AS | Rate4 | 12,2 | Numeric | ||
AT | RSM | 20 | String |
Column | Field Name | Length | Data Type | Format/Description | Remarks |
---|---|---|---|---|---|
A | Type of Record | 1 | Char(1) | F | Mandatory-Present - F (Hard Coded) |
B | Total Gross Amount | 12 | Double | 999999999.99 (Without tax amount only for | Bill amount +Total amount =Gross AmountMandatory |
C | Misclleneous | 10 | Double | PTR Bills | Discount amount |
D | Any other +/- | 10 | Double | 9999999.99 | Other charges |
E | Freight | 12, 2 | Numeric | Freight Charges | |
F | Packing | 12,2 | Numeric | Packing charges |