Error Handling
Important Errors must be returned within a 'SOAP Envelope' and use the defined response message container depending on the message being responded to. Please see the relevant parts of our specification within the SMX For Applications API section for more information on the error response message. If the error is specifically related to application-level errors, please do not respond to any other error types (HTTP etc.). If you have server-level issues, then it is OK to respond with HTTP standard error codes
It is expected that your application has a robust error-handling process in place. An error response should contain a short description of the error to assist our Support teams in troubleshooting.
Error Responses using the <Errors></Errors> tag will flag the reservation delivery from SMX to your endpoint as Failed.
Content-Type
The ‘Content-Type’ for all SOAP
XML messages must be application/xml; charset=utf-8
.
Invalid Hotel Code
Invalid Username or Password
Warning Responses to SMX
Any other warning responses that are not application or server-level issues should be sent as Success and Warning to avoid reservation delivery failures. Please review OTA_HotelResNotifRS | Success and Warning.
Our Reservations API specifications will have non-mandatory fields/attributes that a Publisher might not send in the reservation XML if its not supported by them. Publishers should always send the mandatory reservation fields. Please review our OTA_HotelResNotifRQ | Request Specification to view the mandatory and non-mandatory attributes.
Content-Type
The ‘Content-Type’ for all SOAP
XML messages must be application/xml; charset=utf-8
.
Required Information Not Present - Missing email address
Required Information Not Present - Missing phone number
Recommended OTA Error Codes
SMX recommends (but is not limited to) the following error codes from OTA Warning Type (EWT). Any OTA Warning Type can be used.
Error Warning Type (EWT)
Error Codes (ERR)
Error Codes - General These are recommended (but not limited to) Error Codes to be returned for general errors. Any OTA Error Code (ERR) entry can be used.
Error Codes - Updates These are recommended (but not limited to) Error Codes to be returned for update errors. Any OTA Error Code (ERR) entry can be used.
Last updated