Skip to content

Get ticket rules​

GET
/api/v2/events/{eventId}/ticket-rules

Returns a list of ticket rules for an event

Authorizations​

bearerAuth
Type
HTTP (bearer)

Parameters​

Path Parameters

eventId*

Event Id

Type
integer
Required
Format
"int64"

Responses​

Ticket rule list

application/json
JSON
{
  
"count": 10,
  
"totalCount": 25,
  
"limit": 50,
  
"offset": 25,
  
"data": [
  
]
}

Playground​

Authorization
Variables
Key
Value

Samples​


Get ticket rule by type and ID​

GET
/api/v2/events/{eventId}/ticket-rules/{type}/{id}

Returns a single ticket rule by type and id

Authorizations​

bearerAuth
Type
HTTP (bearer)

Parameters​

Path Parameters

eventId*

Event Id

Type
integer
Required
Format
"int64"
type*

Rule type: sales-rule, dated-price-change, quantity-price-change

Type
string
Required
Valid values
"sales-rule""dated-price-change""quantity-price-change"
id*

Rule Id

Type
integer
Required
Format
"int64"

Responses​

Ticket rule object

application/json
JSON
{
  
"data": "string"
}

Playground​

Authorization
Variables
Key
Value

Samples​


Delete ticket rule​

DELETE
/api/v2/events/{eventId}/ticket-rules/{type}/{id}

Delete a ticket rule

Authorizations​

bearerAuth
Type
HTTP (bearer)

Parameters​

Path Parameters

eventId*

Event Id

Type
integer
Required
Format
"int64"
type*

Rule type

Type
string
Required
Valid values
"sales-rule""dated-price-change""quantity-price-change"
id*

Rule Id

Type
integer
Required
Format
"int64"

Responses​

Ticket rule deleted successfully

Playground​

Authorization
Variables
Key
Value

Samples​


Update ticket rule​

PATCH
/api/v2/events/{eventId}/ticket-rules/{type}/{id}

Update an existing ticket rule

Authorizations​

bearerAuth
Type
HTTP (bearer)

Parameters​

Path Parameters

eventId*

Event Id

Type
integer
Required
Format
"int64"
type*

Rule type: sales-rule, dated-price-change, quantity-price-change

Type
string
Required
Valid values
"sales-rule""dated-price-change""quantity-price-change"
id*

Rule Id

Type
integer
Required
Format
"int64"

Request Body​

application/json
JSON
"string"

Responses​

Updated ticket rule

application/json
JSON
{
  
"data": "string"
}

Playground​

Authorization
Variables
Key
Value
Body

Samples​


Create ticket rule​

POST
/api/v2/events/{eventId}/ticket-rules/{type}

Create a ticket rule (sales-rule, dated-price-change, or quantity-price-change)

Authorizations​

bearerAuth
Type
HTTP (bearer)

Parameters​

Path Parameters

eventId*

Event Id

Type
integer
Required
Format
"int64"
type*

Rule type: sales-rule, dated-price-change, quantity-price-change

Type
string
Required
Valid values
"sales-rule""dated-price-change""quantity-price-change"

Request Body​

application/json
JSON
"string"

Responses​

Created ticket rule

application/json
JSON
{
  
"data": "string"
}

Playground​

Authorization
Variables
Key
Value
Body

Samples​


Bulk delete ticket rules​

POST
/api/v2/events/{eventId}/ticket-rules/bulk-delete

Delete multiple ticket rules

Authorizations​

bearerAuth
Type
HTTP (bearer)

Parameters​

Path Parameters

eventId*

Event Id

Type
integer
Required
Format
"int64"

Request Body​

application/json
JSON
{
  
"rules": [
  
  
{
  
  
  
"type": "string",
  
  
  
"id": 0
  
  
}
  
]
}

Responses​

Ticket rules deleted successfully

Playground​

Authorization
Variables
Key
Value
Body

Samples​


Powered by VitePress OpenAPI