Print KOT
Print KOT in ESC POS Protocol Support Printer
URL
pos_printer/kot
Method
POST
Request Media type
application/json
Response Media type
application/json
Request Parameters
| Parameter | Data Type | Min | Max | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| KOTTime | String | M | 2023-08-03 15:18:32 | KOT Time in the format of yyyy-MM-dd HH:mm:ss | ||
| KOTNumber | String | M | 542356 | String Value Showing KOT Number | ||
| TableName | String | M | T 1 | Table Name | ||
| OrderMode | String | M | DINE-IN | DINE-IN, PARCEL, TAKEAWAY are the order mode | ||
| OrderItems | Array | M | List Of order Items | |||
| id | Integer | O | 541 | Item Code for selected Item | ||
| note | String | M | Add Less salt | Special Instruction for preparing the item | ||
| qty | Integer | M | 2 | Qty to be prepared | ||
| itemname | String | M | SHAWARMA | Item Name | ||
| CommonInstruction | String | M | Deliver | Common Instruction in order | ||
| POSName | String | M | HUT | Pos Name | ||
| waiter | String | M | SAM | Waiter name | ||
| OrderTime | String | O | 13:05 PM | Order Time | ||
| cancelled | Array | M | Cancelled Item list | |||
| itemname | String | M | CHICKEN 65 | Cancelled Item Name | ||
| id | Integer | M | 768 | Item ID | ||
| qty | Integer | M | 3 | Cancelled Qty |
Response Values
| Name | Data Type | Min Length | Max Length | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| KOTNumber | String | M | 542356 | Accepted KOT Number |
Sample Request
{
"KOTTime": "2023-08-03 15:18:32",
"KOTNumber": "542356",
"TableName": "T 1",
"OrderMode": "DINE-IN",
"OrderItems": [
{
"id": "541",
"note": "Add Less salt",
"qty": "2",
"itemname": "SHAWARMA"
}
],
"CommonInstruction": "Deliver",
"POSName": "HUT",
"waiter": "SAM",
"OrderTime": "13:05 PM",
"cancelled": [
{
"itemname": "CHICKEN 65",
"id": "768",
"qty": "3"
}
]
}
Sample Success Response
{
"KOTNumber": "542356",
"e": 200,
"msg": "Success"
}
Sample Failure Responses
{
"e": 304,
"msg": "Syntax error, malformed JSON."
}
{
"e": 400,
"msg": "Bad Request."
}