We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Get add/removed products in an order

Get add/removed products in an order

Anekke
Shopify Partner
1 0 0

Hi!

I need to get by API REST or GraphQL the products that users add o remove in a specific order.

Anekke_0-1732790737259.png

 

With the next request in GraphQL I only get the first line in the event: User edited this order, but I need to know the product the user added and removed.

Version 2024-10, admin api.

{
  order(id: "gid://shopify/Order/xxxxx") {
    id
    events (first: 10, query: "verb:EDITED") {
        edges {
            node {
                id
                createdAt
            }
        }
    }
  }
}
Thank you,
Replies 0 (0)