Skip to main content
POST
/
discount-codes
/
bookings
/
validate
/
{code}
Validate booking discount code
curl --request POST \
  --url https://channels-service-alpha.fourvenues.com/discount-codes/bookings/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

event_id
string
required

Event id the discount code belongs to

rate_id
string
required

Rate id the discount is being applied to

quantity
number
required

Quantity of people the booking is for

Response

OK

data
object[]
success
boolean