Download OpenAPI specification:Download
Ratality Integration API Documentation
Build: api-af-v20240715-1854
Visit portal.ratality.com for full documentation.
User name and password details
username required | string Username |
password required | string Password |
rememberMe | boolean True to keep token valid for 72 Hours |
{- "username": "string",
- "password": "string",
- "rememberMe": true
}
{- "id_token": "string"
}
New member details
siteId | integer <int32> |
firstName | string or null |
lastName | string or null |
title | string or null |
dateOfBirth | string or null <date-time> |
gender | string or null |
string or null | |
cellNumber | string or null |
idNumber | string or null |
{- "siteId": 0,
- "firstName": "string",
- "lastName": "string",
- "title": "string",
- "dateOfBirth": "2019-08-24T14:15:22Z",
- "gender": "string",
- "email": "string",
- "cellNumber": "string",
- "idNumber": "string"
}
{- "memberId": 0,
- "cardNumber": "string",
- "title": "string",
- "firstName": "string",
- "surname": "string",
- "idNumber": "string",
- "dateOfBirth": "string",
- "gender": "string",
- "companyName": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "countryCode": "string",
- "phoneNo": "string",
- "cellNo": "string",
- "email": "string",
- "accommodationDiscountPercentage": 0.1,
- "foodDiscountPercentage": 0.1,
- "beveargeDiscountPercentage": 0.1,
- "other1DiscountPercentage": 0.1,
- "other2DiscountPercentage": 0.1,
- "other3DiscountPercentage": 0.1,
- "banqDiscountPercentage": 0.1,
- "pointBalance": 0.1
}
If statusCode
is OK
, the member was found and is populated in the returned results.
If statusCode
is NOT-FOUND
, the member was not found and an empty member object is returned.
If statusCode
is ERROR
, the member may be invalid. See statusDescription
.
Member lookup request
siteId | integer <int32> Site or Client Id where the member is registered |
cardNumber | string or null Member card number search parameter |
emailAddress | string or null Member email address search parameter |
cellphoneNumber | string or null Member cellphone number search parameter |
{- "siteId": 0,
- "cardNumber": "string",
- "emailAddress": "string",
- "cellphoneNumber": "string"
}
{- "statusCode": "string",
- "statusDescription": "string",
- "member": {
- "memberId": 0,
- "cardNumber": "string",
- "title": "string",
- "firstName": "string",
- "surname": "string",
- "idNumber": "string",
- "dateOfBirth": "string",
- "gender": "string",
- "companyName": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "countryCode": "string",
- "phoneNo": "string",
- "cellNo": "string",
- "email": "string",
- "accommodationDiscountPercentage": 0.1,
- "foodDiscountPercentage": 0.1,
- "beveargeDiscountPercentage": 0.1,
- "other1DiscountPercentage": 0.1,
- "other2DiscountPercentage": 0.1,
- "other3DiscountPercentage": 0.1,
- "banqDiscountPercentage": 0.1,
- "pointBalance": 0.1
}
}
siteId | integer <int32> |
cardNumber | string or null |
emailAddress | string or null |
cellphoneNumber | string or null |
object (Invoice) |
{- "siteId": 0,
- "cardNumber": "string",
- "emailAddress": "string",
- "cellphoneNumber": "string",
- "invoice": {
- "invoiceNumber": "string",
- "invoiceDate": "string",
- "invoiceDescription": "string",
- "redeemAmount": 0.1
}
}
{- "statusCode": "string",
- "statusDescription": "string"
}
Member details to update
siteId | integer <int32> |
cardNumber | string or null |
firstName | string or null |
lastName | string or null |
title | string or null |
dateOfBirth | string or null <date-time> |
gender | string or null |
string or null | |
idNumber | string or null |
{- "siteId": 0,
- "cardNumber": "string",
- "firstName": "string",
- "lastName": "string",
- "title": "string",
- "dateOfBirth": "2019-08-24T14:15:22Z",
- "gender": "string",
- "email": "string",
- "idNumber": "string"
}
{- "statusCode": 0,
- "messages": [
- "string"
]
}
Array of objects or null (StayRecord) |
{- "stayRecords": [
- {
- "siteCode": "string",
- "siteId": 0,
- "reservationNumber": "string",
- "confirmationCode": "string",
- "crsNumber": "string",
- "dateCreated": "2019-08-24T14:15:22Z",
- "bookingDate": "2019-08-24T14:15:22Z",
- "plannedCheckInDate": "2019-08-24T14:15:22Z",
- "plannedCheckOutDate": "2019-08-24T14:15:22Z",
- "actualChekInDate": "2019-08-24T14:15:22Z",
- "actualChekOutDate": "2019-08-24T14:15:22Z",
- "adultQty": 0,
- "childQty": 0,
- "currency": "string",
- "revenueRoom": 0.1,
- "revenueFood": 0.1,
- "revenueBeverage": 0.1,
- "revenueFunctions": 0.1,
- "revenueTax": 0.1,
- "revenueExtras": 0.1,
- "revenueOther": 0.1,
- "redeemAmount": 0.1,
- "paymentMethod": "string",
- "marketCode": "string",
- "marketDescription": "string",
- "roomQty": 0,
- "roomNumber": "string",
- "roomType": "string",
- "rateCode": "string",
- "rateDescription": "string",
- "baseRateAmount": 0.1,
- "customer": {
- "cardNumber": "string",
- "nationalIdNumber": "string",
- "passportNumber": "string",
- "vipStatus": "string",
- "primaryLanguage": "string",
- "emailOptOut": true,
- "mailOptOut": true,
- "title": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "cellPhoneNumber": "string",
- "otherPhoneNumber": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressCity": "string",
- "addressProvince": "string",
- "addressCountry": "string",
- "addressPostalCode": "string"
}
}
]
}
{- "statusCode": 0,
- "messages": [
- "string"
]
}
client-id | integer <int32> |
id | string or null Unique identifier for this record. |
dateMeasured | string <date-time> Date and time measurement is taken |
timeZone | string or null Time Zone the phone is in |
bacLevel | number <double> Breath alcohol level |
bacScale | string or null Measurement scale |
calibration | string or null Whether the device reports that calibration is due |
softwareClient | string or null iSober software version and phone OS |
deviceModel | string or null The breathalyser device model |
deviceSerial | string or null The breathalyser device serial number. If not reported, Bluetooth MAC (Android) Bluetooth identifier (iOS). |
firmware | string or null The breathalyser device firmware version |
handset | string or null Handset make and model |
latitude | number or null <double> Location reading was taken - Latitude decimal value |
longitude | number or null <double> Location reading was taken - Longitude decimal value |
address | string or null Address lookup of latitude/longitude |
mainPhoto | string or null Key to location of main image in file storage |
secondaryPhotos | Array of strings or null Keys to locations of secondary photos in file storage |
authenticatedUserUid | string or null Key to the currently authenticated user |
userUid | string or null Key to the tested subject |
userIdNumber | string or null ID or passport number of subject |
userName | string or null Name and surname of subject |
notes | string or null Notes |
{- "id": "string",
- "dateMeasured": "2019-08-24T14:15:22Z",
- "timeZone": "string",
- "bacLevel": 0.1,
- "bacScale": "string",
- "calibration": "string",
- "softwareClient": "string",
- "deviceModel": "string",
- "deviceSerial": "string",
- "firmware": "string",
- "handset": "string",
- "latitude": 0.1,
- "longitude": 0.1,
- "address": "string",
- "mainPhoto": "string",
- "secondaryPhotos": [
- "string"
], - "authenticatedUserUid": "string",
- "userUid": "string",
- "userIdNumber": "string",
- "userName": "string",
- "notes": "string"
}
{- "statusCode": 0,
- "messages": [
- "string"
]
}
clientId | integer or null <int32> Optional client Id |
date | string or null Date from formatted |
dateTo | string or null Optional date to formatted |
pageSize | integer <int32> Default: 100 Query page size. Defaults to 100. Maximum is 500 |
pageNumber | integer <int32> Default: 1 Query page number. Defaults to 1 |
language | string or null Default: "en" Optional ISO 639-1 language code. Defaults to 'en' |
{- "totalCount": 0,
- "pageSize": 0,
- "pageNumber": 0,
- "salesSummaries": [
- {
- "clientId": 0,
- "branchId": 0,
- "clientName": "string",
- "lineOfBusiness": "string",
- "date": "string",
- "transactionCount": 0,
- "bookingCount": 0,
- "gmv": 0.1,
- "revenue": 0.1,
- "currency": "string"
}
]
}
The id
in each location is used when performing availability requests.
queryString | string or null Optional wild card query string to match |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
{- "locations": [
- {
- "id": 0,
- "streetAddress": "string",
- "town": "string",
- "country": "string",
- "areaCode": "string",
- "geoLocation": {
- "latitude": 0.1,
- "longitude": 0.1
}, - "primaryArea": true
}
]
}
member-id | integer or null <int32> Optional MemberId |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
channel-terminal | string or null Optional 3rd party specific Channel Terminal |
username | string or null Optional 3rd party specific Username |
Bus reservation details
reservationReference | string or null Unique generated reservation reference |
transactionDate | string <date-time> Date when the reservation was created |
totalPrice | number <double> Total reservation price |
reservationStatus | string (ReservationStatus) Enum: "PENDING_PAYMENT" "RESERVATION_CREATED" "DRAFT" "CANCEL_TIMEOUT" "CANCELLED_PAYMENT_TIMEOUT" "CANCELLED" "PROCESSED" "CONFIRMED_DEPOSIT_RECEIVED" "QUOTATION" |
thirdPartyReference | string or null Third party reference to the reservation |
expiryDate | string or null <date-time> Date when the reservation expires |
Array of objects or null (BusTrip) All trips/routes information for the reservation | |
object (ReservationPayment) | |
object (PromotionCode) | |
seatMapUrl | string or null Seatmap component URL for all trips. Use within HTML iFrame if available |
{- "reservationReference": "string",
- "transactionDate": "2019-08-24T14:15:22Z",
- "totalPrice": 0.1,
- "reservationStatus": "PENDING_PAYMENT",
- "thirdPartyReference": "string",
- "expiryDate": "2019-08-24T14:15:22Z",
- "trips": [
- {
- "tripId": 0,
- "routeId": "string",
- "routeDescription": "string",
- "scheduleId": 0,
- "departureDate": "2019-08-24T14:15:22Z",
- "arrivalDate": "2019-08-24T14:15:22Z",
- "departure": {
- "id": 0,
- "streetAddress": "string",
- "town": "string",
- "country": "string",
- "areaCode": "string",
- "geoLocation": {
- "latitude": 0.1,
- "longitude": 0.1
}, - "primaryArea": true
}, - "destination": {
- "id": 0,
- "streetAddress": "string",
- "town": "string",
- "country": "string",
- "areaCode": "string",
- "geoLocation": {
- "latitude": 0.1,
- "longitude": 0.1
}, - "primaryArea": true
}, - "availableSeats": 0,
- "price": {
- "value": 0.1,
- "currency": "string"
}, - "priceClass": {
- "id": "string",
- "description": "string",
- "price": {
- "value": 0.1,
- "currency": "string"
}
}, - "bookingClasses": [
- {
- "seatClass": "ECONOMY",
- "availableSeats": 0,
- "price": {
- "value": 0.1,
- "currency": "string"
}
}
], - "discountClasses": [
- {
- "ageGroup": "ADULT",
- "price": {
- "value": 0.1,
- "currency": "string"
}
}
], - "tickets": [
- {
- "passenger": {
- "title": "string",
- "name": "string",
- "surname": "string",
- "mobileNumber": {
- "number": "string"
}, - "ageGroup": "ADULT",
- "gender": "MALE",
- "dateOfBirth": "string",
- "email": "string",
- "infantTravelling": true,
- "emergencyContact": {
- "name": "string",
- "contactNumber": {
- "number": "string"
}
}, - "identityDocument": {
- "documentType": "SOUTH_AFRICAN_ID",
- "number": "string"
}
}, - "thirdPartyReference": "string",
- "ticketNumber": "string",
- "ticketPrice": {
- "value": 0.1,
- "currency": "string"
}, - "nameChangePenalty": {
- "value": 0.1,
- "currency": "string"
}, - "cancellationPenalty": {
- "value": 0.1,
- "currency": "string"
}, - "ticketStatus": "PENDING_PAYMENT",
- "seatClass": "ECONOMY",
- "seatNumber": "string",
- "boardingStatus": "CHECKED_IN"
}
], - "seatMapUrl": "string"
}
], - "payment": {
- "payer": {
- "title": "string",
- "name": "string",
- "surname": "string",
- "dateOfBirth": "2019-08-24T14:15:22Z",
- "gender": "MALE",
- "ageGroup": "ADULT",
- "identityDocument": {
- "documentType": "SOUTH_AFRICAN_ID",
- "number": "string"
}, - "email": "string",
- "mobileNumber": {
- "number": "string"
}
}, - "paymentMethods": [
- {
- "paymentType": "CASH",
- "paymentReference": "string",
- "paymentDate": "2019-08-24T14:15:22Z",
- "total": {
- "value": 0.1,
- "currency": "string"
}
}
]
}, - "promotionCode": {
- "code": "string",
- "name": "string",
- "description": "string",
- "bookingFrom": "string",
- "bookingTo": "string",
- "travelFrom": "string",
- "travelTo": "string",
- "discountPercentage": 0.1,
- "discountAmount": 0.1,
- "routes": [
- {
- "routeId": "string",
- "routeDescription": "string",
- "dayOfWeekSchedule": {
- "monday": true,
- "tuesday": true,
- "wednesday": true,
- "thursday": true,
- "friday": true,
- "saturday": true,
- "sunday": true
}
}
]
}, - "seatMapUrl": "string"
}
{- "reservationReference": "string",
- "transactionDate": "2019-08-24T14:15:22Z",
- "totalPrice": 0.1,
- "reservationStatus": "PENDING_PAYMENT",
- "thirdPartyReference": "string",
- "expiryDate": "2019-08-24T14:15:22Z",
- "trips": [
- {
- "tripId": 0,
- "routeId": "string",
- "routeDescription": "string",
- "scheduleId": 0,
- "departureDate": "2019-08-24T14:15:22Z",
- "arrivalDate": "2019-08-24T14:15:22Z",
- "departure": {
- "id": 0,
- "streetAddress": "string",
- "town": "string",
- "country": "string",
- "areaCode": "string",
- "geoLocation": {
- "latitude": 0.1,
- "longitude": 0.1
}, - "primaryArea": true
}, - "destination": {
- "id": 0,
- "streetAddress": "string",
- "town": "string",
- "country": "string",
- "areaCode": "string",
- "geoLocation": {
- "latitude": 0.1,
- "longitude": 0.1
}, - "primaryArea": true
}, - "availableSeats": 0,
- "price": {
- "value": 0.1,
- "currency": "string"
}, - "priceClass": {
- "id": "string",
- "description": "string",
- "price": {
- "value": 0.1,
- "currency": "string"
}
}, - "bookingClasses": [
- {
- "seatClass": "ECONOMY",
- "availableSeats": 0,
- "price": {
- "value": 0.1,
- "currency": "string"
}
}
], - "discountClasses": [
- {
- "ageGroup": "ADULT",
- "price": {
- "value": 0.1,
- "currency": "string"
}
}
], - "tickets": [
- {
- "passenger": {
- "title": "string",
- "name": "string",
- "surname": "string",
- "mobileNumber": {
- "number": "string"
}, - "ageGroup": "ADULT",
- "gender": "MALE",
- "dateOfBirth": "string",
- "email": "string",
- "infantTravelling": true,
- "emergencyContact": {
- "name": "string",
- "contactNumber": {
- "number": "string"
}
}, - "identityDocument": {
- "documentType": "SOUTH_AFRICAN_ID",
- "number": "string"
}
}, - "thirdPartyReference": "string",
- "ticketNumber": "string",
- "ticketPrice": {
- "value": 0.1,
- "currency": "string"
}, - "nameChangePenalty": {
- "value": 0.1,
- "currency": "string"
}, - "cancellationPenalty": {
- "value": 0.1,
- "currency": "string"
}, - "ticketStatus": "PENDING_PAYMENT",
- "seatClass": "ECONOMY",
- "seatNumber": "string",
- "boardingStatus": "CHECKED_IN"
}
], - "seatMapUrl": "string"
}
], - "payment": {
- "payer": {
- "title": "string",
- "name": "string",
- "surname": "string",
- "dateOfBirth": "2019-08-24T14:15:22Z",
- "gender": "MALE",
- "ageGroup": "ADULT",
- "identityDocument": {
- "documentType": "SOUTH_AFRICAN_ID",
- "number": "string"
}, - "email": "string",
- "mobileNumber": {
- "number": "string"
}
}, - "paymentMethods": [
- {
- "paymentType": "CASH",
- "paymentReference": "string",
- "paymentDate": "2019-08-24T14:15:22Z",
- "total": {
- "value": 0.1,
- "currency": "string"
}
}
]
}, - "promotionCode": {
- "code": "string",
- "name": "string",
- "description": "string",
- "bookingFrom": "string",
- "bookingTo": "string",
- "travelFrom": "string",
- "travelTo": "string",
- "discountPercentage": 0.1,
- "discountAmount": 0.1,
- "routes": [
- {
- "routeId": "string",
- "routeDescription": "string",
- "dayOfWeekSchedule": {
- "monday": true,
- "tuesday": true,
- "wednesday": true,
- "thursday": true,
- "friday": true,
- "saturday": true,
- "sunday": true
}
}
]
}, - "seatMapUrl": "string"
}
reservationReference required | string or null Reservation reference |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
{- "reservationReference": "string",
- "transactionDate": "2019-08-24T14:15:22Z",
- "totalPrice": 0.1,
- "reservationStatus": "PENDING_PAYMENT",
- "thirdPartyReference": "string",
- "expiryDate": "2019-08-24T14:15:22Z",
- "trips": [
- {
- "tripId": 0,
- "routeId": "string",
- "routeDescription": "string",
- "scheduleId": 0,
- "departureDate": "2019-08-24T14:15:22Z",
- "arrivalDate": "2019-08-24T14:15:22Z",
- "departure": {
- "id": 0,
- "streetAddress": "string",
- "town": "string",
- "country": "string",
- "areaCode": "string",
- "geoLocation": {
- "latitude": 0.1,
- "longitude": 0.1
}, - "primaryArea": true
}, - "destination": {
- "id": 0,
- "streetAddress": "string",
- "town": "string",
- "country": "string",
- "areaCode": "string",
- "geoLocation": {
- "latitude": 0.1,
- "longitude": 0.1
}, - "primaryArea": true
}, - "availableSeats": 0,
- "price": {
- "value": 0.1,
- "currency": "string"
}, - "priceClass": {
- "id": "string",
- "description": "string",
- "price": {
- "value": 0.1,
- "currency": "string"
}
}, - "bookingClasses": [
- {
- "seatClass": "ECONOMY",
- "availableSeats": 0,
- "price": {
- "value": 0.1,
- "currency": "string"
}
}
], - "discountClasses": [
- {
- "ageGroup": "ADULT",
- "price": {
- "value": 0.1,
- "currency": "string"
}
}
], - "tickets": [
- {
- "passenger": {
- "title": "string",
- "name": "string",
- "surname": "string",
- "mobileNumber": {
- "number": "string"
}, - "ageGroup": "ADULT",
- "gender": "MALE",
- "dateOfBirth": "string",
- "email": "string",
- "infantTravelling": true,
- "emergencyContact": {
- "name": "string",
- "contactNumber": {
- "number": "string"
}
}, - "identityDocument": {
- "documentType": "SOUTH_AFRICAN_ID",
- "number": "string"
}
}, - "thirdPartyReference": "string",
- "ticketNumber": "string",
- "ticketPrice": {
- "value": 0.1,
- "currency": "string"
}, - "nameChangePenalty": {
- "value": 0.1,
- "currency": "string"
}, - "cancellationPenalty": {
- "value": 0.1,
- "currency": "string"
}, - "ticketStatus": "PENDING_PAYMENT",
- "seatClass": "ECONOMY",
- "seatNumber": "string",
- "boardingStatus": "CHECKED_IN"
}
], - "seatMapUrl": "string"
}
], - "payment": {
- "payer": {
- "title": "string",
- "name": "string",
- "surname": "string",
- "dateOfBirth": "2019-08-24T14:15:22Z",
- "gender": "MALE",
- "ageGroup": "ADULT",
- "identityDocument": {
- "documentType": "SOUTH_AFRICAN_ID",
- "number": "string"
}, - "email": "string",
- "mobileNumber": {
- "number": "string"
}
}, - "paymentMethods": [
- {
- "paymentType": "CASH",
- "paymentReference": "string",
- "paymentDate": "2019-08-24T14:15:22Z",
- "total": {
- "value": 0.1,
- "currency": "string"
}
}
]
}, - "promotionCode": {
- "code": "string",
- "name": "string",
- "description": "string",
- "bookingFrom": "string",
- "bookingTo": "string",
- "travelFrom": "string",
- "travelTo": "string",
- "discountPercentage": 0.1,
- "discountAmount": 0.1,
- "routes": [
- {
- "routeId": "string",
- "routeDescription": "string",
- "dayOfWeekSchedule": {
- "monday": true,
- "tuesday": true,
- "wednesday": true,
- "thursday": true,
- "friday": true,
- "saturday": true,
- "sunday": true
}
}
]
}, - "seatMapUrl": "string"
}
reservationReference required | string or null Reservation reference |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
{- "success": true,
- "message": "string",
- "monetaryValue": {
- "value": 0.1,
- "currency": "string"
}
}
reservationReference required | string or null Reservation reference |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
{- "success": true,
- "message": "string",
- "monetaryValue": {
- "value": 0.1,
- "currency": "string"
}
}
reservationReference required | string or null Reservation reference |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
{- "success": true,
- "message": "string",
- "monetaryValue": {
- "value": 0.1,
- "currency": "string"
}
}
reservationReference required | string or null Reservation reference |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
username | integer <int32> User name |
Payment details
object (Payer) | |
Array of objects or null (PaymentMethod) Payment Methods |
{- "payer": {
- "title": "string",
- "name": "string",
- "surname": "string",
- "dateOfBirth": "2019-08-24T14:15:22Z",
- "gender": "MALE",
- "ageGroup": "ADULT",
- "identityDocument": {
- "documentType": "SOUTH_AFRICAN_ID",
- "number": "string"
}, - "email": "string",
- "mobileNumber": {
- "number": "string"
}
}, - "paymentMethods": [
- {
- "paymentType": "CASH",
- "paymentReference": "string",
- "paymentDate": "2019-08-24T14:15:22Z",
- "total": {
- "value": 0.1,
- "currency": "string"
}
}
]
}
{- "success": true,
- "message": "string",
- "monetaryValue": {
- "value": 0.1,
- "currency": "string"
}
}
reservationReference required | string or null Reservation reference |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
Promotion code object. Only code
is required
code | string or null Promotion code identifier |
name | string or null Promotion name |
description | string or null Description name |
bookingFrom | string or null Booking date valid from, formatted dd-MM-yyyy |
bookingTo | string or null Booking date valid to, formatted dd-MM-yyyy |
travelFrom | string or null Travel date valid from, formatted dd-MM-yyyy |
travelTo | string or null Travel date valid to, formatted dd-MM-yyyy |
discountPercentage | number or null <double> Percentage discount which can be applied. If null, |
discountAmount | number or null <double> Amount discount which can be applied. If null, |
Array of objects or null (Route) Specific routes to which the promotion can be applied. If empty, the promotion is applicable to all routes. |
{- "code": "string",
- "name": "string",
- "description": "string",
- "bookingFrom": "string",
- "bookingTo": "string",
- "travelFrom": "string",
- "travelTo": "string",
- "discountPercentage": 0.1,
- "discountAmount": 0.1,
- "routes": [
- {
- "routeId": "string",
- "routeDescription": "string",
- "dayOfWeekSchedule": {
- "monday": true,
- "tuesday": true,
- "wednesday": true,
- "thursday": true,
- "friday": true,
- "saturday": true,
- "sunday": true
}
}
]
}
{- "success": true,
- "message": "string",
- "monetaryValue": {
- "value": 0.1,
- "currency": "string"
}
}
reservationReference required | string or null Reservation reference |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
{- "success": true,
- "message": "string",
- "monetaryValue": {
- "value": 0.1,
- "currency": "string"
}
}
reservationReference required | string or null Reservation reference |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
Collection of tickets to update passenger details
Array of objects or null (BusTicketBase) List of Bus Tickets |
{- "tickets": [
- {
- "ticketNumber": "string",
- "passenger": {
- "title": "string",
- "name": "string",
- "surname": "string",
- "mobileNumber": {
- "number": "string"
}, - "ageGroup": "ADULT",
- "gender": "MALE",
- "dateOfBirth": "string",
- "email": "string",
- "infantTravelling": true,
- "emergencyContact": {
- "name": "string",
- "contactNumber": {
- "number": "string"
}
}, - "identityDocument": {
- "documentType": "SOUTH_AFRICAN_ID",
- "number": "string"
}
}
}
]
}
{- "success": true,
- "message": "string",
- "monetaryValue": {
- "value": 0.1,
- "currency": "string"
}
}
reservationReference required | string or null Reservation reference |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
Collection of tickets to update passenger details
Array of objects or null (BusTicketBase) List of Bus Tickets |
{- "tickets": [
- {
- "ticketNumber": "string",
- "passenger": {
- "title": "string",
- "name": "string",
- "surname": "string",
- "mobileNumber": {
- "number": "string"
}, - "ageGroup": "ADULT",
- "gender": "MALE",
- "dateOfBirth": "string",
- "email": "string",
- "infantTravelling": true,
- "emergencyContact": {
- "name": "string",
- "contactNumber": {
- "number": "string"
}
}, - "identityDocument": {
- "documentType": "SOUTH_AFRICAN_ID",
- "number": "string"
}
}
}
]
}
{- "success": true,
- "message": "string",
- "monetaryValue": {
- "value": 0.1,
- "currency": "string"
}
}
reservationReference required | string or null Reservation reference |
ticketReference required | string or null Reservation ticket reference |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
{- "passenger": {
- "title": "string",
- "name": "string",
- "surname": "string",
- "mobileNumber": {
- "number": "string"
}, - "ageGroup": "ADULT",
- "gender": "MALE",
- "dateOfBirth": "string",
- "email": "string",
- "infantTravelling": true,
- "emergencyContact": {
- "name": "string",
- "contactNumber": {
- "number": "string"
}
}, - "identityDocument": {
- "documentType": "SOUTH_AFRICAN_ID",
- "number": "string"
}
}, - "thirdPartyReference": "string",
- "ticketNumber": "string",
- "ticketPrice": {
- "value": 0.1,
- "currency": "string"
}, - "nameChangePenalty": {
- "value": 0.1,
- "currency": "string"
}, - "cancellationPenalty": {
- "value": 0.1,
- "currency": "string"
}, - "ticketStatus": "PENDING_PAYMENT",
- "seatClass": "ECONOMY",
- "seatNumber": "string",
- "boardingStatus": "CHECKED_IN"
}
reservationReference required | string or null Reservation reference |
ticketReference required | string or null Ticket reference |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
username | string or null Optional overriding username |
{- "success": true,
- "message": "string"
}
reservationReference required | string or null Reservation reference |
ticketReference required | string or null Ticket reference |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
username | string or null Optional username details |
{- "success": true,
- "message": "string"
}
reservationReference required | string or null Reservation reference |
ticketReference required | string or null Ticket reference |
client-id | integer <int32> Client Id |
{- "success": true,
- "message": "string",
- "monetaryValue": {
- "value": 0.1,
- "currency": "string"
}
}
reservationReference required | string or null Reservation reference |
ticketReference required | string or null Ticket reference |
client-id | integer <int32> Client Id |
{- "success": true,
- "message": "string",
- "monetaryValue": {
- "value": 0.1,
- "currency": "string"
}
}
reservationReference required | string or null Reservation reference |
ticketReference required | string or null Ticket reference |
client-id | integer <int32> Client Id |
{- "success": true,
- "message": "string",
- "monetaryValue": {
- "value": 0.1,
- "currency": "string"
}
}
reservationReference required | string or null Reservation reference |
ticketReference required | string or null Ticket reference |
thirdPartyReference | string or null Third party reference |
client-id | integer <int32> Client Id |
Passenger details
title | string or null Title of person |
name | string or null First Name of person |
surname | string or null Last name of person |
object (ContactInformation) | |
ageGroup | string (AgeGroup) Enum: "ADULT" "CHILD" "STUDENT" "PENSIONER" "INFANT" |
gender | string (Gender) Enum: "MALE" "FEMALE" "COMPANY" |
dateOfBirth | string or null Date of birth of person |
string or null Email address of person | |
infantTravelling | boolean or null Is an infant traveling on the lap of the passenger |
object (EmergencyContact) | |
object (IdentityDocument) |
{- "title": "string",
- "name": "string",
- "surname": "string",
- "mobileNumber": {
- "number": "string"
}, - "ageGroup": "ADULT",
- "gender": "MALE",
- "dateOfBirth": "string",
- "email": "string",
- "infantTravelling": true,
- "emergencyContact": {
- "name": "string",
- "contactNumber": {
- "number": "string"
}
}, - "identityDocument": {
- "documentType": "SOUTH_AFRICAN_ID",
- "number": "string"
}
}
{- "success": true,
- "message": "string",
- "monetaryValue": {
- "value": 0.1,
- "currency": "string"
}
}
reservationReference required | string or null Reservation reference |
client-id | integer <int32> Client Id |
channel-id | integer <int32> |
Ticket numbers to cancel reference
ticketNumbers | Array of strings or null List of Bus Tickets Numbers |
{- "ticketNumbers": [
- "string"
]
}
{- "success": true,
- "message": "string",
- "monetaryValue": {
- "value": 0.1,
- "currency": "string"
}
}
reservationReference required | string or null Reservation reference |
tripId required | integer <int32> Trip Id |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
username | string or null Optional 3rd party specific Username |
New Tickets
object (Passenger) | |
thirdPartyReference | string or null Third Party Reference |
ticketNumber | string or null Generated ticket number |
object (CurrencyAmount) | |
object (CurrencyAmount) | |
object (CurrencyAmount) | |
ticketStatus | string (TicketStatus) Enum: "PENDING_PAYMENT" "RESERVATION_CREATED" "DRAFT" "CANCEL_TIMEOUT" "CANCELLED_PAYMENT_TIMEOUT" "CANCELLED" "PROCESSED" "CONFIRMED_DEPOSIT_RECEIVED" "QUOTATION" |
seatClass | string (SeatClass) Enum: "ECONOMY" "BUSINESS" "WHEELCHAIR" "STANDING" |
seatNumber | string or null Ticket Seat Number |
boardingStatus | string (BoardingStatus) Enum: "CHECKED_IN" "NO_SHOW" |
[- {
- "passenger": {
- "title": "string",
- "name": "string",
- "surname": "string",
- "mobileNumber": {
- "number": "string"
}, - "ageGroup": "ADULT",
- "gender": "MALE",
- "dateOfBirth": "string",
- "email": "string",
- "infantTravelling": true,
- "emergencyContact": {
- "name": "string",
- "contactNumber": {
- "number": "string"
}
}, - "identityDocument": {
- "documentType": "SOUTH_AFRICAN_ID",
- "number": "string"
}
}, - "thirdPartyReference": "string",
- "ticketNumber": "string",
- "ticketPrice": {
- "value": 0.1,
- "currency": "string"
}, - "nameChangePenalty": {
- "value": 0.1,
- "currency": "string"
}, - "cancellationPenalty": {
- "value": 0.1,
- "currency": "string"
}, - "ticketStatus": "PENDING_PAYMENT",
- "seatClass": "ECONOMY",
- "seatNumber": "string",
- "boardingStatus": "CHECKED_IN"
}
]
{- "reservationReference": "string",
- "transactionDate": "2019-08-24T14:15:22Z",
- "totalPrice": 0.1,
- "reservationStatus": "PENDING_PAYMENT",
- "thirdPartyReference": "string",
- "expiryDate": "2019-08-24T14:15:22Z",
- "trips": [
- {
- "tripId": 0,
- "routeId": "string",
- "routeDescription": "string",
- "scheduleId": 0,
- "departureDate": "2019-08-24T14:15:22Z",
- "arrivalDate": "2019-08-24T14:15:22Z",
- "departure": {
- "id": 0,
- "streetAddress": "string",
- "town": "string",
- "country": "string",
- "areaCode": "string",
- "geoLocation": {
- "latitude": 0.1,
- "longitude": 0.1
}, - "primaryArea": true
}, - "destination": {
- "id": 0,
- "streetAddress": "string",
- "town": "string",
- "country": "string",
- "areaCode": "string",
- "geoLocation": {
- "latitude": 0.1,
- "longitude": 0.1
}, - "primaryArea": true
}, - "availableSeats": 0,
- "price": {
- "value": 0.1,
- "currency": "string"
}, - "priceClass": {
- "id": "string",
- "description": "string",
- "price": {
- "value": 0.1,
- "currency": "string"
}
}, - "bookingClasses": [
- {
- "seatClass": "ECONOMY",
- "availableSeats": 0,
- "price": {
- "value": 0.1,
- "currency": "string"
}
}
], - "discountClasses": [
- {
- "ageGroup": "ADULT",
- "price": {
- "value": 0.1,
- "currency": "string"
}
}
], - "tickets": [
- {
- "passenger": {
- "title": "string",
- "name": "string",
- "surname": "string",
- "mobileNumber": {
- "number": "string"
}, - "ageGroup": "ADULT",
- "gender": "MALE",
- "dateOfBirth": "string",
- "email": "string",
- "infantTravelling": true,
- "emergencyContact": {
- "name": "string",
- "contactNumber": {
- "number": "string"
}
}, - "identityDocument": {
- "documentType": "SOUTH_AFRICAN_ID",
- "number": "string"
}
}, - "thirdPartyReference": "string",
- "ticketNumber": "string",
- "ticketPrice": {
- "value": 0.1,
- "currency": "string"
}, - "nameChangePenalty": {
- "value": 0.1,
- "currency": "string"
}, - "cancellationPenalty": {
- "value": 0.1,
- "currency": "string"
}, - "ticketStatus": "PENDING_PAYMENT",
- "seatClass": "ECONOMY",
- "seatNumber": "string",
- "boardingStatus": "CHECKED_IN"
}
], - "seatMapUrl": "string"
}
], - "payment": {
- "payer": {
- "title": "string",
- "name": "string",
- "surname": "string",
- "dateOfBirth": "2019-08-24T14:15:22Z",
- "gender": "MALE",
- "ageGroup": "ADULT",
- "identityDocument": {
- "documentType": "SOUTH_AFRICAN_ID",
- "number": "string"
}, - "email": "string",
- "mobileNumber": {
- "number": "string"
}
}, - "paymentMethods": [
- {
- "paymentType": "CASH",
- "paymentReference": "string",
- "paymentDate": "2019-08-24T14:15:22Z",
- "total": {
- "value": 0.1,
- "currency": "string"
}
}
]
}, - "promotionCode": {
- "code": "string",
- "name": "string",
- "description": "string",
- "bookingFrom": "string",
- "bookingTo": "string",
- "travelFrom": "string",
- "travelTo": "string",
- "discountPercentage": 0.1,
- "discountAmount": 0.1,
- "routes": [
- {
- "routeId": "string",
- "routeDescription": "string",
- "dayOfWeekSchedule": {
- "monday": true,
- "tuesday": true,
- "wednesday": true,
- "thursday": true,
- "friday": true,
- "saturday": true,
- "sunday": true
}
}
]
}, - "seatMapUrl": "string"
}
ticketReference required | string or null Reservation ticket reference |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
{- "reservationReference": "string",
- "transactionDate": "2019-08-24T14:15:22Z",
- "totalPrice": 0.1,
- "reservationStatus": "PENDING_PAYMENT",
- "thirdPartyReference": "string",
- "expiryDate": "2019-08-24T14:15:22Z",
- "trips": [
- {
- "tripId": 0,
- "routeId": "string",
- "routeDescription": "string",
- "scheduleId": 0,
- "departureDate": "2019-08-24T14:15:22Z",
- "arrivalDate": "2019-08-24T14:15:22Z",
- "departure": {
- "id": 0,
- "streetAddress": "string",
- "town": "string",
- "country": "string",
- "areaCode": "string",
- "geoLocation": {
- "latitude": 0.1,
- "longitude": 0.1
}, - "primaryArea": true
}, - "destination": {
- "id": 0,
- "streetAddress": "string",
- "town": "string",
- "country": "string",
- "areaCode": "string",
- "geoLocation": {
- "latitude": 0.1,
- "longitude": 0.1
}, - "primaryArea": true
}, - "availableSeats": 0,
- "price": {
- "value": 0.1,
- "currency": "string"
}, - "priceClass": {
- "id": "string",
- "description": "string",
- "price": {
- "value": 0.1,
- "currency": "string"
}
}, - "bookingClasses": [
- {
- "seatClass": "ECONOMY",
- "availableSeats": 0,
- "price": {
- "value": 0.1,
- "currency": "string"
}
}
], - "discountClasses": [
- {
- "ageGroup": "ADULT",
- "price": {
- "value": 0.1,
- "currency": "string"
}
}
], - "tickets": [
- {
- "passenger": {
- "title": "string",
- "name": "string",
- "surname": "string",
- "mobileNumber": {
- "number": "string"
}, - "ageGroup": "ADULT",
- "gender": "MALE",
- "dateOfBirth": "string",
- "email": "string",
- "infantTravelling": true,
- "emergencyContact": {
- "name": "string",
- "contactNumber": {
- "number": "string"
}
}, - "identityDocument": {
- "documentType": "SOUTH_AFRICAN_ID",
- "number": "string"
}
}, - "thirdPartyReference": "string",
- "ticketNumber": "string",
- "ticketPrice": {
- "value": 0.1,
- "currency": "string"
}, - "nameChangePenalty": {
- "value": 0.1,
- "currency": "string"
}, - "cancellationPenalty": {
- "value": 0.1,
- "currency": "string"
}, - "ticketStatus": "PENDING_PAYMENT",
- "seatClass": "ECONOMY",
- "seatNumber": "string",
- "boardingStatus": "CHECKED_IN"
}
], - "seatMapUrl": "string"
}
], - "payment": {
- "payer": {
- "title": "string",
- "name": "string",
- "surname": "string",
- "dateOfBirth": "2019-08-24T14:15:22Z",
- "gender": "MALE",
- "ageGroup": "ADULT",
- "identityDocument": {
- "documentType": "SOUTH_AFRICAN_ID",
- "number": "string"
}, - "email": "string",
- "mobileNumber": {
- "number": "string"
}
}, - "paymentMethods": [
- {
- "paymentType": "CASH",
- "paymentReference": "string",
- "paymentDate": "2019-08-24T14:15:22Z",
- "total": {
- "value": 0.1,
- "currency": "string"
}
}
]
}, - "promotionCode": {
- "code": "string",
- "name": "string",
- "description": "string",
- "bookingFrom": "string",
- "bookingTo": "string",
- "travelFrom": "string",
- "travelTo": "string",
- "discountPercentage": 0.1,
- "discountAmount": 0.1,
- "routes": [
- {
- "routeId": "string",
- "routeDescription": "string",
- "dayOfWeekSchedule": {
- "monday": true,
- "tuesday": true,
- "wednesday": true,
- "thursday": true,
- "friday": true,
- "saturday": true,
- "sunday": true
}
}
]
}, - "seatMapUrl": "string"
}
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
{- "routes": [
- {
- "routeId": "string",
- "routeDescription": "string",
- "dayOfWeekSchedule": {
- "monday": true,
- "tuesday": true,
- "wednesday": true,
- "thursday": true,
- "friday": true,
- "saturday": true,
- "sunday": true
}
}
]
}
routeId required | string or null Specified route id. |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
{- "routeId": "string",
- "routeDescription": "string",
- "dayOfWeekSchedule": {
- "monday": true,
- "tuesday": true,
- "wednesday": true,
- "thursday": true,
- "friday": true,
- "saturday": true,
- "sunday": true
}
}
routeId required | string or null Specified route id. |
dateFrom | string or null Date from search for bus schedules formatted |
dateTo | string or null Date to search for bus schedules formatted |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
{- "schedules": [
- {
- "scheduleId": 0,
- "scheduleDescription": "string",
- "routeId": "string",
- "routeDescription": "string",
- "scheduleStart": "2019-08-24T14:15:22Z",
- "scheduleEnd": "2019-08-24T14:15:22Z"
}
]
}
routeId required | string or null Specified route id. |
scheduleId required | integer <int64> Specified schedule id. |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
{- "scheduleId": 0,
- "scheduleDescription": "string",
- "routeId": "string",
- "routeDescription": "string",
- "scheduleStart": "2019-08-24T14:15:22Z",
- "scheduleEnd": "2019-08-24T14:15:22Z"
}
routeId required | string or null Specified route id. |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
{- "stops": [
- {
- "order": 0,
- "arriveTime": "string",
- "departTime": "string",
- "nextDay": true,
- "location": {
- "id": 0,
- "streetAddress": "string",
- "town": "string",
- "country": "string",
- "areaCode": "string",
- "geoLocation": {
- "latitude": 0.1,
- "longitude": 0.1
}, - "primaryArea": true
}
}
]
}
The departureLocationId
and arrivalLocationId
returned are the locationIds
between two valid segments within a route.
Availability can be retrieved by using the pair of ids in the availability request.
locationId | integer or null <int32> Optional locationId filter |
primaryLocations | boolean or null Optional primary indicator to return all primary/most popular route segments (true/false) |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
{- "segments": [
- {
- "departureLocationId": 0,
- "arrivalLocationId": 0
}
]
}
Returns a collection of current bus schedule tracking entries where the schedule is active, currently running, and a bus with active vehicle tracking has been assigned.
scheduleId | integer or null <int64> Optional schedule Id filter |
client-id | integer <int32> Client Id |
channel-id | integer or null <int32> Channel Id |
{- "busTrackings": [
- {
- "fleetNumber": "string",
- "schedule": {
- "scheduleId": 0,
- "scheduleDescription": "string",
- "routeId": "string",
- "routeDescription": "string",
- "scheduleStart": "2019-08-24T14:15:22Z",
- "scheduleEnd": "2019-08-24T14:15:22Z"
}, - "nextStop": {
- "order": 0,
- "arriveTime": "string",
- "departTime": "string",
- "nextDay": true,
- "location": {
- "id": 0,
- "streetAddress": "string",
- "town": "string",
- "country": "string",
- "areaCode": "string",
- "geoLocation": {
- "latitude": 0.1,
- "longitude": 0.1
}, - "primaryArea": true
}
}, - "currentGeoLocation": {
- "latitude": 0.1,
- "longitude": 0.1,
- "lastUpdated": "2019-08-24T14:15:22Z"
}
}
]
}
Find available routes between two locationIds
on a specified departureDate
.departureLocationId
and destinationLocationId
are locationIds
returned by the /bus-locations
endpoint.
Valid departureLocationId
and destinationLocationId
pairs can be found using the /bus-segments
endpoint.
departureLocationId | string or null Departure Station Location Id |
destinationLocationId | string or null Destination Station Location Id |
departureDate | string or null Date to search for bus trips formatted |
numberOfPassengers | string or null Total number of passengers for the trip |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
{- "trips": [
- {
- "tripId": 0,
- "routeId": "string",
- "routeDescription": "string",
- "scheduleId": 0,
- "departureDate": "2019-08-24T14:15:22Z",
- "arrivalDate": "2019-08-24T14:15:22Z",
- "departure": {
- "id": 0,
- "streetAddress": "string",
- "town": "string",
- "country": "string",
- "areaCode": "string",
- "geoLocation": {
- "latitude": 0.1,
- "longitude": 0.1
}, - "primaryArea": true
}, - "destination": {
- "id": 0,
- "streetAddress": "string",
- "town": "string",
- "country": "string",
- "areaCode": "string",
- "geoLocation": {
- "latitude": 0.1,
- "longitude": 0.1
}, - "primaryArea": true
}, - "availableSeats": 0,
- "price": {
- "value": 0.1,
- "currency": "string"
}, - "priceClass": {
- "id": "string",
- "description": "string",
- "price": {
- "value": 0.1,
- "currency": "string"
}
}, - "bookingClasses": [
- {
- "seatClass": "ECONOMY",
- "availableSeats": 0,
- "price": {
- "value": 0.1,
- "currency": "string"
}
}
], - "discountClasses": [
- {
- "ageGroup": "ADULT",
- "price": {
- "value": 0.1,
- "currency": "string"
}
}
], - "tickets": [
- {
- "passenger": {
- "title": "string",
- "name": "string",
- "surname": "string",
- "mobileNumber": {
- "number": "string"
}, - "ageGroup": "ADULT",
- "gender": "MALE",
- "dateOfBirth": "string",
- "email": "string",
- "infantTravelling": true,
- "emergencyContact": {
- "name": "string",
- "contactNumber": {
- "number": "string"
}
}, - "identityDocument": {
- "documentType": "SOUTH_AFRICAN_ID",
- "number": "string"
}
}, - "thirdPartyReference": "string",
- "ticketNumber": "string",
- "ticketPrice": {
- "value": 0.1,
- "currency": "string"
}, - "nameChangePenalty": {
- "value": 0.1,
- "currency": "string"
}, - "cancellationPenalty": {
- "value": 0.1,
- "currency": "string"
}, - "ticketStatus": "PENDING_PAYMENT",
- "seatClass": "ECONOMY",
- "seatNumber": "string",
- "boardingStatus": "CHECKED_IN"
}
], - "seatMapUrl": "string"
}
]
}
tripReference required | integer <int64> Trip Id |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
{- "tripId": 0,
- "routeId": "string",
- "routeDescription": "string",
- "scheduleId": 0,
- "departureDate": "2019-08-24T14:15:22Z",
- "arrivalDate": "2019-08-24T14:15:22Z",
- "departure": {
- "id": 0,
- "streetAddress": "string",
- "town": "string",
- "country": "string",
- "areaCode": "string",
- "geoLocation": {
- "latitude": 0.1,
- "longitude": 0.1
}, - "primaryArea": true
}, - "destination": {
- "id": 0,
- "streetAddress": "string",
- "town": "string",
- "country": "string",
- "areaCode": "string",
- "geoLocation": {
- "latitude": 0.1,
- "longitude": 0.1
}, - "primaryArea": true
}, - "availableSeats": 0,
- "price": {
- "value": 0.1,
- "currency": "string"
}, - "priceClass": {
- "id": "string",
- "description": "string",
- "price": {
- "value": 0.1,
- "currency": "string"
}
}, - "bookingClasses": [
- {
- "seatClass": "ECONOMY",
- "availableSeats": 0,
- "price": {
- "value": 0.1,
- "currency": "string"
}
}
], - "discountClasses": [
- {
- "ageGroup": "ADULT",
- "price": {
- "value": 0.1,
- "currency": "string"
}
}
], - "tickets": [
- {
- "passenger": {
- "title": "string",
- "name": "string",
- "surname": "string",
- "mobileNumber": {
- "number": "string"
}, - "ageGroup": "ADULT",
- "gender": "MALE",
- "dateOfBirth": "string",
- "email": "string",
- "infantTravelling": true,
- "emergencyContact": {
- "name": "string",
- "contactNumber": {
- "number": "string"
}
}, - "identityDocument": {
- "documentType": "SOUTH_AFRICAN_ID",
- "number": "string"
}
}, - "thirdPartyReference": "string",
- "ticketNumber": "string",
- "ticketPrice": {
- "value": 0.1,
- "currency": "string"
}, - "nameChangePenalty": {
- "value": 0.1,
- "currency": "string"
}, - "cancellationPenalty": {
- "value": 0.1,
- "currency": "string"
}, - "ticketStatus": "PENDING_PAYMENT",
- "seatClass": "ECONOMY",
- "seatNumber": "string",
- "boardingStatus": "CHECKED_IN"
}
], - "seatMapUrl": "string"
}
Retrieve stops for a particular trip.
tripReference required | integer <int64> Trip Id |
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
{- "tripStops": [
- {
- "order": 0,
- "arriveTime": "string",
- "departTime": "string",
- "nextDay": true,
- "location": {
- "id": 0,
- "streetAddress": "string",
- "town": "string",
- "country": "string",
- "areaCode": "string",
- "geoLocation": {
- "latitude": 0.1,
- "longitude": 0.1
}, - "primaryArea": true
}
}
]
}
client-id | integer <int32> Client Id |
channel-id | integer <int32> Channel Id |
{- "promotionCodes": [
- {
- "code": "string",
- "name": "string",
- "description": "string",
- "bookingFrom": "string",
- "bookingTo": "string",
- "travelFrom": "string",
- "travelTo": "string",
- "discountPercentage": 0.1,
- "discountAmount": 0.1,
- "routes": [
- {
- "routeId": "string",
- "routeDescription": "string",
- "dayOfWeekSchedule": {
- "monday": true,
- "tuesday": true,
- "wednesday": true,
- "thursday": true,
- "friday": true,
- "saturday": true,
- "sunday": true
}
}
]
}
]
}