DW.get_receipt (eng) - datawizio/pythonAPI GitHub Wiki

get_receipt – returns information about the receipt.

Shows the list of products in the receipt, name and cost of every product, total cost of purchasing and time of its making.

Parameters:

receipt_id: int

Returns:

Returns wordindex in the format 'json'.


{
     "date": <receipt_date>,
          "cartitems": [{
                         "product_id": <product_id>,
                         "product_name": <product_name>,
                         "price": <price>,
                         "qty":<qty>,
                         "category_id":<category_id>,
                         "category_name":<category_name>
                         }],
        "total_price":<total_price>,
        "receipt_id":<receipt_id>,
        "loyalty_id":<loyalty_id>
 }

Examples:

          dw = datawiz.DW()
          dw.get_receipt(19623631)
⚠️ **GitHub.com Fallback** ⚠️