> ## Documentation Index
> Fetch the complete documentation index at: https://doc.haipay.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Statement File Link Retrieval

> Retrieve the download link for statement files, supporting collection, payout, and transaction details.

**Description:**

* **The file format is the same as the one exported from the merchant backend. The data for the day will be generated the next day after 1:00 PM.**

**URL:**

`/common/document/download`

**Parameters:**

| Parameter | Required | Type   | Description                                                          |
| --------- | -------- | ------ | -------------------------------------------------------------------- |
| appId     | Yes      | Long   | Business ID (obtained from the backend)                              |
| type      | Yes      | Long   | Type: 15:payout orders, 20:collection orders, 40:Transaction Details |
| date      | Yes      | String | Date, format: yyyyMMdd                                               |
| sign      | Yes      | String | Signature                                                            |

**Response Data:**

| Parameter | Type   | Description                                                          |
| --------- | ------ | -------------------------------------------------------------------- |
| appId     | Long   | Business ID (obtained from the backend)                              |
| type      | Long   | Type: 15:payout orders, 20:collection orders, 40:Transaction Details |
| date      | String | Date, format: yyyyMMdd                                               |
| fileUrl   | String | File download URL                                                    |
| expired   | String | Expiry time, 1 hour                                                  |
| sign      | String | Signature                                                            |

### Field Descriptions

#### Collection

* **Error**: Collection exception
* **Not Started**: Not started
* **Paying**: Collecting
* **Success**: Collection successful
* **Failed**: Collection failed
* **Payment Part Success**: Partial collection
* **Payment Excess Success**: Excess collection

#### Payout

* **Submit Error**: Submission exception
* **Error**: Payout exception
* **Not Started**: Not started
* **Pending**: Payout in progress
* **Success**: Payout successful
* **Failed**: Payout failed

#### Notification Status

* **Not Start**: Not notified
* **Success**: Notification successful
* **Failed**: Notification failed
* **Error**: Notification exception

#### Settlement Status

* **Error**: Exception pending confirmation
* **Not Start**: Not started
* **Settling**: Settling
* **Success**: Settlement successful
* **Settlement Failed (Reversed)**: Settlement failed (reversed)

## Related Topics

* [Common API Overview](/docs/en/api/version2/CommonApi)
* [Real-time Reconciliation Report Creation](/docs/en/V20260801/api/version2/ReconcileReportCreate)
* [Reconciliation Report Query](/docs/en/V20260801/api/version2/ReconcileReportQuery)
