When mailing a check to your counterparty, you may want to include attachments. These attachments can range from invoices to detailed remittance information.
We support including attachments for customers who mail checks via our integration with [Lob](🔗). Lob is a third party provider that can print and mail checks on your behalf.
This guide will walk through the steps for sending a check with an attachment.
## 1. Create a counterparty
First, you will create a counterparty with a valid mailing address.
Note that the response returns a new Counterparty object with 1 attached external account. You will need the ID of the external account (`
40af5496-c8e8-4766-bcc4-7bd08a866c7a`) for the next step.
## 2. Create a payment order
The next step is to create a payment order, which will mail the check. Normally, you would use `
application/json` as your content type for submitting a POST request. However, in order to include the attachment, you must send a `
multipart/form-data` request. This will allow you to both include the required parameters for creating the payment order and create the associated documents.
In order for the document to be sent to Lob, you must give it a `
document_type` of `
payment_order_supplement`. At most one document may be sent to Lob. If you create more than one, the most recently created one will be sent.
Further, you must ensure that the document adheres to Lob's requirements for attachments, which can be found in their API docs [here](🔗). We have copied relevant snippets below as well for convenience:
Here are their [design guidelines](🔗).
If these requirements are not adhered to, then your payment order will fail when it is sent to Lob. Currently, Modern Treasury does not enforce the requirements as outlined by Lob.