How can i add coupon code using api?
-
I have install bagisto in my local machine.
I read document for api but, i can't find how add discount/coupon code in api.
I added rule using this document https://devdocs.bagisto.com/cart_rule.html. -
Hi,
Right now our system has no API for coupon, we will release API of coupon in next version.
Thanks
-
While i have to create custom api for coupon code so which steps i need to follow?
Can please give idea how to create coupon code api? -
Hi,
First of all, you need to create a package, then route for your api & controllers.
You can go through our docs for creating package and can see our API package for refference.
Thanks
-
Hi Rahul,
Thank you for give me instant solution.
My last question is
When will you release your next version? -
Probably in next month or end of this month, we will release our API of coupon.
-
@rahul
Thank you so much!