A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi everyone,
I follow the order testing manual in order to secure my development store from the ban. Everything is OK until the very last step where i check that order.test parameter become true. Here are my transtactions:
url: https://flot-test.myshopify.com/admin/api/2022-07/orders/4621368131651/transactions.json
status_code: 200
X-Request-ID: e33d6c2a-1f58-4a3e-85a5-d18d15177a55
response_body:
{"transactions":[{"id":5698198536259,"order_id":4621374259267,"kind":"authorization","gateway":"","status":"success","message":null,"created_at":"2022-09-14T04:39:05-04:00","test":false,"authorization":null,"location_id":null,"user_id":null,"parent_id":null,"processed_at":"2022-09-14T04:39:05-04:00","device_id":null,"error_code":null,"source_name":"5694193665","receipt":{},"amount":"20.00","currency":"USD","admin_graphql_api_id":"gid:\/\/shopify\/OrderTransaction\/5698198536259"},{"id":5698198569027,"order_id":4621374259267,"kind":"capture","gateway":"","status":"success","message":"Marked the payment as received","created_at":"2022-09-14T04:39:06-04:00","test":true,"authorization":null,"location_id":null,"user_id":null,"parent_id":5698198536259,"processed_at":"2022-09-14T04:39:06-04:00","device_id":null,"error_code":null,"source_name":"5694193665","receipt":{},"amount":"20.00","currency":"USD","admin_graphql_api_id":"gid:\/\/shopify\/OrderTransaction\/5698198569027"}]}
You may notice that the second transaction has test parameter set to true. After that I check the order:
url: https://flot-test.myshopify.com/admin/api/2022-07/orders/4621374259267.json
status_code: 200
X-Request-ID: 53fcad14-777d-4abf-864d-aedf91ee35fd
response_body:
<skipped, but with "test":false>
Could you advise where is the problem, please? I'm afraid that I'll receive a permanent ban for my development store.
Thanks!
Solved! Go to the solution
This is an accepted solution.
The problem was that you need to create order with 'test' parameter set to true and there is nothing about it in the official manual. Resolved here: https://community.shopify.com/c/shopify-apis-and-sdks/managing-testing-orders-via-api-is-not-working...
Today my development store was banned :-(. It's sad that support is refusing to help with API issues and is redirecting to comminity.shopify.com while community.shopify.com is silent for 2 weeks. Don't know what to do now.
6 months and no solution :-(. I continue to receive checkout bans and the support team continues to unban me. I've reposted the problem in community section about APIs and SDKs: https://community.shopify.com/c/shopify-apis-and-sdks/managing-testing-orders-via-api-is-not-working...
This is an accepted solution.
The problem was that you need to create order with 'test' parameter set to true and there is nothing about it in the official manual. Resolved here: https://community.shopify.com/c/shopify-apis-and-sdks/managing-testing-orders-via-api-is-not-working...