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#
| Parameter | Type | Required | Maximum length | Example | Description |
|---|---|---|---|---|---|
| code | Integer | Y | - | Response status code | |
| message | String | Y | - | Response description | |
| responseDes | String | Y | 2000 | Error message description, daily troubleshooting use |
Exception Return Example#
Global Return Code#
| Exception Code | Exception Type | Description |
|---|---|---|
| 2001 | System error | System exception, exception not caught by program |
| 2002 | Invalid token | Failed to verify token |
| 2003 | Invalid distributor ID | Illegal Channel ID |
| 2004 | Required field missing | The required parameter is empty. For specific information, please refer to the response description: responseDes |
| 2005 | Invalid field | The value of the request parameter is incorrect. For more information, see Response Description: responseDes |
| 2006 | Field format error | The parameter format is incorrect. For more information, see Response Description: responseDes |
| 2007 | Hotel no cooperation | Channel and Hotel Not Cooperating Interface with this exception: hotel details, products, quotation, inventory, trial order, order placing |
| 2008 | Invalid hotel products | hotel products verification failed interfaces with this exception: quotation, inventory, trial order, order placing |