...
Description
...
format
...
mandatory
...
title: Element index on client system.
...
BookingQuery
...
token : request token
example: 52e6e452090b
...
yes
...
SolutionQuery
...
solutionid : solution selected to book
...
string
title: Solution identifier.
...
yes
...
journeys: list of journeys into solution id
...
string
example: IB210020190820]
...
yes
...
element_no
...
title: Element index on client system.
...
no
...
holder
...
traveller id
...
[string]
...
yes
...
code
...
[string]
title: Traveller id
...
yes
...
type: traveller type
🔹 Request Body - Booking
...
NAME | DESCRIPTION | FORMAT | ALLOWED VALUES | MANDATORY |
---|---|---|---|---|
Booking Request | ||||
query | ||||
query/token | Request Token | String | LZ63453a81cc00e | No |
query/solutions | Solutions to book | Array[Object] | Yes | |
solutions/journeys | Array of Journeys ids | Array[String] |
| Yes |
solutions/id | Solution identifier | String | VZ63453a86505da0022 | Yes |
query/travellers | Array[Object] | Yes | ||
travellers/type | Traveller type [ADT, CHD, INF, YCD, YTH] |
yes
gender : traveler gender
[ Male, Female ]
yes
title : traveller title
String | ADT | Yes |
travellers/title | Traveller title [Mr, Mrs, Ms, |
Miss] |
yes
name: traveller name
Example : Miguel
yes
surnemes: traveller surnames
Example : perezun
yes
birth_date: date of birth of traveller required for child and infant
: "1992-01-06"
yes for child and infant traveller type
contact
type Contact data type, Passenger or Emergency
[string]
yes
name Contact name (Emergency)
[string]
no
surnames Contact surname (Emergency)
[string]
no
no
mails List of contact mails.
[string]
no
List of contact phones.
phones title: List of contact phones
[string]
Telephone
country_pref
[0034]
no
number
[649540022]
no
address Contact address (mandatory for low cost, check the flag 'need_address' in PricingRS
[string]
no
city Contact city (mandatory for low cost, check the flag 'need_address' in PricingRS)
[string]
no
postal_codes postalCode (mandatory for low cost, check the flag 'need_address' in PricingRS)
[string]
no
country Contact country (mandatory for low cost, check the flag 'need_address' in PricingRS)
[string]
no
Traveller documents
title: Traveller documents.
Document
String | Mr | Yes | ||
travellers/name | Traveller Name | String | Pepe | Yes |
travellers/documents | Array[Object] | |||
documents/type | Document Type | Enum |
|
PersonInCharge
|
[ PP, NI, TR, FF, CE, DL ]
yes
number Document Number.
[string]
yes
city Municipality of residence. Mandatory for resident discount.
[string]
no
country Document emission country.
[string]
no
nationality Document nationality
[string]
no
issue_date document issue date
($date-time)
no
expiry_date expiration document date
($date-time)
no
validated Indicates if the document was validated by the provider. Used by residents, validation S.A.R.A.
[string]
no
Person in charge of the traveler
responsibles :person in charge of travelers used by UNMR unaccompanied minors travelling alone
Yes | ||||
documents/number | Document Number | String | BWE840580S | Yes |
documents/nationality | Document nationality | String | ES | Yes |
documents/issue_date | Document issue date | Date | 2021-11-11 | Yes |
documents/expiry_date | Document expiration date | DateTime | 2025-11-11 | Yes |
documents/country | Document emission country | String | ES | Yes |
travellers/responsibles | Array[Object] | No | ||
responsibles/locations | IATA or ID location for pick-up or drop-off |
LHR |
No | |
responsibles/name | Contact's full name |
[string]
no
String | Pepa | No | |
responsibles/address | Contact's address |
[string]
no
String | c/ de la llegada | No | |
responsibles/phones | Contact's phone |
[string]
no
String | 711223344 | No | |
responsibles/origin_destination_ref | OriginDestination references for person in charge | Integer |
0 |
No |
travellers |
Travellers data Travellers data.
Traveller
code Traveller id
[string]
yes
type traveller type
[ADT, CHD, INF]
yes
gender traveller gender
[ Male, Female ]
yes
title traveller title
[ Mr, Mrs, Ms, Miss ]
yes
name traveller name
"testina"
yes
surname traveller surname
example ["test"],
yes
birth_date only mandatory for child and infant
"1992-05-11",
no
contact
yes
/surnames | Surnames | Array[String] | Lleego Adulto | Yes |
travellers/birth_date | Birth date | DateTime | 1989-12-12 | No |
travellers/contact | Object | |||
contact/type | Contact data type, Passenger or Emergency |
[string]
yes
String | Emergency | No |
contact/name | Contact name (Emergency) | String |
Pepe |
No | |
contact/surnames | Contact surname (Emergency) |
[string]
no
traveller documents
type title: Document Type - PP: Passport - NI: National identity document - TR: Resident Card - FF: Frequent Flyer - CE: Census (for Spanish residents) - DL: Driving license (for rental car bookings)
[ PP, NI, TR, FF, CE, DL ]
yes
number Document Number.
[string]
yes
city Municipality of residence. Mandatory for resident discount.
[string]
no
country Document emission country.
[string]
no
nationality Document nationality
[string]
no
issue_date document issue date
($date-time)
no
expiry_date expiration document date
($date-time)
no
validated Indicates if the document was validated by the provider. Used by residents, validation S.A.R.A.
[string]
no
responsabilities
person in charge of traveller
responsibles :person in charge of travelers used by UNMR unaccompanied minors travelling alone
PersonInCharge
location IATA or ID location for pick-up or drop-off.
[string]
no
name Contact's full name.
[string]
no
address Contact's address.
[string]
no
phone Contact's phone.
[string]
no
origin_destination_ref OriginDestination references for person in charge
[string]
no
fees
Booking Fees by traveller type.
FeeQuery
pax_type Passenger Type Code.
[ADT,CHD,INF]
yes
amount
number ($double)
yes
amount_markup integer
[string]
no
ancilliaries
TransportSupplement
id
[string]
no
short_name
[string] example: BUSINESS
no
long_name
[string] example: Business Flexible
no
source_i_d Supplement identification
number($double)
no
extensions
?
base title: Price of the service without fees.
number($double)
no
fee title: Supplement fee
number($double)
price title: Supplement total price, base + fee
number($double)
no
total title: Supplement total price
number($double)
no
included title: Is supplement included?
boolean
no
mandatory title: Is supplement mandatory?
boolean
no
selected title: Is supplement selected?
boolean
no
direct_payment title: Has supplement direct payment
string
no
category title: Supplement category.
string
pattern quantity integer
no
units Number of unitis by unitQualifier
integer
no
unit_qualifier Unit type
string
no
status connector i_d refundable
string
no
distribution Wich distribution apply for
string
no
value Supplement identify
string
no
pax_reference
Passenger references for supplement
string
no
seg_reference
Segment references for supplement
string
no
journey_reference
Journey references for supplement
string
no
selection How many supplements of this type could be selected together?
[one | multiple]
no
seat_preference
TransportSeat
id
string
no
short_name example: BUSINESS
string
no
long_name example: Business Flexible
string
no
extensions
example: BUSINESS
no
situation : Situation type (aisle or window)
string
(aisle or window)
no
direction : Direction of pax regard to running
string
no
emergency_contact
traveller
code title: Traveller id
string
no
type : Traveller type [ADT, CHD, INF]
string
no
gender Traveller genterEnum
[ Male, Female ]
no
title Traveller title.
no
name Traveller Name
string
no
birth_date Traveller birth date [Require for children and infants]
string
($date-time)
no
contact
type title: Contact data type, Passenger or Emergency
string
no
name title: Contact name (Emergency)
string
no
surnames title: Contact surname (Emergency)
string
no
mails List of contact mails.
title: List of contact mails.
[string]
no
phones List of contact phones.[
title: List of contact phones.Telephone
{...}]
no
String | Test Lleego | No | ||
contact/phones | Array[Object] | |||
phones/country_pref | Country prefix | String | 34 | No |
phones/number | Phone number without prefix | String | 711287654 | No |
contact/country | Contact country (mandatory for low cost, check the flag 'need_address' in PricingRS) | String | VA | No |
query/payment | Object | |||
payment/type | Type of payment.
| Integer |
| No |
payment/cash | If payment cash true | Bool |
| No |
payment/card | Object | |||
card/form | Dynamic, Internal form (for avoris) | String | Null | No |
card/category | Debit or credit card. ("CREDITCARD | DEBITCARD") | String |
| No |
card/card_type | Credit card type code Please, check the card types returned by pricing method. If no types are returned, you can user ["VI" | "CA" | "AX" | "DC"] | String | MasterCard | No |
card/holder | Credit card holder complete name | String | NOMBRETEST MORENO SANCHEZ | No |
card/number | Credit card number | String | 5486207058370274 | No |
card/expire_month | Credit card month as string of 2 digits | String | 10 | No |
card/expire_year | Credit card year as string of 4 digits | String | 2026 | No |
card/cvv | Credit card security code | String | 309 | No |
query/voucher_url | URL for external verification payment | String | No | |
query/holder | Yes | |||
holder/name | Traveller Name | String | Miguel | Yes |
holder/surnames | Traveller surnames | Array[String] | Perezuno | Yes |
holder/contact | Object | Yes | ||
contact/mails | List of contact mails | Array[String] | Yes | |
contact/phones | List of contact phones | Array[Object] | Yes | |
phones/country_pref | Country prefix | String | 34 | Yes |
phones/number | Phone number without prefix | String | 722331122 | Yes |
contact/address | Contact address (mandatory for low cost, check the flag 'need_address' in PricingRS) |
string
no
String | c/ de la alegria | Yes |
contact/city | Contact city (mandatory for low cost, check the flag 'need_address' in PricingRS) | String |
Antequera |
Yes |
contact/postal_code |
Contact postalCode (mandatory for low cost, check the flag 'need_address' in PricingRS) | String |
29200 |
Yes |
contact/country | Contact country (mandatory for low cost, check the flag 'need_address' in PricingRS) |
String |
ES |
traveller documents
Document Type - PP: Passport - NI: National identity document - TR: Resident Card - FF: Frequent Flyer - CE: Census (for Spanish residents) - DL: Driving license (for rental car bookings)
[ PP, NI, TR, FF, CE, DL ]
yes
number Document Number.
[string]
yes
city Municipality of residence. Mandatory for resident discount.
[string]
no
country Document emission country.
[string]
no
nationality Document nationality
[string]
no
issue_date document issue date
($date-time)
no
expiry_date expiration document date
($date-time)
no
validated Indicates if the document was validated by the provider. Used by residents, validation S.A.R.A.
[string]
no
responsibles
Person in charge of the traveler
PersonInCharge
Location title: IATA or ID location for pick-up or drSpecialServiceQueryop-off.
string
no
name title: Contact's full name.
string
no
address title: Contact's address.
string
no
phone title: Contact's phone.
string
no
origin_destination_ref title: OriginDestination references for person in charge
integer
no
Yes | ||||
query/ancillaries | Array[Object] | No | ||
ancillaries/pax_references | Passenger references for supplement | Array[String] | 0 | No |
ancillaries/id | ID | String | 6c634561f833f0d-0LttLxyo | No |
ancillaries/seg_references | Segment references for supplement | Array[String] | VY306920221114 | No |
query/seats | No | |||
seats/row | Seat row | Integer | 17 | No |
seats/column | Seat column | String | D | No |
seats/segment | Seat segment | String | 1 | No |
seats/pax | Seat pax | String | 0 | No |
query/fees | Array[Object] | No | ||
fees/pax_type | Passenger Type Code | ADT | No | |
fees/amount_markup | Amount markup | Double | 0 | No |
fees/amount_emission_fee | Amount emission | Double | 0 | No |
fees/amount | Passenger Booking Fee amount | Double | 9 | No |
query/special_services | Request for special needs. (Blind, Service Animal, Wheelchair... |
SpecialServiceQuery
) [ONLY NDC] |
no
Array[Object] | No | |
special_services/pax_reference | Passenger Reference to apply |
String |
T1 |
No |
special_services/category | SSR category code |
more_info More information if is required by de SSR
string
no
String |
no
DEAF | No |
query/large_family_discount |
LargeFamilyDiscountQuery
type* title: F1 (General Discount - 3 children) | F2 (Special Discount - More than 3 children).Enum:
yes
document* Docunent number for large family discount.
string
yes
No | |||
large_family_discount/location | Location code to apply the large family discount |
sample
notes
In Amadeus this notes convert into RM in RP
[...]
no
String |
|
yes
No | ||||
large_family_discount/document | Docunent number for large family discount | String | 380380 | No |
large_family_discount/type | F1 (General Discount - 3 children) | F2 (Special Discount - More than 3 children) | String |
| No |
query/dynamic_parameters | Specific data requested by provider to finish booking | Array[ |
DynamicParameterQuery
key
string
no
value
string
no
Object] |
no
dynamic_parameters/key | Key | String | No | |
dynamic_parameters/value | Value | String | No | |
query/target | Set request target: test|production |
[ test, prod ]
no
payment : Type of payment.
type
integer
1: credit
2: transfer
3: deposit
4: uatp / card
5: cash
8: picard
11: voucher
Please, keep in mind which payment options you have availables.
no
card_apply title: Payment by card to all or only lowcost. ["ALL", "LC"] by default "LC"
string
no
cash : If payment cash true.
boolean
no
card
card type
card_type : Credit card type code Please, check the card types returned by pricing method.
If no types are returned, you can user
no
category : Debit or credit card.
no
number Credit card number
string
no
holder : Credit card holder complete name.
string
no
expire_month Credit card month as string of 2 digits.
string
no
expire_year Credit card year as string of 4 digits.
string
no
cvv Credit card security code
string
no
id_v_card Credit card id virtualCard.
string
no
voucher special form of payment credit voucher to pay tickets
no
type Type of the voucher.
The type is given by the provider.
string
no
number* : Number or identifier of the voucher to pay
example: BON1000EUR
string
yes
mail : Email register with the voucher
string
no
url : URL for external verification payment
string
no
expedient_number : Expedient number.
string
no
quote_number
no
crm : Crm id.
string
no
Enum |
| No | ||
query/expedient_number | Expedient number | String | No | |
query/expedient | Expedient | String | 123 | No |
query/quote_number | Quote number | String | 321 | No |
query/crm | Crm id | String | 422112725 | No |
query/confirm | Flag to confirm or not confirm (emit) in booking transaction. Only available for Renfe bookings. |
boolean
no
Bool |
| No | |
query/cancel_if_not_docs |
Flag to cancel or not when external docs for the booking are not gotten | Bool |
| No | |
query/corportate_code | Currently, only available for Renfe bookings, when ticket on pdf format are not achieved. | Bool |
| No |
query/delegation | Corporate code. |
boolean
no
delegation
title: [OPTIONAL] Source_Id of delegation
string
Necesita activación por parte de LLeego | Object | |||
delegation/id | ID | Integer | x | No |
delegation/code_account | Code_account | String | x | No |
query/notes | Add remarks in booking | Array[Object] | No | |
notes/description | Message to add as remark | String | AVEDES-R | Yes |
notes/type | Remark type (RM|RC), by default RM | String |
| No |
notes/mode | Remark mode type '*' or PRIORITY, when PRIORITY is received, base is mandatory and this value will be set instance of the configuration one. | String |
| No |
notes/base | Remark name or structure, only use when mode PRIORITY is received | String | AVEDES | No |
Time Limit (contacta con tu key account para el uso de estas opciones) Estas opciones permiten al momento de crear la reserva, indicar el tiempo límite de emisión deseado por parte del cliente. Solo se aplicará si el tiempo límite deseado es más restrictivo que el ofrecido por el proveedor. Dicho de otra manera, si el proveedor informa de un Tiempo Límite más restrictivo, se respetará ese. | ||||
query/time_limit | Fecha en formato YYYY-MM-DD HH:II:SS Ejemplo: 2024-01-01 23:30:00 | DateTime | No | |
query/time_limit_type | Solo aplicable a Amadeus. | String | TL|XL | No |