API documentation
Integrations
Analytics
Billable events
Companies
Coupons > Promotion codes
Custom properties
Customers
Customers > Credits
Customers > Payment methods
Integrations
Invoices
Invoices > Transactions
Invoicing entities
Organisations
Payments
Price configurations
Products
Quotes
Subscriptions
- GETGet subscriptions
- GETGet subscription
- GETGet subscription phases
- GETGet subscription phase
- POSTCreate subscription update
- POSTCreate subscription updates
- POSTCreate subscription
- PUTUpdate subscription
- POSTActivate subscription
- POSTCancel subscription
- POSTPause subscription
- POSTReactivate subscription
- POSTRefresh seat products
- POSTRefresh subscriptions
- POSTReinstate subscription
- POSTTransition subscription to next phase
Third-party apps
Wallets
Coupons
Update coupon
Update the details of an existing coupon.
PUT
/
v1
/
coupons
/
{id}
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": "2024-10-13T02:00:00.000Z",
"redemption_limit": 123,
"type": "amount",
"discount_amount": 2000,
"currency": "EUR"
}'
{
"id": "cou_DKL4Xcb5VSa8CQ",
"name": "Partner discount",
"description": "<string>",
"expiration_date": "2024-10-13T02:00:00.000Z",
"redemption_limit": 123,
"created_at": "2024-12-20T16:04:11Z",
"type": "amount",
"discount_amount": 2000,
"currency": "EUR"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
application/json
Response
200
application/json
The response is of type object
.
The response is of type object
.
The response is of type object
.
Was this page helpful?
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": "2024-10-13T02:00:00.000Z",
"redemption_limit": 123,
"type": "amount",
"discount_amount": 2000,
"currency": "EUR"
}'
{
"id": "cou_DKL4Xcb5VSa8CQ",
"name": "Partner discount",
"description": "<string>",
"expiration_date": "2024-10-13T02:00:00.000Z",
"redemption_limit": 123,
"created_at": "2024-12-20T16:04:11Z",
"type": "amount",
"discount_amount": 2000,
"currency": "EUR"
}
Assistant
Responses are generated using AI and may contain mistakes.