Query for discount won't show what customer segment is applied

Query for discount won't show what customer segment is applied

bbarr
Shopify Partner
33 4 10

I have a discount code being applied to a specific customer segment, but when I query it using the GraphQL API, the `customerSelection` is always returned with `customerSelection.__typename: "DiscountCustomers"` which is intended for when I select specific customers for the discount.

 

If the Discount is set to a specific segment, shouldn't I be able to query for that segment?

 

In a fun twist, the GraphiQL app suggests says `customerSelection` of `DiscountCustomerSavedSearches { savedSearches }` is deprecated in favor of `DiscountCustomerSegments.segments`. But that property (though it sounds like just what I need) doesn't show up in the schema and won't come back in a query.

 

Is there a plan to make this work in the near future?

 

Thanks,

Brendan

 

Replies 0 (0)