Update User Coupon
PUT /user/coupons/{id}/
The PUT /user/coupons/{id}/
endpoint allows you to update the details of a specific coupon for a user.
Parameters
Parameter
Location
Type
Description
data
Body
Object
Coupon details to update.
id
Path
Integer
A unique integer value identifying this coupon.
Request Body Fields
Field
Type
Description
value
String (decimal)
The monetary value of the coupon.
expiration_date
String (date-time)
The expiration date of the coupon.
Example Request Body:
{
"value": "50.00",
"expiration_date": "2024-12-31T23:59:59Z"
}
Responses
Status Code
Description
200
Successfully updated the coupon details.
Example Response
Response Body:
{
"id": 123,
"code": "SAVE50",
"value": "50.00",
"expiration_date": "2024-12-31T23:59:59Z"
}
Last updated