This API is the interface for interacting with the iaBilet platform.
Examples:
In case of an error, any call returns a structure of the form:
{
"error": 100,
"message": "Error message"
}
Heads up! The HTTP status returned in case of an error is 200. This behavior will change in a future version of the API.
To identify if a call has returned an error, test for the existence of the error key in the response.
To authenticate with the API, log in using the /login endpoint to obtain a bearer token.
This token must be included in the Authorization header of all subsequent requests.
All API endpoints require authentication unless specified otherwise. Unauthorized access will result in a 401 Unauthorized response.
Authenticates the client using an application key and secret. Returns an authentication token to be used in subsequent requests.
API login request
| key required | string Application key |
| secret required | string Application secret |
| authToken | string Authentication token |
{- "key": "c6jm3R3JDGkwb2bP",
- "secret": "pHbEahQdbiVmpFqV"
}{- "authToken": "string"
}Returns the username and API key of the authenticated user.
| Authorization required | string Example: Bearer 00000000058pG5D4vPSs34ba2bd62caf68a4855249841b5d56f4f Authentication token returned by |
| username | string The username of the authenticated user |
| key | string The API key associated with the authenticated user |
{- "username": "user438274",
- "key": "c6jm3R3JDGkwb2bP"
}Access to data is determined by the permissions assigned to the API key.
If you need access to additional data, please contact the administrator to adjust your API key permissions.
Get a list of available events, optionally filtering by date, sold-out status, and other parameters.
| fromDate | string <date> Example: fromDate=2014-08-20 Start date for filtering events (format YYYY-MM-DD) |
| toDate | string <date> End date for filtering event (format YYYY-MM-DD) |
| includeSoldOut | integer Include sold-out events. 1 for yes, 0 for no. |
| includeVenueOnly | integer Include "venue only" events |
| includeExternal | integer Include third-party events (external URL only) |
| orderBy | string Enum: "popularity" "date" Example: orderBy=popularity Order results by popularity or date |
| category | string Example: category=concerte Event category code. See |
| fullVenue | integer Include full details about the venue |
| fullDesc | integer Include full description of the event |
| Authorization required | string Example: Bearer 00000000058pG5D4vPSs34ba2bd62caf68a4855249841b5d56f4f Authentication token returned by |
| id | integer Event ID | ||||
| title | string Event title | ||||
| startDate | string <date> Event start date | ||||
| endDate | string <date> Event end date | ||||
| startDateTime | string <date-time> Event start date and time | ||||
| hasTime | boolean Whether the event has a specific start time | ||||
string or object | |||||
One of string Venue name (if | |||||
| venueId | integer Venue ID | ||||
| allowBooking | boolean Whether booking is allowed for this event | ||||
| allowBookingEx | string Enum: "draft" "Y" "pending" "venue_only" "free_entry" "sold_out" "cancelled" "disabled" "pre_register" "require_voucher" "maintenance" "ready_for_sale" Booking status | ||||
| maxNrTicketsPerOrder | integer Maximum number of tickets allowed per order | ||||
| soldOut | boolean Whether the event is sold out | ||||
| hasAvailableSeats | boolean Whether there are available seats for this event | ||||
| imageUrl | string URL of the event poster image | ||||
| shortDesc | string Short description of the event | ||||
| category | string Main category of the event | ||||
| moreCategories | Array of strings Additional categories for the event | ||||
| tags | Array of strings Tags associated with the event | ||||
| fullDesc | string Full description of the event (if | ||||
| eventPageUrl | string URL of the event page | ||||
Array of objects List of artists performing at the event | |||||
Array
| |||||
[- {
- "id": 22189,
- "title": "SMILEY in concert la Beraria H pe 6 noiembrie",
- "startDate": "2014-11-06",
- "endDate": "2014-11-06",
- "startDateTime": "2014-11-06 21:30:00",
- "hasTime": true,
- "venue": "Beraria H",
- "venueId": 1510,
- "allowBooking": true,
- "allowBookingEx": "Y",
- "maxNrTicketsPerOrder": 20,
- "soldOut": false,
- "hasAvailableSeats": true,
- "shortDesc": "Un concert senzational...",
- "category": "concerte",
- "moreCategories": [
- "concerte-pop"
], - "tags": [
- "smiley",
- "hard rock cafe"
], - "fullDesc": "Concertul va fi...",
- "artists": [
- {
- "artistName": "Smiley",
- "artistId": 1531
}
]
}
]Returns the ticket types for a specific event, including prices, areas, and other related information.
| eventId required | integer Example: eventId=22189 Event ID for which the tariffs are being requested |
| forceAll | integer Whether to return all tariffs, regardless of whether they are active or tickets are available. Possible values: 1 - yes, 0 - no (default). |
| Authorization required | string Example: Bearer 00000000058pG5D4vPSs34ba2bd62caf68a4855249841b5d56f4f Authentication token returned by |
Array of objects | |||||||||||||||||||||||
Array
| |||||||||||||||||||||||
{- "tariffs": [
- {
- "id": 2181,
- "displayName": "Fara loc (in fata scenei)",
- "price": 150,
- "listPrice": 150,
- "currency": "RON",
- "minNrTickets": 1,
- "maxNrTickets": 10,
- "eventId": 22189,
- "areas": [
- "STANDING"
], - "notice": "string",
- "fiscalCodePrefix": "BML"
}
]
}Returns a paginated list of tickets for a specific event, including detailed ticket and customer information.
| eventId required | string Example: eventId=22189 Event ID for which the tickets are being requested |
| orderDatetimeFrom | string <date-time> Example: orderDatetimeFrom=2017-09-01 00:00:00 Filter tickets ordered from this date |
| orderDatetimeTo | string <date-time> Example: orderDatetimeTo=2017-09-07 23:59:59 Filter tickets ordered up to this date |
| currentPage | integer Default: 1 Example: currentPage=1 Current page (default is 1) |
| pageSize | integer Default: 1000 Example: pageSize=1000 Page size (default is 1000) |
| Authorization required | string Example: Bearer 00000000058pG5D4vPSs34ba2bd62caf68a4855249841b5d56f4f Authentication token returned by |
Array of objects | |||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||
object Pagination information | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
{- "tickets": [
- {
- "codeHash": "73f30cf810f7c9200e1aeb58af421007",
- "scanCode": "VBCJJDSDHP",
- "fiscalCode": "BML 229463026",
- "status": "booked",
- "orderDatetime": "2017-07-01 15:30:00",
- "orderNr": "171013032220",
- "eventId": 22189,
- "seatCategoryId": 879,
- "seatCategoryName": "Acces general",
- "tariffId": 2181,
- "tariffName": "Fara loc (in fata scenei)",
- "areaCode": "STANDING",
- "seatCode": null,
- "seatLabel": "Fara loc",
- "price": 150,
- "currency": "RON",
- "isInvitation": false,
- "used": false,
- "useDatetime": "2017-07-29 18:58:01",
- "customerInfo": {
- "name": "Gigi Duru",
- "phone": "40720123456",
- "email": "gigiduru@mailinator.com",
- "countryCode": "RO"
}
}
], - "pagination": {
- "totalItemCount": 9999,
- "pageSize": 1000,
- "currentPage": 1,
- "nextPage": 2
}
}Get a list of all event categories available in the system.
| Authorization required | string Example: Bearer 00000000058pG5D4vPSs34ba2bd62caf68a4855249841b5d56f4f Authentication token returned by |
Array of objects | |||||
Array
| |||||
{- "categories": [
- {
- "code": "concerte",
- "displayName": "Concerte"
}
]
}Returns a paginated list of artists.
| currentPage | integer Default: 1 Example: currentPage=1 Current page |
| pageSize | integer Default: 1000 Example: pageSize=1000 Page size |
| Authorization required | string Example: Bearer 00000000058pG5D4vPSs34ba2bd62caf68a4855249841b5d56f4f Authentication token returned by |
Array of objects | |||||||||
Array
| |||||||||
object Pagination information | |||||||||
| |||||||||
{- "artists": [
- {
- "id": 1531,
- "name": "Smiley",
- "slug": "smiley",
- "mainImageUrl": "string"
}
], - "pagination": {
- "totalItemCount": 9999,
- "pageSize": 1000,
- "currentPage": 1,
- "nextPage": 2
}
}The process of placing an order involves three steps:
/lockSeats
This step involves locking the desired seats. This ensures the seats are not sold to another customer during the ordering process.
/prepareOrder
In this step, the order details are prepared, including the customer's information and payment details.
/confirmOrder
This is the final step where the order is confirmed and finalized. Once the order is confirmed, the tickets are generated.
It's important to follow these steps in order to successfully place an order.
Temporarily locks a set of seats for a predefined interval (5 minutes). Also unlocks any seats previously locked during the current session.
| Authorization required | string Example: Bearer 00000000058pG5D4vPSs34ba2bd62caf68a4855249841b5d56f4f Authentication token returned by |
Request to lock a set of seats
| eventId required | integer Event ID for which seats are being locked | ||||||||
required | Array of objects List of seats to lock with their tariff and seat details | ||||||||
Array
| |||||||||
| bookingRef | string Booking reference obtained from the | ||||||||||||||||||||
Array of objects List of locked seats | |||||||||||||||||||||
Array
| |||||||||||||||||||||
object | |||||||||||||||||||||
| |||||||||||||||||||||
{- "eventId": 22189,
- "seats": [
- {
- "tariffId": 2181,
- "seatAreaCode": "STANDING",
- "ref": "ticket-1",
- "price": 150
}
]
}{- "bookingRef": "347GXHB4EV",
- "seats": [
- {
- "uuid": "a64b96e2-7492-4756-aef6-980dcac97410",
- "status": "locked",
- "tariffId": 2181,
- "hasSeat": false,
- "seatCode": "string",
- "areaCode": "STANDING",
- "ref": "ticket-1"
}
], - "totals": {
- "totalBeforeModifiers": 300,
- "priceModifiers": [
- {
- "type": "discount",
- "label": "Discount",
- "value": -100
}
], - "totalPrice": 215,
- "totalPriceCurrenty": "RON",
- "totalPaid": 215,
- "totalPaidCurrency": "RON"
}
}This endpoint prepares the order and verifies the total price.
| Authorization required | string Example: Bearer 00000000058pG5D4vPSs34ba2bd62caf68a4855249841b5d56f4f Authentication token returned by |
Request to prepare an order
| bookingRef required | string Booking reference obtained from the | ||||||||||||||
| totalPrice required | number <float> Total price of the order, used for verification | ||||||||||||||
| shippingMethod | string Shipping method code for the order (optional) | ||||||||||||||
| paymentMethod | string Payment method code for the order (optional) | ||||||||||||||
object Customer information (optional) | |||||||||||||||
| |||||||||||||||
object Custom fields for the order (optional) | |||||||||||||||
| |||||||||||||||
| bookingRef | string Booking reference obtained from the | ||||||||||||||||||||
object | |||||||||||||||||||||
| |||||||||||||||||||||
{- "bookingRef": "347GXHB4EV",
- "totalPrice": 215,
- "shippingMethod": "Api",
- "paymentMethod": "Api",
- "customerInfo": {
- "phone": "40720123456",
- "email": "gigiduru@mailinator.com"
}, - "customFields": {
- "order": {
- "customTermsAccepted": "Y"
}, - "tickets": [
- {
- "uuid": "a64b96e2-7492-4756-aef6-980dcac97410",
- "participantName": "Mihai Popescu"
}
]
}
}{- "bookingRef": "347GXHB4EV",
- "totals": {
- "totalBeforeModifiers": 300,
- "priceModifiers": [
- {
- "type": "discount",
- "label": "Discount",
- "value": -100
}
], - "totalPrice": 215,
- "totalPriceCurrenty": "RON",
- "totalPaid": 215,
- "totalPaidCurrency": "RON"
}
}Confirms the order after it has been prepared. Only after calling confirmOrder will the tickets be generated and a PDF download link provided. If called multiple times for the same booking, only the first call will be successful.
| Authorization required | string Example: Bearer 00000000058pG5D4vPSs34ba2bd62caf68a4855249841b5d56f4f Authentication token returned by |
Request to confirm an order
| bookingRef required | string Booking reference obtained from the |
| paymentExtRef | string Reference from the payment system (optional) |
| orderCode | string Unique order code used for server-to-server calls (not shared with the client) | ||||||||||||||||||||
| orderNr | string Order number to be shared with the client, used by the call-center to identify the order | ||||||||||||||||||||
| printUrl | string URL to download the PDF with the tickets | ||||||||||||||||||||
Array of objects List of tickets generated for the order | |||||||||||||||||||||
Array
| |||||||||||||||||||||
object | |||||||||||||||||||||
| |||||||||||||||||||||
{- "bookingRef": "347GXHB4EV",
- "paymentExtRef": "hg948y76"
}{- "orderCode": "HROBREWLAI",
- "orderNr": "171013032220",
- "tickets": [
- {
- "code": "LUEAQKOELH",
- "fiscalCode": "BML 229463026",
- "shortCode": "12345",
- "eventTitle": "SMILEY in concert la Beraria H pe 6 noiembrie",
- "venueName": "Beraria H",
- "tariffName": "Fara loc (in fata scenei)",
- "price": 150,
- "currency": "RON"
}
], - "totals": {
- "totalBeforeModifiers": 300,
- "priceModifiers": [
- {
- "type": "discount",
- "label": "Discount",
- "value": -100
}
], - "totalPrice": 215,
- "totalPriceCurrenty": "RON",
- "totalPaid": 215,
- "totalPaidCurrency": "RON"
}
}Returns information about the current booking, including event details, status, and locked seats.
| bookingRef required | string Example: bookingRef=347GXHB4EV Booking reference obtained from the |
| Authorization required | string Example: Bearer 00000000058pG5D4vPSs34ba2bd62caf68a4855249841b5d56f4f Authentication token returned by |
| eventId | integer Event ID for the current booking | ||||||||||||||||||||
| ref | string Booking reference | ||||||||||||||||||||
| eventTitle | string Title of the event | ||||||||||||||||||||
| status | string Current status of the booking (e.g., locked, prepared, completed, cancelled, timeout) | ||||||||||||||||||||
| seats | Array of objects List of locked seats (refer to the response format of | ||||||||||||||||||||
object | |||||||||||||||||||||
| |||||||||||||||||||||
{- "eventId": 22189,
- "ref": "347GXHB4EV",
- "eventTitle": "SMILEY in concert la Beraria H pe 6 noiembrie",
- "status": "locked",
- "seats": [
- { }
], - "totals": {
- "totalBeforeModifiers": 300,
- "priceModifiers": [
- {
- "type": "discount",
- "label": "Discount",
- "value": -100
}
], - "totalPrice": 215,
- "totalPriceCurrenty": "RON",
- "totalPaid": 215,
- "totalPaidCurrency": "RON"
}
}Adds a voucher to the booking specified by the booking reference.
| Authorization required | string Example: Bearer 00000000058pG5D4vPSs34ba2bd62caf68a4855249841b5d56f4f Authentication token returned by |
Request to add a voucher to a booking
| bookingRef required | string Booking reference obtained from the |
| voucherCode required | string The voucher code to apply to the booking |
| bookingRef | string Booking reference for which the voucher was applied | ||||||||||||||||||||
object | |||||||||||||||||||||
| |||||||||||||||||||||
{- "bookingRef": "347GXHB4EV",
- "voucherCode": "HIBIQA30"
}{- "bookingRef": "347GXHB4EV",
- "totals": {
- "totalBeforeModifiers": 300,
- "priceModifiers": [
- {
- "type": "discount",
- "label": "Discount",
- "value": -100
}
], - "totalPrice": 215,
- "totalPriceCurrenty": "RON",
- "totalPaid": 215,
- "totalPaidCurrency": "RON"
}
}Removes a voucher from the booking specified by the booking reference.
| Authorization required | string Example: Bearer 00000000058pG5D4vPSs34ba2bd62caf68a4855249841b5d56f4f Authentication token returned by |
Request to remove a voucher from a booking
| bookingRef required | string Booking reference obtained from the |
| voucherCode required | string The voucher code to be removed from the booking |
| success | boolean Indicates whether the voucher was successfully removed |
{- "bookingRef": "347GXHB4EV",
- "voucherCode": "HIBIQA30"
}{- "success": true
}Unlocks all seats that were locked during the current session. This is useful if the user goes back to the seat selection screen after locking seats.
| Authorization required | string Example: Bearer 00000000058pG5D4vPSs34ba2bd62caf68a4855249841b5d56f4f Authentication token returned by |
| success | boolean Indicates whether the seats were successfully unlocked |
{- "success": true
}Endpoints to verify if a ticket is valid for a specific event and to confirm that the ticket has not been previously used.
Validates a ticket by its scan code for entry to the event. The response includes ticket details or an error if the ticket is invalid.
| Authorization required | string Example: Bearer 00000000058pG5D4vPSs34ba2bd62caf68a4855249841b5d56f4f Authentication token returned by |
Request to validate a ticket
| eventId required | string ID of the event for which the ticket is being validated |
| scanCode required | string The scanned ticket code |
| status | string Status of the validation (e.g., success, already_validated) | ||||||||||||||||||||||||||||||||
object Details of the validated ticket | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
{- "eventId": "22189",
- "scanCode": "EB6TWEU2Y78A"
}{- "status": "success",
- "ticket": {
- "scanCode": "EB6TWEU2YXHC",
- "fiscalCode": "BML 229463026",
- "fiscalCodePrefix": "BML",
- "status": "booked",
- "orderDatetime": "2017-07-01 15:30:00",
- "orderNr": "171013032220",
- "eventId": "22189",
- "tariffName": "Fara loc (in fata scenei)",
- "price": 150,
- "currency": "RON",
- "isInvitation": false,
- "used": false,
- "useDatetime": null,
- "customerInfo": {
- "countryCode": "RO"
}
}
}