- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2017
01:16 AM
12-21-2017
01:16 AM
Hi,
I would like to add discount to a order created by rest api. I found an example to create a custom api for updating quote: https://www.thirdandgrove.com/creating-custom-rest-api-magento2 How to add discount to this quote?
Thank you.
Solved! Go to Solution.
Labels:
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2017
02:11 AM
12-21-2017
02:11 AM
Hello Jeroen,
Kindly refer to Swagger from Magento2
http://devdocs.magento.com/swagger/#/
NOTE ::: this URL takes time to load all data .
Here you can find
quoteCouponManagementV1
Coupon management service interface.
PUT /V1/carts/{cartId}/coupons/{couponCode}
You can use this REST API to apply coupon to cart
Let me know if you need any more help from my side.
Kindly refer to Swagger from Magento2
http://devdocs.magento.com/swagger/#/
NOTE ::: this URL takes time to load all data .
Here you can find
quoteCouponManagementV1
Coupon management service interface.
PUT /V1/carts/{cartId}/coupons/{couponCode}
You can use this REST API to apply coupon to cart
Let me know if you need any more help from my side.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2017
02:11 AM
12-21-2017
02:11 AM
Hello Jeroen,
Kindly refer to Swagger from Magento2
http://devdocs.magento.com/swagger/#/
NOTE ::: this URL takes time to load all data .
Here you can find
quoteCouponManagementV1
Coupon management service interface.
PUT /V1/carts/{cartId}/coupons/{couponCode}
You can use this REST API to apply coupon to cart
Let me know if you need any more help from my side.
Kindly refer to Swagger from Magento2
http://devdocs.magento.com/swagger/#/
NOTE ::: this URL takes time to load all data .
Here you can find
quoteCouponManagementV1
Coupon management service interface.
PUT /V1/carts/{cartId}/coupons/{couponCode}
You can use this REST API to apply coupon to cart
Let me know if you need any more help from my side.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2018
10:16 PM
01-11-2018
10:16 PM
Re: rest api add discount to order
Hello Amit,
How to apply auto discount by api, when we create rule without coupon code.