Print Bill
Print Invoice to Corresponding POS
URL
pos_printer/bill
Method
POST
Request Media type
application/json
Response Media type
application/json
Request Parameters
| Parameter | Data Type | Min | Max | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| POSName | String | M | AC Dine In | POS Name where invoice print should receive | ||
| InvoiceNo | String | M | 2023/A/2450 | Invoice Number | ||
| InvoiceDateTime | String | M | 2023-08-03 15:18:32 | Invoice Date in the format of yyyy-MM-dd HH:mm:ss | ||
| Waiter | String | M | SAM | Waiter Name | ||
| KOTNumbers | String | M | 20,35 | KOT Numbers | ||
| SpecialDiscount | Decimal | O | 0.0 | Special Discount for the invoice | ||
| RoundOff | Decimal | O | 0.0 | Round Off | ||
| ItemDetails | Array | M | Item Details | |||
| ItemCode | Integer | O | 541 | Item Code for Product | ||
| Qty | String | M | 2 | Qty to Invoiced | ||
| Rate | Decimal | M | 45.00 | Rate of the Item | ||
| Discount | Decimal | O | 0.00 | Discount for the item | ||
| ItemName | String | M | SHAWARMA | Name of Item | ||
| CustomerName | String | O | Name of Customer | |||
| CustomerAddress | String | O | Address of customer | |||
| CustomerGstin | String | O | GST number of customer |
Response Values
| Name | Data Type | Min Length | Max Length | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| InvoiceNo | String | M | 2023/A/2450 | Accepted Invoice Number |
Sample Request
{
"POSName": "AC Dine In",
"InvoiceNo": "2023/A/2450",
"InvoiceDateTime": "2023-08-03 15:18:32",
"Waiter": "SAM",
"KOTNumbers": "20,35",
"SpecialDiscount": "0.0",
"RoundOff": "0.0",
"ItemDetails": [
{
"ItemCode": "541",
"Qty": "2",
"Rate": "45.00",
"Discount": "0.00",
"ItemName": "SHAWARMA"
}
]
}
Sample Success Response
{
"InvoiceNo": "2023/A/2450",
"e": 200,
"msg": "Success"
}
Sample Failure Responses
{
"e": 304,
"msg": "Syntax error, malformed JSON."
}
{
"e": 400,
"msg": "Bad Request."
}