Surge in 430 status code in storefront graphql requests

varun_agarwal
Shopify Partner
6 0 8

I build custom apps for 30+ merchants. A lot of this functionality is through server to server (s2s) APIs using admin rest and storefront graphql. For the last 2 weeks I am getting a lot of 430 status codes from Shopify for both of these endpoints. Requests from my server will all come from a common pool of IP addresses so we use a delegate access token and Shopify-Storefront-Buyer-IP header in our outgoing requests. As per docs this tells shopify the originating IP which should help in reducing 429 and 430 status codes. But this has not helped at all.

 

Requests are CRUD operations to admin endpoint, queries and mutations to storefront graphql endpoints. Has anyone else faced this issue, what is the solution for this? We, and our Shopify plus merchants are losing a lot of money on a daily basis due to this. Most of the requests which get an error are query requests for the Shopify checkout object. The URL is https://merchant_shop_id.myshopify.com/api/2022-10/graphql.json

Sample query

query\:\query ($id: ID!) { node(id: $id) { id ... on Checkout { id requiresShipping shippingAddress { firstName lastName phone city province address1 country zip } note customAttributes { key value } paymentDue { amount currencyCode } webUrl orderStatusUrl taxExempt taxesIncluded currencyCode totalTax { amount currencyCode } lineItemsSubtotalPrice { amount currencyCode } subtotalPrice { amount currencyCode } totalPrice { amount currencyCode } completedAt createdAt updatedAt email discountApplications(first: 10) { edges { node { targetSelection allocationMethod targetType value { ... on MoneyV2 { amount currencyCode } ... on PricingPercentageValue { percentage } } ... on ManualDiscountApplication { title description } ... on DiscountCodeApplication { code applicable } ... on ScriptDiscountApplication { title } ... on AutomaticDiscountApplication { title } } }, pageInfo { hasNextPage hasPreviousPage } } shippingLine { handle price { amount currencyCode } title } customAttributes { key value } lineItems(first: 250) { pageInfo { hasNextPage hasPreviousPage } edges { cursor node { id title quantity variant { id title price { amount currencyCode } product { id handle title tags } } customAttributes { key value } discountAllocations { allocatedAmount { amount currencyCode } discountApplication { targetSelection allocationMethod targetType value { ... on MoneyV2 { amount currencyCode } ... on PricingPercentageValue { percentage } } ... on ManualDiscountApplication { title description } ... on DiscountCodeApplication { code applicable } ... on ScriptDiscountApplication { title } ... on AutomaticDiscountApplication { title } } } } } } } } }\,\variables\:{\id\:"shopify_checkout_gid"}}
Reply 1 (1)

Liam
Shopify Staff
2731 302 783

Hi Varun_agarwal

 

I've posted some advice for fixing this issue in your other thread here: https://community.shopify.com/c/authentication-and-access/surge-in-430-status-code-inspite-of-using-...

 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog