Title: WP API and WooCommerce
Last modified: August 31, 2016

---

# WP API and WooCommerce

 *  Resolved [Goharika](https://wordpress.org/support/users/goharika/)
 * (@goharika)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wp-api-and-woocommerce/)
 * Hi WP API team,
    I need help connected with sending POST request for orders or
   coupons with my application. Here is how I am trying to create new coupon 1. 
   this is json I am trying to send {“amount”:10,”code”:”new code”,”type”:”percent”}
   2.Here is URL where I am sending the data [https://myurl/wc-api/v3/coupons?consumerkeys&#8230](https://myurl/wc-api/v3/coupons?consumerkeys&#8230);.
   3. Authentication I want to mention I am using Basic Auth for authentication 
   It doesn’t return any error but I am checking admin panel and empty result.
 * [https://wordpress.org/plugins/rest-api/](https://wordpress.org/plugins/rest-api/)

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

 *  Plugin Author [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wp-api-and-woocommerce/#post-7070465)
 * This question would be better suited for the WooCommerce support forums, as it’s
   outside the scope of support for this plugin.
 *  Thread Starter [Goharika](https://wordpress.org/support/users/goharika/)
 * (@goharika)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wp-api-and-woocommerce/#post-7070499)
 * Thanks Daniel Bachhuber 🙂

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

The topic ‘WP API and WooCommerce’ is closed to new replies.

 * ![](https://ps.w.org/rest-api/assets/icon-256x256.png?rev=1346297)
 * [WordPress REST API (Version 2)](https://wordpress.org/plugins/rest-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rest-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rest-api/)
 * [Active Topics](https://wordpress.org/support/plugin/rest-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rest-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rest-api/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Goharika](https://wordpress.org/support/users/goharika/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/wp-api-and-woocommerce/#post-7070499)
 * Status: resolved