OGWUGO API DOCUMENTATION

  1. Home
  2. Docs
  3. OGWUGO API DOCUMENTATION
  4. Main Server Documentation
  5. Coupon

Coupon

Every Coupon has a price eg 200 and has order cap eg. 1000. that means the user must order items worth 1000 before the coupon can be applied.

 

1.  to validate a coupon: (optional)

path:

/coupon

response:

{"data":[{"coupon":"0987656789","amount":"200"}],"status":"success","message":"coupon validated!"}

2. Add coupon to cart

/cart/coupon/add

[POST]

Auth data DataType [default] Detail
cart_id int. req
coupon str. reg

3. Remove Coupon from cart

/cart/coupon/remove

// post same data when adding coupon
// if coupon is added, cart return total price with coupon deducted..
Was this article helpful to you? Yes No

How can we help?