Development discussions around Shopify APIs
Is it possible to filter orders by shipping country?
We only fulfil orders to certain countries and would be less demanding on our system if we can filter at source?
This is our current filter:
$orders = $sc->call('GET', '/admin/orders.json', array('status' => 'open', 'financial_status' => 'paid', 'fulfillment_status' => 'unshipped', 'limit' => '250'));
We would like to be able to do something like this as well. We need to find out how many order we have shipped to EU. Did you ever find out how to do this?
Same for me here. I need to filter the orders within the EU and outside of the EU. Doing this by hand is a no started.. Did you find out how this is possible?
this is not possible atm, but as a workaround you can write a server endpoint that returns the order count by aggregating over all orders. It'll be slow but as of now it's the only solution until a country parameter is introduced.
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...By Jacqui Mar 10, 2023
Upskill and stand out with the new Shopify Foundations Certification programBy SarahF_Shopify Mar 6, 2023
One of the key components to running a successful online business is having clear and co...By Ollie Mar 6, 2023