Query download resultSignature required
Call this API to query the download result.
Structure
A message consists of a header and body.
Request header parameters
Field | Required | Sample | Description |
Client-Id | Yes |
| For detailed field descriptions, see API Overview. |
Signature | Yes |
| |
Content-Type | Yes |
| |
Request-Time | Yes |
| |
Connected-CustomerId | No (Conditional) |
| Required when a partner manages a customer's account. |
Request parameters
requestId String REQUIRED
The unique ID assigned by the partner to identify the download request.
More information:
- This field is an API idempotency field.
- Maximum length: 64 characters
Response parameters
result Result REQUIRED
The result of this API call.
requestId String REQUIRED
The unique ID assigned by the partner to identify the download request.
This field is returned only when the value of result.resultStatus is S
.
More information:
- This field is an API idempotency field.
- Maximum length: 64 characters
downloadBizType String REQUIRED
The type of download.
Valid value is:
DOWNLOAD_STATEMENT_DETAIL_PDF
: indicates downloading a statement in PDF format.
This field is returned only when the value of result.resultStatus is S
.
downloadStatementPDFDetail DownloadStatementPDFDetail REQUIRED
The statement details.
This field is returned only when the value of result.resultStatus is S
.
downloadResult DownloadResult REQUIRED
The download result.
This field is returned only when the value of result.resultStatus is S
.
fileDownloadUrl String
The URL used to download the file.
This field is returned only when the value of result.resultStatus is S
.
notifyUrl String
The URL to receive the file download result.
This field is returned only when the value of result.resultStatus is S
.
Request
Response
Result processing logic
After calling the API, a response is returned. Possible values for result.resultStatus are:
result.resultCode
Code | Value | Message | Further action |
---|---|---|---|
SUCCESS | S | Success | |
PROCESSING | S | Success | |
PARAM_ILLEGAL | F | Illegal parameters exist. For example, a non-numeric input, or an invalid date. | Check and verify whether the request fields, including the header fields and body fields, are correct and valid. For details on the fields of each API, see the specific API Structure section. |
PROCESS_FAIL | F | A general business failure occurred. Do not retry. | Human intervention is usually needed. Contact our Technical Support Team to resolve the issue. |
UNKNOWN_EXCEPTION | U | API failed due to unknown reason. | The service might be down, please retry later. If the issue persists, contact our Technical Support Team. |
OAUTH_FAIL | F | OAuth process failed. | Contact our Technical Support Team for detailed reasons. |
INVALID_API | F | The called API is invalid or not active. | Check whether the correct API is being called. |
INVALID_CLIENT | F | The client is invalid. | The Client ID does not exist or is invalid. |
INVALID_SIGNATURE | F | The signature is invalid. | Make sure the request is properly signed with a valid signature. |
METHOD_NOT_SUPPORTED | F | The server does not implement the requested HTTP method. | Ensure the HTTP method is |
downloadResult.resultCode
Code | Value | Message | Further action |
---|---|---|---|
USER_NOT_EXIST | F | The user does not exist. | Retry with the correct user information. |
SYSTEM_ERROR | F | System error. | Do not retry. Contact our Technical Support Team for more details. |
SERVICE_NOT_ALLOWED | F | Service not allowed. | Retry with the correct information. If the issue persists, contact our Technical Support Team. |
CONTRACT_CHECK_FAIL | F | The contract check has failed. | Check the contract status before retrying. |
ACCESS_TOKEN_EXPIRED | F | The access token expired. | Refresh the token to get a new access token or contact our Technical Support Team to address it. |
AUTHORIZATION_NOT_EXIST | F | The authorization does not exist. | Make sure that the input is correct. If the issue persists, contact our Technical Support Team to verify the authorization status. |
ORDER_NOT_EXIST | F | The order does not exist. | Check if the order is valid and retry. |