UPDATE: Found out we can lookup a discount by the discount code
/discount_codes/lookup.json?code=
But the part that doesn’t make sense is why there is a discount_code ID in there
While in the price_rules listing it only has a price_rule ID and no discount_code ID
And there is no way to list all discount codes, only all price rules, which has a discount code… but no discount code ID lol
Discount codes vs price rules is messy in the API