/
10. ERROR HANDLING

10. ERROR HANDLING

Each response from GP Travel HUB contains identifier whether it has been processed successfully or not - the elements <Success/>, <Warning/>, <Errors/>.

There are the following possible cases:

10.1. SUCCESS

Means that request was successfully sent and GP Travel HUB receives correct response from supplier without any warnings and errors from supplier.

<OTA_CancelRS Version="2" EchoToken="EchoToken" TransactionIdentifier="12232" xmlns:ota="http://www.opentravel.org/OTA/2003/05"> <Success/> </OTA_CancelRS>

10.2. WARNING

Means that request was successfully sent and GP Travel HUB receives correct response from supplier, but there are some warnings to pay attention.

There is a structure of Warning Response that is common for every response.

Warnings/Warning:

*mandatory

Element

Attribute

Type

Description

Min…Max occurs

Element

Attribute

Type

Description

Min…Max occurs

 

Type*

integer (1, 3, 10, 11)

Defines type of the error or warning that occurred. Refers to OTA codes "Error Warning Type (EWT)”.

1…1

Code*

integer (1 - 1051)

Defines Error/Warning code.

1…1

Status*

string ("SENT", "NOT_SENT")

The values are (SENT | NOT_SENT). Used for defining actual status of request.

1…1

ShortText*

string

Short error description.

1…1

RecordID

string

This attribute specifies supplier ID. If requests spans multiple suppliers, you can use this attribute to identify which supplier caused the problem.

0…1

Language*

 

 For more information see Common Data Description section in Glossary.

 

DocURL

URI

If present, this URL refers to an online description of the error that occurred.

0…1

Tag

string

If present, this attribute may identify an unknown or misspelled tag that caused an error in processing.

0…1

<Warnings> <Warning Code="189" Language="en" RecordID="supplierCode" ShortText="Price has been changed." Status="SENT" Type="3"/> </Warnings>

10.3. ERROR

Means that request was not sent to supplier (supplier temporally unavailable or failed data verification) or GP Travel HUB receives incorrect response or error from supplier. In case of error GP Travel HUB additionally returns original text from supplier.

Either there can be errors returned by GP Travel HUB itself. It mostly can be cases when a request validation not passed. Requests with incorrect format can not be processed by GP Travel HUB and passed to suppliers, so GP Travel HUB returns SOAP error message.

Errors/Error element has the same structure as Warnings/Warning.

<Errors> <Error Type="3" Code="172" ShortText="Generic error." Status="NOT_SENT" Tag="NORMAL" Language="en">Invalid client specified [ID:stb, IDContext: null, Instance:null]</Error> </Errors>

10.4. ERROR AND WARNING CODES

Here we list all possible errors and warnings that can occur at car messages.

10.4.1. CRUISE AVAILABILITY SEARCH

Error/Warning

Error code

Error short text

Possible error reason

Status

Error/Warning

Error code

Error short text

Possible error reason

Status

Warning

145

Duration period or dates incorrect

End date earlier than Start date.

NOT_SENT

Warning

18

Itinerary not possible

Itinerary not possible

NOT_SENT

Warning

23

Passenger type not supported

Supplier doesn't support infants for example.

NOT_SENT

Warning

25

Passenger types not consistent

Passengers IDs not consistent

NOT_SENT

Warning

322

No availability

 

SENT

Warning

450

Unable to process

 

SENT

Warning

172

Requested action not possible

 

NOT_SENT

Warning

357

Invalid city code specified

Cannot find a city by IATA code.

NOT_SENT

Warning

558

Accounts are settled in a currency different from the quoted rate currency

Rates or cancellation fee are returned in other currency than it was requested.

SENT

Warning

172

Requested action not possible

Supplier doesn't support requested language. Language is different from what has been requested.

SENT

Warning

26

At least one adult must be included

At least one adult must be included.

NOT_SENT

Warning

20

Number of passengers invalid

Supplier allows only 99 paxes max in request
Supplier allows only 9 paxes max in request.

NOT_SENT

Warning

161

Search criteria invalid

Supplier does not support ship code search

NOT_SENT

Warning

558

Prices are settled in a currency different from the requested

Supplier does not support requested currency.

NOT_SENT

Warning

184

Language code invalid

Supplier does not support requested language.

NOT_SENT

Warning

15

Invalid date

Supplier supports only dates in &apos;yyyy-MM-dd&apos; format.

NOT_SENT

10.4.2. CRUISE CATEGORY AVAILABILITY SEARCH

Error/Warning

Error code

Error short text

Possible error reason

Status

Error/Warning

Error code

Error short text

Possible error reason

Status

Warning

322

No availability

 

SENT

Warning

450

Unable to process

 

SENT

Warning

26

At least one adult must be included

At least one adult must be included.

NOT_SENT

Warning

20

Number of passengers invalid

Supplier allows only 99 paxes max in request
Supplier allows only 9 paxes max in request.

NOT_SENT

Warning

161

Search criteria invalid

Invalid GroupCode

NOT_SENT

Warning

558

Accounts are settled in a currency different from the quoted rate currency

Rates or cancellation fee are returned in other currency than it was requested.

SENT

Warning

184

Language code invalid

Supplier does not support requested language.

NOT_SENT

Warning

15

Invalid date

Supplier supports only dates in &apos;yyyy-MM-dd&apos; format.

NOT_SENT

10.4.3. CRUISE CABIN AVAILABILITY SEARCH

10.4.4. CRUISE CHARGES

10.4.5. CRUISE DESCRIPTIVE INFO

10.4.6. CRUISE RESERVATION INITIATE

10.4.7. CRUISE RESERVATION IGNORE

10.4.8. CRUISE RESERVATION CONFIRMATION

10.4.9. CRUISE BOOKING RETRIEVAL

10.4.10. CRUISE CANCELLATION INITIATE

10.4.11. CRUISE CANCELLATION IGNORE

10.4.12. CRUISE CANCELLATION CONFIRMATION