---
title: "Anexar arquivos"
method: PUT
path: "/receivables/files"
tags: ["Receivables"]
---

# Anexar arquivos

`PUT /receivables/files`

## Request

- Base URL: `https://api.sandbox.empresas.btgpactual.com`
- URL: `https://api.sandbox.empresas.btgpactual.com/receivables/files`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://id.btgpactual.com/oauth2/token` scopes: `empresas.btgpactual.com/scf/receivables`

Esta rota tem como objetivo anexar novos arquivos aos recebíveis indicados.

## Request body

- object
  - `receivables` ReceivableFilesSchema[]
    - `payerTaxId` string, required: Documento do sacado
    - `payeeTaxId` string, required: Documento do fornecedor
    - `identification` string, required: Identificação do recebível (ex: Nº da NF)
    - `maturityDate` string, date, required: Data de vencimento
    - `files` FileSchema[], required
      - `externalId` string: Identificador do contrato
      - `taxIdentification` string: CNPJ/CPF
      - `fileName` string: Nome do arquivo
      - `fileIdentification` 'TERMO_CESSAO' | 'REGISTRO_C3' | 'COMPROVANTE_DESEMBOLSO' | 'TERMO_ENDOSSO' | 'NF' | 'COMPROVANTE_AVERBACAO' | 'TERMO_ADESAO' | 'CONTRATO_MUTUO' | 'COMPLEMENTO_AUXILIAR': Tipo do arquivo referente a operação
      - `fileExtension` string: Extensão do arquivo
      - `fileS3Url` string: Link do s3 onde o arquivo esta armazenado

## Response `204`

Sucesso

## Other responses

- `400`: Erro de validação
- `401`: Não autorizado
- `500`: Erro

---

[API](https://skmtc.dev/btgpactual/apis/folha-de-pagamentos.md) - [All operations](https://skmtc.dev/btgpactual/apis/folha-de-pagamentos/llms.txt) - [OpenAPI document](https://skmtc.dev/btgpactual/apis/folha-de-pagamentos/revisions/2a24d3da114c?raw)
