Applying coupons using woocommerce rest api
-
I am developing an application using woocommerce rest api v3. Now I’m trying to integrate coupons from my woocommerce website to my application. I’m creating an order and applying coupons like this
"coupon_lines":[{ 'code'=>'coupon1', 'amount'=>'1.00' }]
I’ve set a usage limit per user in woocommerce website.
When I ordered directly from website, usage restrictions are applied correctly.i.e, a user cannot use a coupon when a limit is reached. But when I make an order via REST api, the restrictions are not applied.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Applying coupons using woocommerce rest api’ is closed to new replies.