I want to fetch automatic discount codes in one of my app. I have searched a lot but cannot find any proper details for it. I can fetch normal discount codes using price rules. But not able to get Automatic discount codes. Please help me.
@dhara-pawar This is not currently available in the API unfortunately.
Thanks for the update @Ryan . Also, I have another question. currently, APIs is available for price rules and discount code. Is webhooks are available or not?
The available webhook topics can be seen here. Not sure what exactly you are looking for with regards to discounts.
Yes i am looking for webhook particular discount section. As per your link, there are other webhooks but not for discounts. when a discount is added cannot fire any webhook call.
I need to use admin API for getting discount codes.
Seems like it's not possible with the REST API. But you can use the GraphQL one