PRINT SERVER Api Doc
Auth Password required for api access
duebillPosPrint [POST]
- ApiPayload :
{
"LOGIN_PASS":"NEED PASSWORD",
"FLAG_INV_TRANSACTION":0, // 0 for transactionid from ord,1 for invoiceid from svr
"SECTION_ID":0,//0 for system , tab then section id
"ERROR_JSON":[],//json array
}
- ERROR_JSON :
[
{
"portno": 9100,
"PrinterName": "192.168.0.80",
"printno": 1,
"noofcopy": 1,
"printertype": "NW",
"transactionid": 199,
"invoiceORtransactionid": 1,
"papersize": 70
},
{
"portno": 9100,
"PrinterName": "192.168.0.80",
"printno": 2,
"noofcopy": 1,
"printertype": "NW",
"transactionid": 199,
"invoiceORtransactionid": 1,
"papersize": 70
}
]
- ApiResponce :
200/401/402
voidPrint [POST]
- ApiPayload :
{
"LOGIN_PASS":"NEED PASSWORD",
"TABORSYSTEM":0, //1 for tab 0 for system
"ERROR_JSON":[],//json array
"VOID_ROWID": 1,
}
- Error json :
[
{
"portno": 9100,
"PrinterName": "192.168.0.80",
"printertype": "NW",
"voidrowid": 126,
"noofcopy": 2,
"consolPrintnumber": 0,
"papersize": 80
},
{
"portno": 9100,
"PrinterName": "192.168.0.80",
"printertype": "NW",
"voidrowid": 126,
"noofcopy": 2,
"consolPrintnumber": 1,
"papersize": 80
}
]
- ApiResponce :
200/401/402
conskotPosPrint [POST]
- ApiPayload :
{
"LOGIN_PASS":"NEED PASSWORD",
"TRANSACTIONID":1,
"ERROR_JSON":[],//json array
"SECTION_ID": 0, // 0 for system other wise pass section id (Tab)
}
}
- ApiResponce :
200/401/402
- Error json :
[
{
"portno": 9100,
"PrinterName": "192.168.0.90",
"consolkotnumber": 1,
"printertype": "NW",
"noofcopy": 2,
"transactionid": 280,
"papersize": 80
},
{
"portno": 9100,
"PrinterName": "192.168.0.90",
"consolkotnumber": 2,
"printertype": "NW",
"noofcopy": 2,
"transactionid": 280,
"papersize": 80
}
]
kotPosPrint [POST]
- ApiPayload :
{
"TRANSACTIONID":101,
"KOTorDUPKOT": 0,//0 kot 1//duplicate kot
"ERROR_JSON":[],//Json Array
"LOGIN_PASS":"NEED PASSWORD"
}
- Error json :
[
{
"PrinterName": "192.168.0.80",
"KitchenName": "k1",
"noofcopy": 2,
"KitchenId": 117,
"PortNumber": 9100
},
{
"PrinterName": "192.168.0.90",
"KitchenName": "k2",
"noofcopy": 2,
"KitchenId": 118,
"PortNumber": 9100
}
]
ApiResponce :200/400 etc
{
"0": "KitchenName: CHINESE KITCHEN PrinterName: Regtech"
}
kotVposPrint [POST]
- ApiPayload :
{
"TRANSACTIONID":101
"LOGIN_PASS":"NEED PASSWORD"
}
- ApiResponce : //offline printer info
{
"0": "KitchenName: CHINESE KITCHEN PrinterName: Regtech"
}
usbPrinters [GET]
- ApiResponce :
{"1":"printer1","2":"printer2"}
conskotVposPrint [POST]
- ApiPayload :
{
"PRINTER_TYPE": "NETWORK", // NETWORK or USB
"PRINTER_IP": "192.168.0.95",
"PRINTER_PORTNO": 9100,
"PAPER_SIZE": 80, //80 or 75
"TRANSACTIONID": 1,
"LOGIN_PASS":"NEED PASSWORD",
"PRINT_COPY_NO":0 //0 => normal 1=>con 1 2=>con 2 3=>con 3
}
- ApiResponce :
200/401/402