How can I generate a daily sales total with category breakdown

In PoS dashboard you can generate a report of daily sales by category.
Can I automate the daily export of this from the dashboard or alternativly duplicate the same data with the API?

With our Orders, Catalog and Payments APIs you can pull in the information to generate the report. You’ll to call SearchOrders and query for the day you want the data for. Once you have the orders you’ll then take all the line item catalog_object_ids and call BatchRetrieveCatalogObjects. Once you have the item object you can pars them for the category_ids.

Additionally, with the orders you can total the sales and you can take the payment_id from each order and GetPayment data. :slightly_smiling_face: