Global Exception Code

Each time the interface is called, an abnormal return code may be obtained. Developers can debug the interface based on the return code information and troubleshoot errors.

Exception parameter description#

ParameterTypeRequiredMaximum lengthExampleDescription
codeIntegerY-Response status code
messageStringY-Response description
responseDesStringY2000Error message description, daily troubleshooting use
Exception Return Example#
{
"code": 2004,
"message": "Required field missing ",
"responseDes": "hotelId cannot be empty"
}

Global Return Code#

Exception CodeException TypeDescription
2001System errorSystem exception, exception not caught by program
2002Invalid tokenFailed to verify token
2003Invalid distributor IDIllegal Channel ID
2004Required field missingThe required parameter is empty. For specific information, please refer to the response description: responseDes
2005Invalid fieldThe value of the request parameter is incorrect. For more information, see Response Description: responseDes
2006Field format errorThe parameter format is incorrect. For more information, see Response Description: responseDes
2007Hotel no cooperationChannel and Hotel Not Cooperating
Interface with this exception: hotel details, products, quotation, inventory, trial order, order placing
2008Invalid hotel productshotel products verification failed
interfaces with this exception: quotation, inventory, trial order, order placing