Title: REST API
Last modified: May 2, 2017

---

# REST API

 *  [slemmadev](https://wordpress.org/support/users/slemmadev/)
 * (@slemmadev)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/rest-api-17/)
 * Hello!
    We use query [https://store/wp-json/wc/v2/coupons](https://store/wp-json/wc/v2/coupons),
   but it return message: { “code”: “woocommerce_rest_cannot_view”, “message”: “
   Sorry, you cannot list resources.”, “data”: { “status”: 401 } } What’s the reason?
 * Other queries are working and return all data
    [https://our_store/wp-json/wc/v2/products](https://our_store/wp-json/wc/v2/products)
   [https://our_store/wp-json/wc/v2/orders](https://our_store/wp-json/wc/v2/orders)
   [https://our_store/wp-json/wc/v2/customers](https://our_store/wp-json/wc/v2/customers)
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Thread Starter [slemmadev](https://wordpress.org/support/users/slemmadev/)
 * (@slemmadev)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/rest-api-17/#post-9096708)
 * Sorry, the status of response 403, not 401.
    { “code”: “woocommerce_rest_cannot_view”,“
   message”: “Sorry, you cannot list resources.”, “data”: { “status”: 403 } }

Viewing 1 replies (of 1 total)

The topic ‘REST API’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-api-v2-woocommerce-endpoints.svg)
 * [WP API (V2) WooCommerce endpoints](https://wordpress.org/plugins/wp-api-v2-woocommerce-endpoints/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-api-v2-woocommerce-endpoints/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-api-v2-woocommerce-endpoints/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-api-v2-woocommerce-endpoints/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-api-v2-woocommerce-endpoints/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-api-v2-woocommerce-endpoints/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [slemmadev](https://wordpress.org/support/users/slemmadev/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/rest-api-17/#post-9096708)
 * Status: not resolved