How to delete a coupon using api and coupon code in WooCommerce
In WooCommerce, I created a coupon like this. $coupon_data = [ 'code' => $code, 'amount' => '15', ]; $wooCommerceMRLiveV2 = WooCommerceConnection::wooCommerceMRLiveV2(); $retval2 = $wooCommerceMRLiveV2->post('coupons', $coupon_data); And when the coupon code is used, I need to delete it manually. But according…