I’m building a customization on customer account extension and want to know how to query customer orders with the fulfillment status on hold. I looked at the customer account API and the storefront API, but neither seem to have that option, only querying with processed at date or first/last 10 etc.
Have you tried this yet?
Hi! I don’t think customer account extensions can use all of GraphQL admin though?
Reading this information about Extension APIs makes it sound like it should be doable.
It is not very specific as to what you could pull but it does suggest you can get previous orders and if nothing else I am guessing you may be able to filter them from there. Obviously that approach would be less than ideal but it may be the only approach that works for now.
Hmm but graphQL admin API isn’t listed in the extensions that they have in there
Well, if I read right, I noticed that you should be able to use this:
Which should allow you to grab and query orders by shipment_status
.
I am unsure if that would be sufficient…
Hey @Amelia_Ho!
I hope you’re doing well! I wanted to let you know that we don’t currently have that status available. However, we’ll definitely create an issue for it and gather more information so we can figure out the best way to move forward.
There’s going to be an upper limit of how many orders you can query at once with a standard Admin GraphQL call.
It’ll probably solve your needs for low volume, <100 orders. But if you need to scale this for large merchant accounts, then I recommend using the Bulk Operation API.
It’s not synchronous, but it’s the best way to query all instances of a specific resource, like all customers with an actively held order for example.