Tickets / API reference
Update a ticket type
Edit a ticket type. Quantity cannot fall below tickets already sold or reserved.
PUT
/ticket-types/{ticketType}Authentication
Send your live API key in the Authorization: Bearer header. All requests use https://api.celerlinks.com/api-service.
Request parameters
ticketTypestring · path · requiredID of a ticket type belonging to your event.
namestring · body · requiredTicket name; up to 255 characters.
pricenumber · body · requiredPrice in NGN, not kobo. Use 0 for free admission.
quantityinteger · body · optionalNumber of tickets available; minimum 1.
descriptionstring · body · optionalOptional ticket description.
sales_startstring · body · optionalISO 8601 date/time.
sales_endstring · body · optionalMust be later than sales_start.
min_per_orderinteger · body · optionalMinimum tickets per order; at least 1.
max_per_orderinteger · body · optionalAt least min_per_order.
Examples are illustrative. Catalogue IDs, product codes, prices, and provider-specific fields must come from your current API responses.
cURL request
curl --request PUT 'https://api.celerlinks.com/api-service/ticket-types/YOUR_TICKETTYPE' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "General admission",
"price": 5000,
"quantity": 150
}'Illustrative response
{
"success": true,
"message": "Request completed successfully",
"data": {
"ticket_type": {
"id": 456,
"name": "General admission",
"price": 5000,
"quantity": 150
}
}
}