GET
/
v1
/
coupons
curl --request GET \
  --url https://api.hyperline.co/v1/coupons \
  --header 'Authorization: Bearer <token>'
{
  "meta": {
    "total": 1,
    "taken": 1,
    "skipped": 123
  },
  "data": [
    {
      "id": "cou_DKL4Xcb5VSa8CQ",
      "name": "Partner discount",
      "description": "<string>",
      "expiration_date": "2023-11-07T05:31:56Z",
      "redemption_limit": 123,
      "created_at": "2023-01-20T16:04:11Z",
      "type": "amount",
      "discount_amount": 2000,
      "currency": "EUR"
    }
  ]
}

Authorizations

Authorization
string
headerrequired

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

Query Parameters

take
number | null
default: 50
skip
number | null
default: 0

Response

200 - application/json
meta
object
required
data
object[]
required

List of Coupon.

  • Option 1

  • Option 2