Skip to main content
POST
/
discount-codes
/
tickets
/
validate
/
{code}
Validate ticket discount code
curl --request POST \
  --url https://channels-service-alpha.fourvenues.com/discount-codes/tickets/validate/{code} \
  --header 'X-Api-Key: <api-key>'
{
  "data": [
    {
      "_id": "abc123discount",
      "organizationId": "org123456789",
      "eventId": "event987654321",
      "code": "WELCOME2025",
      "fixedAmount": 5,
      "percentage": 20,
      "minAmount": 30,
      "minUnits": 2,
      "maxUnits": 10,
      "maxRedeems": 1,
      "maxSales": 50
    }
  ],
  "success": true
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

code
string
required

The code of the discount

Query Parameters

rate_id
string
required

The unique ID of the rate this discount will be applied to

supplements_total_price
number
required

The total price of the supplements selected by the user

quantity
number
required

The number of tickets selected by the user

Response

OK

data
object[]
success
boolean