Is API available for getting automatic discount code?

dhara-pawar
Shopify Partner
9 0 1

Hello All,

 

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. 

0 Likes
Ryan
Shopify Staff
Shopify Staff
492 42 110

@dhara-pawar This is not currently available in the API unfortunately.

Developer Experience @ Shopify
0 Likes
dhara-pawar
Shopify Partner
9 0 1

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?

0 Likes
Ryan
Shopify Staff
Shopify Staff
492 42 110

The available webhook topics can be seen here. Not sure what exactly you are looking for with regards to discounts.

Developer Experience @ Shopify
0 Likes
dhara-pawar
Shopify Partner
9 0 1

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.

0 Likes
Zolbayar
Shopify Partner
42 1 3

Seems like it's not possible with the REST API. But you can use the GraphQL one

Working remotely from Mongolia ~ www.gereesee.com
0 Likes