Using Sales Report Sample App in a Production Environment

Hello! I’m using the Sales Report sample app found here…

…to help me get an idea of how I can use the APIs to do what I need. I was thinking of repurposing this code for my own use; however, there is a comment under the main function:

“# We don’t recommend running this script in a production environment”

My question is: why?

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

https://developer.squareup.com/docs/orders-api/quick-start/start
Order-Ahead Sample Application
Basics of Building Applications

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

Where are you seeing this comment? I just took a look at the documentation and I don’t see it. :slightly_smiling_face:

It’s a comment in the code, right under the main function in the sales-report-sample.py I believe

I’m checking with the team on this but I believe that’s because this seeds data and then reports on it and you don’t want to seed data in production. :slightly_smiling_face:

1 Like