Title: WC API JSON error
Last modified: April 25, 2019

---

# WC API JSON error

 *  Resolved [vitlib](https://wordpress.org/support/users/vitlib/)
 * (@vitlib)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/wc-api-json-error/)
 * Hi,
 * I have a self-hosted WP eshop [http://www.mementerra.cz](http://www.mementerra.cz).
   I’m using the WC API to fetch eshop orders so that I can do other procedures 
   with them (I’ve self-coded this in PHP). Everything’s been working just fine 
   until 2 days ago (I guess when I updated the WC plugin), when it stopped working
   and upon debugging on localhost, I keep hitting this error.
    [http://prntscr.com/ngn425](http://prntscr.com/ngn425)
 * The code I’m using to fetch the orders is here: [https://prnt.sc/ngn6mw](https://prnt.sc/ngn6mw)
   and here: [https://prnt.sc/ngn6re](https://prnt.sc/ngn6re)
 * WP system status:
    [https://textuploader.com/1d5tm](https://textuploader.com/1d5tm)
 * Thank you so much,
 * Vít
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwc-api-json-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Hannah S.L.](https://wordpress.org/support/users/fernashes/)
 * (@fernashes)
 * Automattic Happiness Engineer
 * [7 years, 1 month ago](https://wordpress.org/support/topic/wc-api-json-error/#post-11469379)
 * Hey there,
 * This is a fairly complex development topic. I’m going to leave it open for a 
   bit to see if anyone is able to chime in to help you out.
 * I can also recommend the following places for more development-oriented questions:
    1. WooCommerce Slack Community: [https://woocommerce.com/community-slack/](https://woocommerce.com/community-slack/)
    2. Advanced WooCommerce group on Facebook: [https://www.facebook.com/groups/advanced.woocommerce/](https://www.facebook.com/groups/advanced.woocommerce/)
 *  Plugin Support [Hannah S.L.](https://wordpress.org/support/users/fernashes/)
 * (@fernashes)
 * Automattic Happiness Engineer
 * [7 years, 1 month ago](https://wordpress.org/support/topic/wc-api-json-error/#post-11500486)
 * No one has been able to chime in, so I’ll close this topic – if you have any 
   further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WC API JSON error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [json](https://wordpress.org/support/topic-tag/json/)

 * 2 replies
 * 2 participants
 * Last reply from: [Hannah S.L.](https://wordpress.org/support/users/fernashes/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/wc-api-json-error/#post-11500486)
 * Status: resolved