Getting details of manual discount via GraphQL API

Highlighted
Shopify Partner
31 1 13

Hi,

 

I'm looking to retrieve information about a manual discount that's applied to an order. I want to get:

 

  1. the code used
  2. the title
  3. the value of the discount
  4. which products are affected and by how much

I can get some of this information: discountCode is available on the order, and I can get discountApplications on the order and discountAllocations on the line items. I can't find a way to tie it all together - e.g. to explicitly link the code used to the discount value on both the order and the line items.

 

Any pointers would be warmly welcomed.

 

 

Screenshot 2020-04-15 at 08.38.20.png

0 Likes