Kindly Help us to solve issue Shopify API response code 202

Highlighted
New Member
2 0 0

Hi,

When we called your API to modify an existing checkout (method: PUT /admin/api/2020-10/checkouts/{token}.json), sometimes we received Shopify API response code as 202 Accepted The request has been accepted, but not yet processed.
With the Shopify API response code 202, your system not processed yet and has not responded yet result for us. So we couldn't get exact info about the checkout and could't show correct info to the Buyers.

Response Header:

HTTP/1.1 202 Accepted
Date: Tue, 27 Oct 2020 03:46:58 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Sorting-Hat-PodId: 130
X-Sorting-Hat-ShopId: 37248041091
Referrer-Policy: origin-when-cross-origin
X-Frame-Options: DENY
X-ShopId: 37248041091
X-ShardId: 130
X-Stats-UserId: 
X-Stats-ApiClientId: 3269835
X-Stats-ApiPermissionId: 244474314883
X-Shopify-API-Version: 2020-01
Location: https://powerbuy-shop-2020-staging.myshopify.com/admin/api/2020-01/checkouts/03a42c92cd8222d0ac32742d00f24154.json
HTTP_X_SHOPIFY_SHOP_API_CALL_LIMIT: 1/40
Retry-After: 1
Strict-Transport-Security: max-age=7889238
X-Request-Id: 6aa12706-8d19-4aee-bbc4-24344821fcc3
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.us.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=update&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Fabandoned_checkouts&source%5Bsection%5D=admin_api&source%5Buuid%5D=6aa12706-8d19-4aee-bbc4-24344821fcc3
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=update&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Fabandoned_checkouts&source%5Bsection%5D=admin_api&source%5Buuid%5D=6aa12706-8d19-4aee-bbc4-24344821fcc3
X-Dc: gcp-us-east1,gcp-us-east1
CF-Cache-Status: DYNAMIC
cf-request-id:0609c3997f0000cee88c0f6000000001
Expect-CT: max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"
Server: cloudflare
CF-RAY: 5e896ed59a5ecee8-IAD

 

Would you please help us to check and give us a solution to solve the issue.

Thanks.

0 Likes
Highlighted
Shopify Staff
Shopify Staff
644 78 141

Hey @powerbuyapp,

A 202 response is expected when Shopify has received your request but needs additional time to process it. See our tutorial here which talks about how to poll for completion after a 202 response.

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

0 Likes