Issue - need lookup function for new bulk discount
There was a lookup API endpoint for the old coupon codes setup, but it does not work for the new price_rules bulk generator API.
If we create bulk discounts using the new bulk discount API, there is no efficient way to look up that code via the API, the way it was before.
I know there is a way to get all coupons associated with a price_rule. But if we are generating 30,000 coupons, then having to make hundreds of API calls (bc pagination...) and sort through a huge set of data just to find one coupon and get its data is not practical.
It will return a "not found" error if we try the lookup via old way but with a bulk-generated code the new way.
Any thoughts would be greatly appreciated.