Woocommerce API for allowing backorders
-
Hello!
I am having issues trying to set the product, when uploaded or amended via a woocommerce REST API , to accept backorders or notify at those.
e. g.
curl –location ‘https://domain.com/wp-json/wc/v3/products’ \
–header ‘Content-Type: multipart/form-data’ \
–header ‘Authorization: Basic key’ \
–form ‘name=”Example product”‘ \
–form ‘stock_quantity=”2″‘ \
–form ‘stock_status=”instock”‘ \
–form ‘backorders=”yes”‘
The default action is that it does not and it is not to be altered by successive PUT request. According to the output from the API, none distinct from “yes”, “no” ,”notify” is accepted. How should I put this parameter?
This is the cutout of what I receive from the API:
“manage_stock”: true,
“stock_quantity”: 0,
“backorders”: “no”,
“backorders_allowed”: false,
“backordered”: false,
Any help would be much appreciated.
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.