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

# 上傳獨資企業文件

> 用於在註冊 SOLE_PROPRIETORSHIP 業務時上傳所需支援文件的 REST 端點。

大多數 Fluz API 為 GraphQL —— 檔案上傳是例外。當以 `businessStructure: SOLE_PROPRIETORSHIP` 呼叫 [`registerBusiness`](/api-reference/mutations/register-business) 時，請先透過此 REST 端點上傳支援文件，然後在 [`RegisterBusinessInput`](/api-reference/types/register-business-input) 中將回傳的 URL 傳入 `soleProprietorshipDocumentUrl`。

## 端點

| 環境      | URL                                                                                                    |
| ------- | ------------------------------------------------------------------------------------------------------ |
| Staging | `POST https://transactional-graph.staging.fluzapp.com/api/v1/file-upload/sole-proprietorship-document` |
| Live    | `POST https://transactional-graph.fluzapp.com/api/v1/file-upload/sole-proprietorship-document`         |

## 請求

以 `multipart/form-data` 傳送文件，並使用與註冊流程相同的存取權杖進行驗證：

```bash theme={null}
curl -X POST https://transactional-graph.staging.fluzapp.com/api/v1/file-upload/sole-proprietorship-document \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -F "file=@business-license.pdf"
```

## 回應

回傳已上傳文件的公開 URL —— 參見 [`UploadSoleProprietorshipDocumentResponse`](/api-reference/types/upload-sole-proprietorship-document-response)：

```json theme={null}
{
  "url": "https://storage.fluzapp.com/documents/..."
}
```

在提交 `registerBusiness` 時，將此值提供於 `soleProprietorshipDocumentUrl`。如需完整註冊流程（包含 KYB 生命週期），請參閱[商業註冊](/business-registration)。
