---
title: "Upload '6111' file to customer"
method: POST
path: "/customers/{id}/files/financial-report"
---

# Upload '6111' file to customer

`POST /customers/{id}/files/financial-report`

## Request

- Base URL: `https://api.open-finance.ai/v3/loans`
- URL: `https://api.open-finance.ai/v3/loans/customers/{id}/files/financial-report`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://api.open-finance.ai/oauth/token` scopes: `update:customers`

## Path parameters

- `id` string, required

## Request body

- object
  - `useCrm` boolean: Flag to indicate whether to use CRM for file processing
  - `file` object, required
    - `file` string, required: Base64 encoded content of the file
    - `fileName` string, required: Name of the file
    - `fileType` string, required: Type of the file (e.g., txt, dat)
  - `sfFiles` object[]: Salesforce files to be associated with the upload
    - `sfObjectId` string
    - `sfObjectName` string

## Response `204`

Uploaded successfully

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Customer not found
- `415`: Unsupported file type or file already exists for this year
- `500`: Internal server error

---

[API](https://skmtc.dev/open-finance/apis/loans.md) - [All operations](https://skmtc.dev/open-finance/apis/loans/llms.txt) - [OpenAPI document](https://skmtc.dev/open-finance/apis/loans/revisions/915c69e62042?raw)
