Testing historical orders

Highlighted
Shopify Partner
15 0 2

We are building a Rails app and have successfully written tests using GraphQL. However, some tests are failing because the test orders were created over 60 days in Shopify. We tried requesting the `read_all_orders` Shopify API scope but Shopify support denied our request. Any ideas? We don't want to create new Shopify orders every 60 days just to make sure the tests pass.

0 Likes
Highlighted
Shopify Staff
Shopify Staff
462 93 80

Hi @CorkLabs 

Are historical orders over 60 days old required for the app to function? If not, can you adjust the test with stubbed/fake data instead?

Vix | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 


0 Likes
Highlighted
Shopify Partner
15 0 2

Unfortunately the test is to ensure the data syncing with Shopify is working, so using stub data wouldn't work.

0 Likes