curl --request PUT \
--url https://api.hyperline.co/v1/coupons/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Partner discount",
"description": "<string>",
"expiration_date": "2023-11-07T05:31:56Z",
"redemption_limit": 123,
"type": "amount",
"discount_amount": 2000,
"currency": "EUR"
}'
{
"id": "cou_DKL4Xcb5VSa8CQ",
"name": "Partner discount",
"description": "<string>",
"expiration_date": "2023-11-07T05:31:56Z",
"redemption_limit": 123,
"created_at": "2024-12-20T16:04:11Z",
"type": "amount",
"discount_amount": 2000,
"currency": "EUR"
}
Update the details of an existing coupon.
curl --request PUT \
--url https://api.hyperline.co/v1/coupons/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Partner discount",
"description": "<string>",
"expiration_date": "2023-11-07T05:31:56Z",
"redemption_limit": 123,
"type": "amount",
"discount_amount": 2000,
"currency": "EUR"
}'
{
"id": "cou_DKL4Xcb5VSa8CQ",
"name": "Partner discount",
"description": "<string>",
"expiration_date": "2023-11-07T05:31:56Z",
"redemption_limit": 123,
"created_at": "2024-12-20T16:04:11Z",
"type": "amount",
"discount_amount": 2000,
"currency": "EUR"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The response is of type object
.
Was this page helpful?