Data structures supported by Cloud Call
Response data structure
The following table lists the common response data for the alipay-cloud-sdk.
Field name | Data type | Description |
|---|---|---|
requestId | String | The request ID. |
success | Boolean | Indicates whether the request was successful. |
result | Any | The response data of the request. The structure varies based on the specific API. |
Field name | Data type | Description |
|---|---|---|
code | String | The response code. |
msg | String | The main response message. |
subCode | String | The sub-response code. This is usually the response code from a subsystem. |
subMsg | String | The sub-response message. This is usually the response message from a subsystem. |
Common error codes
The following table lists the common error codes.
Error code | Description |
|---|---|
SYS_INIT | The SDK is not initialized. Before using the SDK, call the cloud.init method to initialize it. For more information, see Use Cloud Call. |
FEATURE_NOT_SUPPORT | The API is not supported. |
INVALID_JSON_OBJECT | JSON parsing failed. |
NOT_FOUND_PARAM | A required parameter is missing. Check the required parameters. |
INVALID_PARAM | A parameter is invalid. Check whether the parameter type is correct. |