> For the complete documentation index, see [llms.txt](https://docs.shippify.co/developers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shippify.co/developers/pt/shippify-api/entregas/anexar-documentos-a-entrega.md).

# Anexar documentos à entrega

Este endpoint permite anexar arquivos, como PDFs ou imagens, diretamente a entregas específicas, utilizando formulários multipart. Você pode carregar documentos fiscais ou comprovantes de entrega.

## Anexar documentos

> Anexar documentos a uma entrega.

```json
{"openapi":"3.0.0","info":{"title":"API Shippify","version":"1.0.0"},"servers":[{"url":"https://api.shippify.co","description":"Servidor de desenvolvimento"}],"security":[{"Basic_Auth":[]}],"components":{"securitySchemes":{"Basic_Auth":{"type":"http","scheme":"basic"}},"schemas":{"uploadFile":{"successfulResponse":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}},"request":{"type":"object","required":["files","type","deliveryId"],"properties":{"files":{"description":"Documento a ser anexado à entrega.","type":"file"},"type":{"description":"Tipo de documento a anexar.","type":"string","enum":["fiscal_document","proof_of_delivery"]},"deliveryId":{"description":"Identifier of the delivery to which the file is to be attached.","type":"string"},"referenceId":{"description":"Reference identifier of the delivery to which the file is to be attached.","type":"string"},"extraDataName":{"description":"Name of the extra data of the delivery to which the file is to be attached.","type":"string"},"extraDataValue":{"description":"Value of the extra data of the delivery to which the file is to be attached.","type":"string"}}}},"Unauthenticated":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"type":"object"}}},"paths":{"/v2/integrations/deliveries/files":{"post":{"tags":["Entregas"],"summary":"Anexar documentos","description":"Anexar documentos a uma entrega.","responses":{"200":{"description":"Operação bem-sucedida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/uploadFile/successfulResponse"}}}},"401":{"description":"Não autorizado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unauthenticated"}}}}},"requestBody":{"description":"","content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/uploadFile/request"}}}}}}}}
```

## Casos de uso  <a href="#endpoint" id="endpoint"></a>

<details>

<summary>Anexar documentos à uma entrega por id</summary>

Usar deliveryId nos parâmetros.

</details>

<details>

<summary>Anexar documentos à uma entrega por id de referência</summary>

Usar referenceId nos parâmetros.

</details>

<details>

<summary>Anexar documentos à uma entrega por dados extra</summary>

Usar extraDataName e extraDataValue nos parâmetros.

</details>
