Hi and thank you for contacting us. Not sure if we’ve get it right, your are trying to retrieve a shipping zone name. Right?
If so, we don’t do any changing for the shipping zones formation or name, we just change the states sent for the different dropdown lists.
Hope this help.
Thanks for your reply.
I am trying to retrieve shipping zone location. Its done using rest API. but it does not returns the location name. “code”: “KW:003”
003 is the ID of the location. I want to get the Location name instant of ID.
It would be great if you can email the support team the request you are sending and which end-point of the API you are hitting. We will try it out and see if we can help you with that. Please, use e-mail and don’t reply in this thread to better protect your privacy.
Noted, Please send me your support mail id.
thanks
Unfortunately it is in the DNA of the Woocommerce REST API for the end point you are using. It has nothing to do with our plugin which added the state for you. The end point you sent sends the state code only.
Please check this documentation: https://github.com/woocommerce/woocommerce-rest-api-docs/blob/trunk/source/includes/wp-api-v3/_shipping-zone-locations.md
You can consult the WC documentation for a different end-point or you can customize the REST API itself to include the name in the object.
Hope this helps.