• Resolved tonysilvatsd16

    (@tonysilvatsd16)


    Hello,

    Does this plugin support woocommerce rest api?

    We have a client that is using this plugin to manage the stock for their products. For example, they have a product out of stock, but the rest api (woocommerce) returns the following: manage_stock: false, stock_quantity: null and stockstatus: instock. The correct response for the product should be outofstock with the correct stock quantity?.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mewz

    (@mewz)

    Hi @tonysilvatsd16,

    By default product stock limiting only applies to WooCommerce API requests when called from the site’s frontend. So it won’t happen when you request the API directly, by URL or from Postman for example.

    If you want to enable this, the easiest way is to set the “Limit product stock” setting to “Everywhere”, under WooCommerce > Settings > Products > Inventory.

    If you need any more info, just let us know.

    Thread Starter tonysilvatsd16

    (@tonysilvatsd16)

    Thanks for the help, setting that option to Everywhere did fixed the issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce Rest support’ is closed to new replies.