I'm working on an interface to exchange data between our OMS and WooCommerce using the Python WooCommere API Wrapper and I'm having trouble getting orders based on status. I can get all of the orders like this
tmp_orders = DIVISION_API.get('orders')
but I'm trying to get only the orders with the status of 'processing'. Based on the API documentation and the json results from the order data I get with the above call, it looks like I should be able to call
tmp_orders = DIVISION_API.get('orders', status='processing')
and only get the orders that are in the processing state, but when I try this I get the error TypeError: request() got an unexpected keyword argument 'status'
.
I've looked for solid examples using Python but can't find any solution. Any suggestions would be fantastic.
Thanks.
.get('orders/<id>')
, but I can’t find anything about status. It seems odd not to have any examples for filtering based on anything other than ID. – NateBrink