v1

latestSwagger 2.0Agriya Infoway Licence2026-07-17164100176.6 KB
Coupon

Update coupon by its id

Update coupon by its id

put/coupons/{couponId}

Path parameters

couponIdinteger required

ID of coupon to update

Request body

user_idinteger required
restaurant_idinteger required
coupon_codestring required
discountnumber float required
is_flat_discount_in_amountboolean required
no_of_quantity_allowedinteger
validity_start_datestring date
validity_end_datestring date
maximum_discount_amountnumber float required
is_activeboolean required

Response

Coupon updated

idinteger
created_atstring
updated_atstring
user_idinteger
restaurant_idinteger
coupon_codestring
discountnumber float
is_flat_discount_in_amountinteger
no_of_quantity_allowedinteger
no_of_quantity_usedinteger
validity_start_datestring date
validity_end_datestring date
maximum_discount_amountnumber float
is_activeinteger