How to query for rejected fulfillment orders

How to query for rejected fulfillment orders

cgerwatowski
Shopify Partner
1 0 0

We are rejecting fulfillment requests when there are issues with the orders that need to be fixed. However some of them will automatically fix themselves so we query every hour to get the rejected fulfillment orders and try to import them. The way we are doing it now is using graphql assignedFulfillmentOrders but it does not allow you to send an assignmentStatus of rejected or add a query to the request. Therefore we have to query for all open orders and then filter for the ones that are rejected. This can take a long time if we have a lot of open orders. Is there a way to query for just the rejected fulfillment orders?

Replies 0 (0)