• Resolved raymondlv

    (@raymondlv)


    Hi team,

    Now what I can get from the Woocommerece Rest API is only the state code, no state name.

    “state”:”BC”

    I want to get both of them from the API for the order info like the following

    “state code”:”BC”

    “state name”:”British Columbia”

    How can I achieve it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey there, @raymondlv! Thanks for contacting us.

    To do that, you would need custom code.

    While we can’t provide support for code customization as per our support policy, we do our best to offer advice and direct you to appropriate resources.

    You can visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there too.

    I’m going to leave it open for a bit to see if anyone is able to chime in and help you out further.

    Please let us know if there’s anything else we can do to help or if you have any questions.

    Have a wonderful day!

    anastas10s

    (@anastas10s)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to get state name & state code from Woocommerce Rest API’ is closed to new replies.