When i create a discount in Shopify UI DiscountType : Buy X Get Y
Customer spends has Minimum purchase amount that am not able to fetch the discount details based on price rule id using below rest api. (i can see discount is created successfully in the shopify).
rest api : /admin/api/2020-07/price_rules/718105608348.json
Any help/leads will be appreciated.
This is expected, these types of discounts won't show in the REST Admin API. You may want to give the GraphQL Admin API a try instead. Here is a great tutorial on creating and managing these types of discounts with GraphQL.