Creating a Shipping Zone via GraphQL?

jessica_grav
Shopify Partner
11 0 1

In Settings > Shipping and Delivery > Manage Rates there is a section where you can "Create Shipping Zone"

Brass tacks, I'm trying to figure out how to do that at all. This post https://community.shopify.com/c/Shopify-APIs-and-SDKs/Manage-Shipping-Zones-through-API/td-p/538964 mentioned there is no API method for that, but a reply mentions the possibility of GraphQL.

When looking in GraphQL, I can't find anything that uses the same terminology of Shipping Zone, though there are sections that sort of fit the bill. I basically need the app I'm developing to automatically add a zone for a particular country if that country does not exist already. The screen that creates it manually is attached.

Thanks

Screen Shot 2021-08-19 at 12.11.49 PM.png
 
Replies 2 (2)
jessica_grav
Shopify Partner
11 0 1

Still have this issue. Any insight?

GrahamS
Shopify Staff
Shopify Staff
193 35 48

Hello @jessica_grav ,

The docs use a different terminology than the admin in this case - I believe what you're looking for is THIS MUTATION.

I hope this helps!

Best,

Graham

Graham S | API Support @ 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