---
title: "Upload 'PCN' file to customer"
method: POST
path: "/customers/{id}/files/invoice"
---

# Upload 'PCN' file to customer

`POST /customers/{id}/files/invoice`

## 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)
  - `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 mismatched customer ID
- `500` — Internal server error

---

[API](https://skmtc.net/open-finance/apis/auth.md) · [All operations](https://skmtc.net/open-finance/apis/auth/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/open-finance/auth/versions/b4d401b65c3d/schema)
