When I am trying to get order details using Shopify API to call then sometimes I’m getting a response as following.
Array
(
[headers] => Array
(
[status] => HTTP/2 404
[date] => Wed, 07 Apr 2021 08:52:10 GMT
[content-type] => application/json; charset=utf-8
[x-sorting-hat-podid] => 73
[x-sorting-hat-shopid] => 14698742
[vary] => Accept-Encoding
[referrer-policy] => origin-when-cross-origin
[x-frame-options] => DENY
[x-shopid] => 14698742
[x-shardid] => 73
[x-stats-userid] =>
[x-stats-apiclientid] => 2441839
[x-stats-apipermissionid] => 80515104842
[http_x_shopify_shop_api_call_limit] => 1/40
[x-shopify-shop-api-call-limit] => 1/40
[x-shopify-api-version] => 2020-04
[x-shopify-api-version-warning] => https://shopify.dev/concepts/about-apis/versioning
[strict-transport-security] => max-age=7889238
[x-shopify-stage] => production
[content-security-policy] => default-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://* shopify-pos://*; block-all-mixed-content; child-src 'self' https://* shopify-pos://*; connect-src 'self' wss://* https://*; frame-ancestors 'none'; img-src 'self' data: blob: https:; script-src https://cdn.shopify.com https://cdn.shopifycdn.net https://checkout.shopifycs.com https://js-agent.newrelic.com https://bam.nr-data.net https://api.stripe.com https://mpsnare.iesnare.com https://appcenter.intuit.com https://www.paypal.com https://js.braintreegateway.com https://c.paypal.com https://maps.googleapis.com https://www.google-analytics.com https://v.shopify.com https://widget.intercom.io https://js.intercomcdn.com 'self' 'unsafe-inline' 'unsafe-eval'; upgrade-insecure-requests; report-uri /csp-report?source%5Baction%5D=show&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Forders&source%5Bsection%5D=admin_api&source%5Buuid%5D=45a36481-6375-47c9-a49f-20478cf16d9d
[x-content-type-options] => nosniff
[x-download-options] => noopen
[x-permitted-cross-domain-policies] => none
[x-xss-protection] => 1; mode=block; report=/xss-report?source%5Baction%5D=show&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Forders&source%5Bsection%5D=admin_api&source%5Buuid%5D=45a36481-6375-47c9-a49f-20478cf16d9d
[x-dc] => gcp-asia-southeast1,gcp-us-east1,gcp-us-east1
[x-request-id] => 45a36481-6375-47c9-a49f-20478cf16d9d
[set-cookie] => _shopify_fs=2021-04-07T08%3A52%3A10Z; Expires=Thu, 07-Apr-22 08:52:10 GMT; Domain=the-lost-breed.myshopify.com; Path=/; SameSite=Lax
[cf-cache-status] => DYNAMIC
[cf-request-id] => 094d213ea100002e2f1e8fe000000001
[expect-ct] => max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
[server] => cloudflare
[cf-ray] => 63c204aa9f7c2e2f-BOM
[alt-svc] => h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
)
[response] => {"errors":"Not Found"}
)
The application has all orders access.
I see this issue happened for multiple stores.
So, Have any idea why this happening and how can I prevent it?