Booking · Structure RS

Booking · Structure RS

Response Body - Booking

NAME

DESCRIPTION

FORMAT

ALLOWED VALUES

NAME

DESCRIPTION

FORMAT

ALLOWED VALUES

Booking Response

success

 

Bool

  • True

  • False

token

 

String

so63458244ca1fb

version

 

Integer

2

_doc_version

 

Integer

1

booking

 

Object

 

booking/id

Booking ID: necessary for post-booking actions

String

b9ac001b-bbe

booking/created

Booking created date

String

2022-10-11T16:50:45

booking/modified

Booking last modified date

 

2022-10-11T16:50:45

booking/timezone

Time zone

String

Europe/Madrid

booking/lines

Array of different booking lines

Array[Object]

 

lines/id

BookingLine ID

String

8d0439a6-9f9

lines/created

BookingLine created date

Date-time

2022-10-11T16:50:45

lines/timezone

Time zone

String

Europe/Madrid

lines/modified

BookingLine last modified date

Date-time

2022-10-11T16:50:45

lines/cancelled

BookingLine cancellation date

Date-time

2022-10-11T16:50:45

lines/booking_reference

 

Object

 

booking_reference/locator

External provider booking line identifier

String

M7LN1

booking_reference/third_locator

Company booking locator

String

ABCDEF

booking_reference/status

Booking line status

String

RSVD|CNFD|VOID|CNLD|RFND|ONRQ|MANL|PAYG

See: Retrieve | Reservation status

booking_reference/external_view

Link externo con la información de reserva

String

https://www.iberia.com/web/retrievePNR.do?apellido=Lleego+Adulto&localizador=M7LN1&market=ES&language=es&mmb=true

booking_reference/source_i_d

Source ID

String

IBc7efa4fdb2a74b6da60ef895b99857a9OC

lines/holder

 

Object

 

holder/name

Traveller Name

String

Miguel

holder/surnames

Traveller surnames

Array[String]

Perezuno

holder/contact

 

Object

 

contact/type

Contact data type, Passenger or Emergency

String

Passenger

contact/name

Contact name (Emergency)

String

Miguel

contact/surnames

Contact surname (Emergency)

String

Perezuno

contact/mails

List of contact mails

Array[String]

ag@lleego.com

contact/phones

List of contact phones

Array[Object]

 

phones/country_pref

Country prefix

String

34

phones/number

Phone number without prefix

String

666666666

holder/in_booking

We will use it to check if a passenger is still in a reservation or not

Bool

  • True

  • False

holder/index

Passenger index in the reservation request. It allows us to assign the corporate data to each passenger

Integer

0

lines/travellers

List of travellers of the booking

Array[Object]

 

travellers/code

Traveller id

String

704692

travellers/source_i_d

Traveler id in provider system

String

T1

travellers/type

Traveller type [ADT, CHD, INF, YCD, YTH]

String

ADT

travellers/gender

Traveller genter [ Male, Female ]

Enum

  • Male

  • Female

travellers/title

Traveller title [ Mr, Mrs, Ms, Miss ]

Enum

  • Mr

  • Mrs

  • Ms

  • Miss

travellers/name

Traveller Name

String

Juan

travellers/surnames

Traveller surnames

Array[String]

Lleego Adulto

travellers/birth_date

Birth date

Date

2015-12-12

travellers/age

Age

Integer

6

travellers/contact

 

Object

 

contact/type

Contact data type, Passenger or Emergency

String

Passenger

contact/name

Contact name (Emergency)

String

Miguel

contact/surnames

Contact surname (Emergency)

String

Perezuno

contact/mails

List of contact mails

Array[String]

ag@lleego.com

contact/phones

List of contact phones

Array[Object]

 

phones/country_pref

Country prefix

String

34

phones/number

Phone number without prefix

String

666666666

travellers/documents

 

Array[Object]

 

documents/type

Document Type

Enum

  • PP: Passport

  • NI: National identity document

  • TR: Resident Card

  • FF: Frequent Flyer VA+numeración (cía VY)

    IB+numeración (cía IB) example: IB50159953 (For AF NDC provider you have to send it FB+numbering. In the case of LH NDC, as it provides service to several airlines in its group, it would be necessary to indicate the company code. LH- Lufthansa, LX- Swiss airlines, SN- Brussels airlines, OS- Austrian airlines.)

  • CE: Census (for Spanish residents)

  • DL: Driving license (for rental car bookings)

  • OB: On Business IB+numeración

documents/number

Document Number

String

GPT002314R

documents/nationality

Document nationality

String

ES

documents/issue_date

Document issue date

Date-time

2021-11-11

documents/expiry_date

Document expiration date

Date-time

2125-11-11

documents/country

Document emission country

String

ES

travellers/responsibles

 

Array[Object]

 

responsibles/location

Location

String

AGP

responsibles/name

Name

String

Jose

responsibles/address

Address

String

c/ de la alegria

responsibles/phone

Phone

String

722345678

responsibles/origin_destination_ref

Origin destination reference

Integer

0

travellers/in_booking

We will use it to check if a passenger is still in a reservation or not

Bool

  • True

  • False

travellers/index

Passenger index in the reservation request. It allows us to assign the corporate data to each passenger

Integer

0

lines/travel

 

Object

 

travel/id

Internal product identifier

String

Jo6347c4d747d260000

travel/source_i_d

Product identifier on the external connector

String

UDgxRTAwRTMyLUY0RDgtNDAzQS1BOTM5IyQlUG9QODFFMDBFMzItRjREOC00MDNBLUE5MzktMQ==

travel/services_groups

 

Array[Object]

 

services_groups/id

ID

String

 

services_groups/source_i_d

Source ID

String

O1

services_groups/services

 

Array[Object]

 

services/id

ID

String

SN373820221115@SN210320221115

services/source_i_d

Source ID

String

F1

services/segments

 

Array[Object]

 

segments/source_i_d

Source ID

String

S2

segments/extensions

 

Object

 

extensions/PriceClassCode

Price class code

String

LGT00

extensions/PriceClassName

Price class name

String

Economy Light

extensions/serviceID

Service ID

String

SRV1-T1-S2

segments/origin

 

Object

 

origin/id

Origin ID

String

52e6e452099c

origin/short_name

Short name

String

MALAGA

origin/long_name

Long Name

String

MALAGA

origin/type

Type

String

Airport

origin/iata

IATA Code

String

AGP

origin/latitude

Latitude

Double

36.6736111111

origin/longitude

Longitude

Double

-4.49888888889

origin/time_zone

Time zone

String

Europe/Madrid

origin/country

Country code

String

ES

origin/country_name

Country name

String

ESPA\u00d1A

origin/city_name

City name

String

MALAGA

origin/iata_city

IATA City

String

AGP

origin/localizacion

Localizacion

String

ESP

segments/destination

 

 

 

destination/id

ID

String

52e6e451c3f1

destination/short_name

Short name

String

BRUSELAS

destination/long_name

Long name

String

BRUSELAS

destination/type

Type

String

Airport

destination/iata

IATA Code

String

BRU

destination/latitude

Latitude

Double

50.9022222222

destination/longitude

Longitude

Double

4.49861111111

destination/time_zone

Time zone

String