wordpress - How to reduce stock when creating new order using Woo commerce REST API -
i using woo commerce rest api connect web store android app , working good.
now when creating new order app status of order default pending payment , stock not being reduced.
i have searched issue , got solution need set 'set_paid' => true, data when calling create order api app default status processing , stock reduced.
but when use 'set_paid' => true, in data getting authentication error 401 unauthorized.
is possible set 'set_paid' => true, when payment method cash on delivery?
i not have concern default status through api want reduce stock when order goes in processing mode whether through api or through wp-admin
Comments
Post a Comment