/
AG
agriya
/
OFOS API Endpoints
Search skmtc…
⌘K
Docs
Sign in
Sign in
APIs
Generators
Stacks
Projects
Docs
History
Schema
Sources
Checked 2h ago · Updated 3w ago
View markdown
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
Attachment
2
Cart
5
City
5
Contact
4
Country
5
Coupon
6
get
Fetch all coupons
post
Creates a new coupon
get
Fetch coupon
put
Update coupon by its id
delete
Delete coupon
get
Fetch coupon
Cuisine
4
DeviceDetail
4
EmailTemplate
3
Language
5
MoneyTransferAccount
5
Order
7
Page
5
PaymentGateway
8
Provider
3
Restaurant
6
RestaurantAddon
5
RestaurantCategory
5
RestaurantCuisine
3
RestaurantDeliveryPerson
9
RestaurantDeliveryPersonOrder
4
RestaurantMenu
5
RestaurantReview
5
RestaurantSupervisor
5
RestaurantTiming
5
Role
2
Setting
3
SettingCategory
2
State
5
Stats
1
Transactions
1
Translation
3
UserAddress
5
UserCashWithdrawal
4
Users
13
Wallet
2
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