This app command enable Oliver to print predefined data from an external source (URL) on a document. User can define the number of copies to print.
GET
Description:
Fetch data from a URL and print the data on a customized receipt with the defined number of copies.
Request Body:
JSON
{
command: 'ReceiptData',
method: 'post',
version: '2.0'
}
Response Body:
JSON
{
oliverpos:{
command: 'ReceiptData',
method: 'get',
version: '2.0',
status: 200,
}
data: {
logo_img: "/Content/CompanyLogo\\RecieptLogo\\15407854988/index.png", logo_text: "Test Shop",
print_slip_size: "58mm",
rows: Array(14){
0:
{
alg: "0",
bold: "0,0,0",
c1: "Date: 2022/11/03",
c2: "",
c3: "",
cms: 1,
fs: "24",
rn: 0
},
1:
{
alg: "0",
bold: "0,0,0",
c1: "Time: 12:26 PM",
c2: "",
c3: "",
cms: 1,
fs: "24",
rn: 1 }
[...] } } }
Parameters:
Attribute Name | Attribute Type | Description | Enum | Required (binary) |
command | string | High level command name to interact with Oliver | null | 1 |
method | string | These correspond to create, read, update, and delete (or CRUD) operations | null | 1 |
version | string | The version of the command used | null | 1 |
url | string | Source of the data | null | 1 |
quantity | integer | Number of copies to print | null | 1 |
โ