> ## 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

* [Real-time Reconciliation Report Creation](https://doc.haipay.net/en/history/V20260801/operations/reconcile-report-create.md)
* [Reconciliation Report Query](https://doc.haipay.net/en/history/V20260801/operations/reconcile-report-query.md)
* [Look Up API Response Structure and Error Codes](https://doc.haipay.net/en/history/V20260801/guide/error_response_appendix.md)
* [Configure Merchant Keys and RSA Signature Rules](https://doc.haipay.net/en/history/V20260801/get-started/configuration-and-signatures.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.