I am looking to create some test data that I can use to work with the order API. I would like to be able to test with fake historical data, but I only see the option to create new orders at a given moment in time. Is there any way to import in sales data to the development store environment?
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
Square Developer Documentation
Square Sandbox
Point of Sale API and POS Integration Tools
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.
Unfortunately, Square’s APIs do not support creating orders with a past creation date. The Orders API only allows you to create new orders at the current time. There isn’t a built-in way to import historical sales data into the Square Sandbox for testing purposes. The Sandbox environment is designed to simulate transactions and doesn’t support backdating or importing historical data.
This answer was reviewed by @Bryan-Square.