This guide will explain how to create a transaction with multiple documents.
A transaction can contain multiple documents that need to be signed by one or more signers. Each document can have its own signature locations, and you can specify the order in which the documents are signed.
To create a multi-document transaction, you will follow these steps:
Create a transaction: This will initialize a new transaction and return a transactionId.
Add files to the transaction: For each document you want to include, you will upload the file using the transactionId and a unique fileId.
Start the transaction: Once all files are uploaded, you will start the transaction to notify the signers.
You will need an APP key and User Token to authenticate your requests. Make sure you have these ready before proceeding.
See the Authentication guide for more details on how to obtain these tokens.
Use the POST /api/transaction/ endpoint to create a new transaction. This will return an id that you will use in subsequent requests.
Example:
You should receive a response with the transaction details, including the Id which is your transactionId.
The id b2a9aca4-cd5e-4a21-b7f7-c08a9f2b2d57 is the transactionId and you will need this in the next requests.
Use the PUT /api/transaction/:transactionId/file/:fileId endpoint to add files to the transaction. Each file must have a unique fileId.
Example:
This will upload the Contract1.pdf and Contract2.pdf files to transaction b2a9aca4-cd5e-4a21-b7f7-c08a9f2b2d57 and set the fileId to Contract1.pdf and Contract2.pdf respectively.
Use the PUT /api/transaction/:transactionId/start endpoint to start the transaction. This will notify the signers that they can now view and sign the documents.
Example:
This will start the transaction and notify the signers that they can now view and sign the documents.
You have now created a multi-document transaction using the Signhost API. You can repeat the process to add more documents or signers as needed. For more details on each endpoint, refer to the API Reference or the specific guides for each feature.