curl --request PATCH \
--url https://api.example.com/api/v1/coupons/{coupon_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "<string>",
"discount": {
"discount_type": "PERCENTAGE",
"percentage": "<string>"
},
"plan_ids": [
"<string>"
]
}
'{
"code": "<string>",
"description": "<string>",
"disabled": true,
"discount": {
"percentage": "<string>"
},
"id": "<string>",
"reusable": true,
"expires_at": "2023-11-07T05:31:56Z",
"recurring_value": 123,
"redemption_limit": 123
}curl --request PATCH \
--url https://api.example.com/api/v1/coupons/{coupon_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "<string>",
"discount": {
"discount_type": "PERCENTAGE",
"percentage": "<string>"
},
"plan_ids": [
"<string>"
]
}
'{
"code": "<string>",
"description": "<string>",
"disabled": true,
"discount": {
"percentage": "<string>"
},
"id": "<string>",
"reusable": true,
"expires_at": "2023-11-07T05:31:56Z",
"recurring_value": 123,
"redemption_limit": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Coupon ID
"cou_7n42DGM5Tflk9n8mt7Fhc7"
Coupon updated
Show child attributes
"cou_7n42DGM5Tflk9n8mt7Fhc7"