Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

GraphQL createDraftOrder mutation field 'provinceCode' not working as expected.

GraphQL createDraftOrder mutation field 'provinceCode' not working as expected.

HelloToxicity
Shopify Partner
5 1 0

Hey everyone,

I'm running into an issue with the draftOrderCreate GraphQL mutation. No matter what valid provinceCode I input, the frontend throws a "Region is unspecified" error.

I've attached the draft_order_create_req.csv and draft_order_create_res.csv files in case they're helpful.

Has anyone else encountered this? Any tips or solutions would be greatly appreciated!

Thanks in advance for your help.

Reply 1 (1)

Eric-HAN
Shopify Partner
275 30 29

Hi , there

 

I know the reason . you need to specify explicitly the country code such as "US".  when you done , the province code works.

- Helpful? Please hit Like and mark it as a solution
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me    Buy Me A Coffee