item_qty_sold


GET /item_qty_sold

To get the quantity sold for a specific item based on search criteria given.

/item_qty_sold?token=XXXXX&item_code_or_barcode_365=5290001006599&date_from=2015-10-01&date_to=2016-02-23

field description
token Credentials provided by Powersoft that allow access to the API
item_code_or_barcode_365 Item code or barcode as is in 365
date_from From date. The date must be provided in format yyyy-mm-dd
date_to To date. The date must be provided in format yyyy-mm-dd

Returns

             {
                "api_response": {
                    "response_code": "1",
                    "response_msg": "OK",
                    "response_id": ""
                },
                "item_qty_sold": {
                    "item_code_365": "APIITEM1",
                    "item_main_barcode": "5290001006599",
                    "qty_sold": 1,
                    "qty_returned": 0,
                    "total_qty_sold": 1
                }
            }
        

total_qty_sold = qty_sold - qty_returned.