POST
/
v1
/
coupons
curl --request POST \
  --url https://api.hyperline.co/v1/coupons \
  --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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Create coupon payload

The body is of type object.

Response

201 - application/json

The newly created coupon

The response is of type object.