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

# 回款

> 查詢付款行，记录收款或發票凭证。

回款端点用于查詢应收、记录到账、更新对账狀態并挂接發票或收款凭证。

| 端点                                   | 請求体/参数                                                               | 權限                   |
| ------------------------------------ | -------------------------------------------------------------------- | -------------------- |
| `GET /payments`                      | `tab, page, pageSize, contractId, subjectId, includeDeleted`         | `payment_entry view` |
| `GET /payments/stats`                | `subject scope`                                                      | `payment_entry view` |
| `PATCH /payments/:paymentId/receipt` | `receivedAmount, receivedDate, method, proof, reconciliation fields` | `payment_entry edit` |
| `PATCH /payments/:paymentId/invoice` | `invoiceAmount, invoiceDate, invoiceNo, invoiceAttachment`           | `invoice edit`       |
