3. Sign PDF Document

Obtain Access Token:

1- The url obtained from the above API call needs to be invoked in the browser to obtain the access token.

2- Pass the access token as a part of header (X-SIGN-ACCESSTOKEN= Access Token) with the along with the signing identity and transaction id in the next call as shown below

This API call will create signing process

POST http://localhost:8089/v2/signature/sign

Headers

NameTypeDescription

Content-Type

string

multipart/form-data;

X-SIGN-ACCESSTOKEN

string

value received from the API call

​‌
{
  "digestAlgorithm": "SHA256",
  "signIdentityId": "string",
  "txId": "string"
}

List of attributes for request body:

AttributesDescription

txId

Transaction id for signing request

Note: Transaction ID is valid for only 10 minutes and operation should end within the same period.

digestAlgorithm

Entity can use one of the digest algorithms from below according to their requirement:

SHA256

SHA384

SHA512

signIdentityId

User’s qualified certificate id

Last updated