0

I want to create coupon code in magento 2 using rest api. Any custom module available for create coupon code.

0

This is Magento2 core-functionality

<route url="/V1/coupons/generate" method="POST">
    <service class="Magento\SalesRule\Api\CouponManagementInterface" method="generate"/>
    <resources>
        <resource ref="Magento_SalesRule::quote"/>
    </resources>
</route>
1
  • plz share rest api url with body
    – Gagan
    Aug 20 '20 at 10:46
0

here is the documentation for crating a coupon via rest API:

https://devdocs.magento.com/swagger/#/salesRuleCouponRepositoryV1/salesRuleCouponRepositoryV1SavePost

let me know if you need any further assistance !

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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