Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Coupons APi

    Bug Report
    coupon api
    2
    2
    736
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Akanrat last edited by

      I m not able to find the coupon get API in the documentation

      1 Reply Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by

        Hi @Akanrat,

        Yes, coupon API is missing in the docs, I will update that.

        Currently, for coupon, there are two routes,

        • Apply Coupon

          To apply the coupon, you need to pass the code key in the request body.

          Route::post('cart/coupon', 'CartController@applyCoupon');
          
        • Remove Coupon

          Route::delete('cart/coupon', 'CartController@removeCoupon');
          

        Just need to hit the route.

        For more details, you can check the route file also.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post