Skip to main content
GET
/
events
/
{event}
/
coupons
Listar cupons
curl --request GET \
  --url http://localhost/api/v1/events/{event}/coupons \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": 123,
      "event_id": 123,
      "code": "<string>",
      "type": "<string>",
      "value": 123,
      "min_order_cents": 123,
      "max_uses": 123,
      "max_uses_per_person": 123,
      "starts_at": "<string>",
      "expires_at": "<string>",
      "is_active": true,
      "description": "<string>",
      "created_at": "<string>",
      "updated_at": "<string>"
    }
  ],
  "meta": {
    "page": 123,
    "per_page": 123,
    "total": 123,
    "last_page": 123
  },
  "links": {
    "next": "<string>",
    "prev": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key do hub com escopo manage. Header: Authorization: Bearer <api_key>.

Path Parameters

event
string
required

Response

data
CouponResource · object[]
required
meta
object
required