Title: <abbr title="Not Safe For Work / Mature content">[NSFW]</abbr> REST API Problem
Last modified: July 27, 2020

---

# [NSFW] REST API Problem

 *  Resolved [maxtheduke](https://wordpress.org/support/users/maxtheduke/)
 * (@maxtheduke)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/rest-api-problem-6/)
 * Hello,
    we try to connect our onlineshop via the rest API to our accounting system.
   In the advanced setting of Age Gate, the rest API is selected as the AJAX endpoint.
   Now we get a 404 error message during the connection: We retrieve the orders 
   from WooCommerce via the REST-API under the URL “/wp-json/wc/v3/orders/3”. At
   the moment we only receive the error code 404 and assume that the plugin prevents
   the retrieval. Is there a workaround to solve this problem?
 * Regards,
    Max
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frest-api-problem-6%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Phil](https://wordpress.org/support/users/philsbury/)
 * (@philsbury)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/rest-api-problem-6/#post-13177438)
 * Hi [@maxtheduke](https://wordpress.org/support/users/maxtheduke/),
 * It’s run some tests and all is ok from the plugin side.
 * However, looking at you’re endpoint, that doesn’t seem right.
 * `/wp-json/wc/v3/orders/3` is looking for an order with an ID of 3, you probably
   want `/wp-json/wc/v3/orders`.
 * If I hit [https://theduke-gin.de/wp-json/wc/v3/orders/3](https://theduke-gin.de/wp-json/wc/v3/orders/3)
   I get a 404 – with a messages of Invalid ID.
 * Hitting [https://theduke-gin.de/wp-json/wc/v3/orders/](https://theduke-gin.de/wp-json/wc/v3/orders/)
   I get a 401 as I’d expect as I haven’t supplied it and API keys.
 * Thanks
    Phil
 *  Thread Starter [maxtheduke](https://wordpress.org/support/users/maxtheduke/)
 * (@maxtheduke)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/rest-api-problem-6/#post-13185595)
 * Thank you Phil! Problem is solved and was created by another different plugin.

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

The topic ‘[NSFW] REST API Problem’ is closed to new replies.

 * ![](https://ps.w.org/age-gate/assets/icon-256x256.png?rev=2783003)
 * [Age Gate](https://wordpress.org/plugins/age-gate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/age-gate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/age-gate/)
 * [Active Topics](https://wordpress.org/support/plugin/age-gate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/age-gate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/age-gate/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [maxtheduke](https://wordpress.org/support/users/maxtheduke/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/rest-api-problem-6/#post-13185595)
 * Status: resolved