Up_Dw.upload_receipts (eng) - datawizio/pythonAPI GitHub Wiki
Uploads information about receipts to the server.
Gets a list of objects of the receipt in the format
[{
'order_id': <order_id>,
'date': <date>,
'terminal_id': <terminal_id>,
'cartitems': [
{
"order_no": <order_no>,
"product_id": <product_id>,
"base_price": <base_price>,
"price": <price>,
"qty": <qty>,
"total_price": <total_price>
}
...
]
'loyalty_id': <loyalty_id>,
'cashier_id': <cashier_id>,
'shop_id': <shop_id>
}
...
]
or a path to the file *.csv.
Parameters:
columns: list,
default: [
'shop_id',
'terminal_id',
'cashier_id',
'loyalty_id',
'order_id',
'date',
'product_id',
'base_price',
'qty',
'total_price']
Sorted list of columns in the table in the file *.csv.
`splitter: str, default: ";"
Splitter of data in the file *.csv.
skip_chunks: int, default: 0
Number of data blocks that have to be omitted.