Api list Order Status

Hi,

is it possible to obtain a json with all the possible states of the order through the API?
I would like to map all the possible states that any order can have.

thanks

1 Like

Hi @whiterabbit ,

You should be able to obtain all the values that you need from our Order API documentation.

If you find there’s something that it doesn’t cover, let us know so that we can have it added!

Thanks for the reply.
I have already read the API documentation for orders and give info but I have to pass (I think I understand) always an id (order_id) to know the status of the order.
I would like to know what are all possible states of all orders.
also the states not yet associated with any order.

Hey again @whiterabbit ,

You don’t have to pass an order ID necessarily to fetch orders, if you just send a GET request to /orders.json 50 orders will be returned by default. If you send a limit parameter as well (ex. /orders.json?limit=250) you can return up to 250 at a time too.

There are a lot of different states that an order can be in, provided that you’re not referring specifically to the ‘status’ of an order. Any available values for any order fields should be in our documentation though. There wouldn’t be a way to get any values not already assigned to an order on a shop via the API.