Managing Signers' Attachments
Sign offers the ability for signers to upload attachments during the signing workflow. Senders can review the provided attachment and mark the transaction as complete. This topic describes how a sender can require the signer to upload an attachment to the transaction.
Creating an Attachment Request
The following code describes how to add a recipient with an attachment requirement.
HTTP Request
HTTP Headers
Request Payload
For a complete description of each field, see the Request Payload Table below.
Response Payload
Downloading Attachments
Attachments can be downloaded in the following ways:
- As a single attachment. This requires the attachment id.
- In a package that includes all attachments.
- In a package that includes all attachments from a specified signer.
To download an individual attachment, you will need the package and attachment ID. The following code will do this:
HTTP Request
HTTP Headers
Response Payload
You can also download all attachments as a zip file in a package. The following code will do this:
HTTP Request
HTTP Headers
Response Payload
To download all attachments as a zip file for a particular signer, you will make your request to:
HTTP Request
HTTP Headers
Request Payload
Reviewing Attachments
After reviewing the attachment, you can then either refuse or accept it. If you refuse the attachment, you can also include a small feedback message explaining why the attachment was refused. The following code will do this:
HTTP Request
HTTP Headers
Request Payload
It is important to note that transactions that require attachments will not auto-complete. This gives the sender the opportunity to review the attachment, and either accept or reject it.
If all the required attachments have been uploaded and approved, you can complete the package by updating the status of your package to COMPLETED. The following code will do this:
HTTP Request
HTTP Headers
Request Payload
JSON Property Table
| Property | Type | Editable | Required | Default | Sample Values | 
|---|---|---|---|---|---|
| id | string | Yes | No | n/a | 
                            | 
| type | string | Yes | No | SIGNER | 
                            | 
| index | integer | Yes | No | 0 | 
                            | 
| name | string | Yes | No | n/a | 
                            | 
| attachmentRequirements | |||||
| description | string | Yes | No | n/a | 
                            | 
| required | boolean | Yes | No | false | 
                            | 
| id | string | Yes | No | n/a | 
                            | 
| status | string | Yes | No | INCOMPLETE | 
                            | 
| comment | string | Yes | No | n/a | 
                            | 
| name | string | Yes | No | n/a | 
                            | 
| signers | |||||
| firstName | string | Yes | No | n/a | 
                            | 
| lastName | string | Yes | No | n/a | 
                            | 
|  | string | Yes | No | n/a | |

