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

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -