# Download Order Summary - DownloadOrderSummary

## Overview

Generate an order summary Excel file (2 sheets: paid orders and unpaid orders) and return a US3 presigned download URL; StartTime/EndTime are required






## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `DownloadOrderSummary`.                      | **Yes** |
| **PublicKey**  | string  | The user's public key can be obtained from [Console](https://console.sigcalcloud.com/uaccount/api_manage)                                             | **Yes** |
| **Signature**  | string  | User signature generated based on public key and API command, see [Signature Algorithm](/docs/api/summary/signature.md)  | **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|
| **ChargeTypes.N** | int | Charge type list (optional)  |No|
| **OrganizationIds.N** | int | Organization ID list (optional) |No|
| **Regions.N** | string | Region list (optional). See [Region and Zone List](/docs/api/summary/regionlist) |No|
| **PricingSkus.N** | string | Billing unit SKU list (optional) |No|
| **ProductCodes.N** | string | Product code list (optional). Enum: `modelverse`, `sandbox` |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*](#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.sigcalcloud.com/?Action=DownloadOrderSummary
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=ZVFLqbxn
&ResourceIds.N=BONixqED
&ModelIds.N=nCcsbuQl
&PricingUnits.N=7
&OrderTypes.N=5
&ChargeTypes.N=4
&StartTime=8
&EndTime=4
&ResourceIds.N=xYoOQLWh
&ModelIds.N=rWnTQfwE
&PricingUnits.N=3
&OrderTypes.N=4
&ChargeTypes.N=4
&StartTime=3
&EndTime=6
&OrganizationIds.N=2
&Regions.N=DocWWrys
&PricingSkus.N=rYuUvYgY
&ProductCodes.N=nzsleIUe
```

### Response Example
    
```json
{
  "Action": "DownloadOrderSummaryResponse",
  "Data": {},
  "RetCode": 0
}
```





