The provided Postman Collection can be used to take the first steps toward 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.
-
Example Document: https://downloads.signotec.com/Postman/signotec-postman-example.pdf
-
Postman Collection: https://www.postman.com/signotec/signotec-signosign-universal
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 correctly stored, 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 sample document. If a different document is used, the search texts and coordinates for signature fields must 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 .
-
Set an index (optional) so that an assignment 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.
-
Placement of a static signature field.
-
Update the viewer configuration to set the "Remote Save URL" and configure other viewer settings.
-
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 up the known URL again, and the document must be reloaded into the viewer.
Upload document and send 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 signer.
The calls are tailored to the sample document. If a different document is used, the search texts and coordinates for signature fields must 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 cases". The body must be adjusted in this call.
-
If a 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" provided → Password is automatically generated and returned in the response.
-
-
-
(Optional) Adjust the sharing case configurationif 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 immediately available 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 want to delete the sharing case, you can do so at any time by selecting "Abort sharing case". The associated links become invalid, so that users who have already been notified can no longer access the document. The document itself remains in the application and must be deleted separately if required.
The following applies in principle: Instance tokens that are no longer needed 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 at the same time. In this case, a separate sharing case must be created for each recipient. This allows different participants to receive the document for signing 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 assigned form fields must be adjusted.
-
Log in to generate an instance token.
-
Creating the ""Workflow plan". The name of the plan can be customized using the parameter "name".
-
Create a document folder. This is where the documents for the workflow are collected.
-
Upload the document in the body in the parameter "document" to add it to the created document folder.
-
Next the workflow steps are created. Any number of recipients can receive the document simultaneously or in a specific order. It is also possible that the document folder varies 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 additionally protect the recipient"s documents with a password, this can be specified in the parameter "password".
-
As an alternative to the password, a TAN receiver 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. When starting, a name can be added in the body parameter "name". This name will also be displayed in the user interface and can simplify assignment. After a successful start, the persons 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 calling up "Delete workflow". The associated links become invalid, so that users who have already been notified can no longer 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.
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.