Is there an API to get the list of all active coupon codes from magento 2?


this shows me all the coupons, but it doesn't give any information about if the coupon is active or it's description.



This gives the details but not the coupon code.

Is there any way to get all details in a single api call?

Please help!



1 Answer 1


For your clarification, the coupon code in magento Don't have a separate "Active" Status and Description.

The Active Status and Description belongs to the SalesRules/CartPriceRule entity.

By Default there is no single api call which fetches all your details, but however you can implement a custom api for your needs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.