/
AG
agriya
/
OFOS API Endpoints
Search skmtc…
⌘K
Docs
Sign in
Sign in
APIs
Generators
Stacks
Projects
Docs
History
Schema
Sources
Subscribe
agriya
OFOS API Endpoints
put
Update coupon by its id
v1
latest
Swagger 2.0
Agriya Infoway Licence
2026-07-17
164
100
176.6 KB
Coupon
Update coupon by its id
Update coupon by its id
put
/coupons/{couponId}
Path parameters
couponId
integer
required
ID of coupon to update
Request body
AddCoupon
required
user_id
integer
required
restaurant_id
integer
required
coupon_code
string
required
discount
number
float
required
is_flat_discount_in_amount
boolean
required
no_of_quantity_allowed
integer
validity_start_date
string
date
validity_end_date
string
date
maximum_discount_amount
number
float
required
is_active
boolean
required
Response
Coupon updated
Coupon
required
id
integer
created_at
string
updated_at
string
user_id
integer
restaurant_id
integer
coupon_code
string
discount
number
float
is_flat_discount_in_amount
integer
no_of_quantity_allowed
integer
no_of_quantity_used
integer
validity_start_date
string
date
validity_end_date
string
date
maximum_discount_amount
number
float
is_active
integer