I want to download a summary report but don't know what to do

I’m trying to download a file on square up called sales report. You have to click a button to download the file. I want to be able to do this from terminal so I can include it into a python script.

It uses a form to then download the data. I have looked into their api and its not helpful in this aspect.

I believe it is sending a request to a server but how do i replicate this?

Thanks in Advance

Here is the html:

Export

At this time a Reporting API for generating the reports you see on the Square Dashboard aren’t currently available. The only way to generate the reports with our API at this time is to pull in all the data with our APIs and do your own calculations. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. :slightly_smiling_face:

I haven’t been able to figure out how to extract exact item data out of the API… Is this possible?

Yes, with the Orders API you’ll get the itemized order. You’ll then take the catalog_object_id from the order and call the Catalog API to get the item data that you’ll use to create itemized reports. :slightly_smiling_face:

Does this work for till orders as well?

Yes, orders placed through Square Point of Sale will also be itemized and accessible via the Orders API in the same way.

Okay thank you very much for your help

1 Like