Create coupon with WP API
-
Hi WooCommerce 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….
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.
- The topic ‘Create coupon with WP API’ is closed to new replies.