Merged orders via API

Hello guys,

The only way to see which orders are merged together is to request order_history fields from orders query but that eats quite a lot of credits and is also quite difficult to parse. Are there any plans to expose a different field or even a different query where it would be possible to see which orders have been merged together? Webhooks for this would also be good :slight_smile:

Regards,
Darius

Hi @Darius_VikingC!
Right, at the moment that is the only way. I just submitted a Feature Request for that to be added to the order query, something like this:

query {
  order(id: "154713804") {
    request_id
    complexity
    data {
      id
      legacy_id
      merged_orders {
        id
        master
      }
    }
  }
}

That way it exposed the id of the other order and if its the master order or not
Let me know if that won’t work for you.
I will let you know as soon as I have an update about it.
Thanks in advance!
Tom

Hi @tomasw

that would be perfect, thank you!

Regards,
Darius

Hi @tomasw

Is there an ETA to this? Would love to get merged orders easily.

1 Like

It is in the queue, I will check with engineering.

We are also looking forward for this feature.

1 Like

We are also looking forward to this feature. It makes it difficult to fulfill the child record of the merged order. Even adding a different tag to the child record would be a step in the right direction.

This has been implemented. You can access the merged order and if that merged order is the master or not. It is available in the order as well as the orders query. Here is an example using the order query

query {
  order(id: "[orderid-here]") {
    request_id
    complexity
    data {
      shop_name
      merged_orders {
        order_id
        is_master
      }
    }
  }
}
1 Like

This has made a massive difference thank you! :heart:

1 Like