Download Unpaid Order Details - DownloadListUnpaidOrders
Overview
Generate an unpaid order detail Excel file and return a US3 presigned download URL; query conditions are identical to ListUnpaidOrders, StartTime/EndTime are required
Definition
Public Parameters
| Parameter Name | Type | Description Information | Required |
|---|---|---|---|
| Action | string | Corresponding API command name, the current API is DownloadListUnpaidOrders. | Yes |
| PublicKey | string | The user’s public key can be obtained from Console  | Yes |
| Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
| Parameter Name | Type | Description Information | Required |
|---|---|---|---|
| StartTime | int | Query start time (Unix timestamp, seconds), required | Yes |
| EndTime | int | Query end time (Unix timestamp, seconds), required; must be greater than StartTime | Yes |
| ResourceIds.N | string | Resource ID list (optional) | No |
| ModelIds.N | string | Model ID list (optional) | No |
| PricingUnits.N | int | Pricing unit list (optional) | No |
| OrderTypes.N | int | Order type list (optional) | No |
| OrganizationIds.N | int | Organization ID list (optional) | No |
| PricingSkus.N | string | Billing unit SKU list (optional) | No |
| ProductCodes.N | string | Product code list (optional). Enum: modelverse, sandbox | No |
| Regions.N | string | Region list (optional). See Region and Zone List | No |
Response Field
| Field Name | Type | Description Information | Required |
|---|---|---|---|
| RetCode | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. | Yes |
| Action | string | Operation command name. | Yes |
| Message | string | Returns an error message, providing detailed description when RetCode is non-zero. | No |
| Data | DownloadFileData | Download file info | Yes |
Data Model
DownloadFileData
| Field Name | Type | Description Information | Required |
|---|---|---|---|
| DownloadURL | string | File download URL (US3 presigned URL, download promptly within validity period) | No |
| FileName | string | File name | No |
| FileSize | int | File size (bytes) | No |
Example
Request Example
https://api.surfercloud.com/?Action=DownloadListUnpaidOrders
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=nmozKJdw
&ResourceIds.N=gMkONErz
&ModelIds.N=SfsgYbJD
&PricingUnits.N=2
&OrderTypes.N=2
&StartTime=3
&EndTime=8
&OrganizationIds.N=2
&PricingSkus.N=icneOQlM
&ProductCodes.N=HrFVOeNI
&Regions.N=MdjvxNuEResponse Example
{
"Action": "DownloadListUnpaidOrdersResponse",
"Data": {},
"RetCode": 0
}