application/jsonrazorpay_offer_id once one's been created in the Razorpay Dashboard.200 - updated coupon403 - not an admin | 404 - coupon not found | 422 - no fields to updateAuthorization: Bearer ********************{
"discount_value": 25,
"is_active": true,
"max_redemptions": 1000
}curl --location --request PATCH 'https://uat-api.hastaai.in/api/v1/admin/coupons/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"discount_value": 25,
"is_active": true,
"max_redemptions": 1000
}'{
"success": true,
"message": "Success",
"data": {
"id": 1,
"code": "FIRSTPLAN20",
"description": "20% off your first Sage or Guru \n subscription (capped at Rs 200), locked in for renewals",
"campaign_tag": "first_purchase_plan",
"discount_type": "percent",
"discount_value": 20,
"max_discount_amount": 200,
"first_purchase_only": true,
"applicable_slugs": [
"sage-monthly",
"sage-quarterly",
"sage-half-yearly",
"sage-yearly",
"guru-monthly",
"guru-quarterly",
"guru-half-yearly",
"guru-yearly"
],
"sticky_for_renewal": true,
"max_redemptions_per_user": 1,
"valid_from": 1752739200000,
"valid_till": 1760688000000,
"is_active": true
}
}