Closed
Description
I think there may be an error in the DiscountCode resource. Shopify defines a DiscountCode as a child of PriceRule in all cases except one - when "looking up" a PriceRule by it's discount code. You can see this here:
https://help.shopify.com/en/api/reference/discounts/discountcode#lookup-2019-07
There is no way with the current framework to do a lookup
as it always errors, unless I'm doing it wrong.
DiscountCode is a child resource of PriceRule. Cannot be accessed directly.