# Attachments

## Overview

You can send documents to customers as email attachments, which can be used for the following purposes:

* Documents that are business critical that need to be reliably delivered (for example: invoices) via email, either as a stand-alone email, or part of your delivery communication.
* Proof that the correct documents and communication have been sent to customers (for example: order confirmations and return labels).

{% hint style="success" %}
Customer service teams can find the attachments in the parcelLab App to deal with customer inquiries relating to documents sent via email.
{% endhint %}

{% tabs %}
{% tab title="Email Attachment" %}

<div align="left"><figure><img src="https://1156682959-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPf1Lv1YUuLYva6LrXQ%2Fuploads%2FbV4AVZr7YXiDGOHT3WCp%2FEmailAttachmentinApp.png?alt=media&#x26;token=cdae6366-b866-4e82-8bad-3516187a4a13" alt="Download option for email attachment in tracking details"><figcaption></figcaption></figure></div>
{% endtab %}

{% tab title="Example Invoice" %}

<div align="left"><figure><img src="https://1156682959-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPf1Lv1YUuLYva6LrXQ%2Fuploads%2FN4dR5L5TmixCpAExYf2i%2FParkersCustomsInvoiceSample.png?alt=media&#x26;token=ba724963-3046-429c-9512-0a71d1aec9a4" alt="Example customs invoice for returns" width="299"><figcaption></figcaption></figure></div>
{% endtab %}
{% endtabs %}

## Configuring Attachments in Email Communication

The following sections describe the configuration required for to include attachments in email communication.

### Customer Requirements

To integrate file attachments in email communication, you need to provide the following information to parcelLab:

* The necessary documents (that is: a PDF per order or tracking) through SFTP or via API.
* The filenames of the .pdf documents, which need to include the reference number of the corresponding order or tracking.

{% hint style="info" %}
The naming structure of the filenames you use needs to be consistent so it can be uniquely identified (for example: the order number or order number and date).
{% endhint %}

### Implementation Process

When parcelLab has the required information, the setup process can begin.

Feedback is sent back to your online shop if any attachments fail to reach the recipient. This can include the following issues:

* Hard bounces - email address errors.
* Soft bounces - inbox full warnings.
* Missing order invoices - failure to attach documents.

This information can be communicated to you as a report via email, SFTP, or webhooks.

{% hint style="info" %}
Hard bounces require you to contact the customer (for example: to check you have the correct email address for the customer).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.parcellab.com/docs/engage/messages-and-journeys/overview/attachments.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
