0

I need to get the List of Coupons Available for Logged in customers using REST API.

0

I think you can use this API:

<route url="/V1/carts/:cartId/coupons" method="GET">
    <service class="Magento\Quote\Api\CouponManagementInterface" method="get"/>
    <resources>
        <resource ref="Magento_Cart::manage" />
    </resources>
</route>
| improve this answer | |
  • I tried using Endpoint : /V1/carts/:cartId/coupons my response is '{ "message": "The consumer isn't authorized to access %resources.", "parameters": { "resources": "Magento_Cart::manage" } }' – LearnerElan Sep 26 '19 at 15:39
  • you need to generate authentication token to use this api – Ronak Chauhan Sep 27 '19 at 7:31
  • because this api is not open api else if you just want to test the response you can change from <resource ref="Magento_Cart::manage" /> to <resource ref="anonymous" /> and check api response – Ronak Chauhan Sep 27 '19 at 7:32

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.