Products in the orders object does not contain tags

Highlighted
Shopify Partner
1 0 0

Is there a way to include product tags in the orders api response? I see the customer tags are included in the Orders api response. Is there a way to achieve this without making a separate API request for each product in the line items of an order?

0 Likes
Highlighted
Shopify Partner
101 16 22

Hi @mnzn 

 

I think switching to GraphQL will be the only option here, but it depends what is the requested object you need since you won't be able to return 250 orders with different attributes with a single request.

 

Something like so:

 

{ 
	orders(first: 1){
    edges {
      node {
        lineItems(first: 50){
          edges {
            node {
              product {
                tags
              }
            }
          }
        }
      }
    }
  }
}
0 Likes