How to tell if a fulfillment order is an exchange

Hi,

I’m fairly new to shopify graphql. So I apologize if this is a newbie question. I cannot seem to find the answer in my search.

I have a query where I pull fulfillment orders to process in my client’s warehouse. But if there is a return with an exchange, it looks like Shopify creates a new fulfillment order for the exchange. It comes across my query as a regular fulfillment order, which if fine, but the order number is the same as the original and my system thinks it was already processed.

I don’t see any attributes in the order object or fulfillment order object that I can query to tell me this is an exchange. Am I missing something?

Hey @Gil_Gonzalez,

We have a guide here that can gives a high level overview on building with returns and exchantes: Apps in returns

Generally though, fulfillments that are part of an exchange will have a unique fulfillment order ID (as you noted). It would be best for fulfillment processes to rely on the fulfillment order id’s rather than the order ID’s or order numbers.

Hey @Gil_Gonzalez did this help unblock you here?