The provided Postman Collection can be used to take the first steps towards integrating the signoSign/Universal REST API.
Preparation
The demo is based on the collection and the following PDF document, which contains the corresponding search texts and input fields for the examples.
After importing the Postman Collection, the collection variables for username and password must be adjusted. To do this, double-click to open the imported folder and select the ‘Variables’ tab.
Once the server and access data have been stored correctly, the following use cases can be executed.
Upload document and sign locally
The ‘Upload and Sign a Document’ folder contains all API calls that can be used to upload a document, open it locally and sign it.
The calls are tailored to the example document. If a different document is used, the search texts and coordinates for signature fields need to be adjusted.
-
Log in to generate an instance token.
-
When uploading a document, add the document to the body in the parameter ‘document’ and execute.
-
Load document into the Viewer.
-
(Optional) Set index so that an allocation can be made during remote save. The index value must be adjusted in the body.
-
Set dynamic signature fields using a search text.
-
Set dynamic signature fields using another search text.
-
Place a static signature field.
-
Update the Viewer configuration to set the ‘remote save URL’ and make other Viewer settings, for example.
-
Retrieve the URL of the current Viewer.
-
Open the URL in a new tab, fill out the document and sign it.
Once the process has been completed, the token that was created should be deleted again.
As soon as a token is deleted, the Viewer associated with the token and all data temporarily stored in the instance are also deleted. It is therefore no longer possible to call the known URL again, and the document must be reloaded into the Viewer.
Upload document for remote signature
The ‘Upload and Share a Document’ folder contains all API calls that can be used to upload a document and send it to the signatory.
The calls are tailored to the sample document. If a different document is used, the search texts and coordinates for signature fields need to be adjusted.
-
Log in to generate an instance token.
-
When uploading a document, add the document to the body in the parameter ‘document’ and execute.
-
Creating the ‘sharing case’. The body must be adjusted in this call.
-
If notification is to be sent directly from the system by email, the recipient must be specified in the parameter ‘emailAddressee’.
-
The parameter ‘documentConfiguration’ can be used to specify a configuration for the sharing case and document, in which, for example, the forwarding destination or the positions of the signature fields can be specified.
-
There are four options for authentication in the call:
-
‘password’ is left blank → No authentication required
-
‘password’ is provided → The recipient must enter the password before the document can be opened.
-
‘tanAddressee’ is included → Authentication via TAN required.
-
Neither ‘tanAddressee’ nor ‘password’ are provided → Password is automatically generated and output in the response.
-
-
-
(Optional) Adjust the sharing case configuration if individual settings need to be adjusted again.
The call is very well suited for the precise placement of signature fields during development. After opening the URL, the configuration can be adjusted and is available immediately after reloading.
-
There are various ways in which the signatory can be informed about the sharing case that has now been created.
-
If the notification is to be sent from the integration, the link to the sharing case can be retrieved. This can then be communicated to the recipient in a flexible manner.
-
The notification can also be sent directly from the system. To do this, the notification endpoint (‘notify’) is called. When calling, the language of the notification can be selected using the body parameter ‘locale’.
-
If you wish to delete the sharing case, you can do so at any time by selecting ‘Abort Sharingcase’. The associated links will become invalid, meaning that users who have already been notified will no longer be able to access the document. The document itself remains in the application and must be deleted separately if necessary.
The following applies in principle: Instance tokens that are no longer required must be removed by logging out. Unlike the Viewer, this has no effect on the sharing case, as it is processed independently of the instance token.
Tip: A document can be shared with multiple recipients simultaneously. In this case, a separate sharing case must be created for each recipient. This allows different participants to receive the document for signature at the same time. Alternatively, the ‘Workflow‘ resource is available.
Upload document and send it in the workflow
The ‘Upload and Workflow Document’ folder contains all API calls that can be used to upload a document and create and start a workflow.
The calls are tailored to the sample document. If a different document is used, the search texts and coordinates for signature fields and allocated form fields must be adjusted.
-
Log in to generate an instance token.
-
Creating the ‘workflow plan’. The name of the plan can be customised using the parameter ‘name’.
-
Creating a document folder. This is where the documents for the workflow are collected.
-
Use upload to add the document in the body in the parameter ‘document’ relating to the created document folder.
-
The workflow steps are then created. Any number of recipients can receive the document simultaneously or in a specific order. It is also possible for the document folder to vary depending on the recipient. Before execution, at least the following parameters should be adjusted to ensure that the document reaches the correct recipient:
-
The name of the recipient can be specified using the parameter ‘signerName’.
-
The email address to which the process is sent is specified in the parameter ‘signerEmail’.
-
To also protect the recipient’s documents with a password, this can be specified in the parameter ‘password’.
-
As an alternative to the password, a TAN recipient can be created with the parameter ‘tanAddressee’, similar to the sharing case.
-
-
Creates a second workflow step that is executed after the first one has been completed. For this call, at least ‘signerName’ and ‘signerEmail’ should be adjusted before execution.
-
Starts the created workflow. During the start, a name can be added in the body parameter ‘name’. This name will also be displayed in the user interface and can simplify allocation. Once the launch is successful, the individuals from step 1 will also be notified by email. All further steps then run automatically.
Once the process has been completed, the instance token that was created should be deleted by logging out.
If a started workflow process is to be deleted, this can be done at any time by selecting ‘Delete workflow’. The associated links will become invalid, meaning that users who have already been notified will no longer be able to access the document.
Download document
The ‘Download a Document’ folder contains all API calls that can be used to download a document again and delete it in signoSign/Universal.
This can happen, for example, after information has been received via webhook that the document has been saved. The setup of webhooks is described in ‘Set user webhook’.
-
Log in to generate an instance token.
-
Download the document from the system.
-
After successful download, the document should be removed from the platform.
Please note: Documents that are in a workflow can only be deleted if the process is deleted. If the deleted document is still in a sharing case, this process will also be deleted. Recovery is not possible!
Once the process has been completed, the instance token that was created should be deleted by logging out.