Setting Up

Upload Doc Signer Class 2 Certificate

9min

Introduction

Introducing the "Upload Doc Sign Config" – a powerful tool designed to streamline the process of securely incorporating digital signatures into your document workflow. This API enables you to effortlessly upload your Document Signer Certificate Class 2, represented as a PFX file, along with its corresponding password. Once uploaded, the API employs robust encryption mechanisms to safeguard this sensitive information within the server. This ensures that your certificate remains protected and confidential, ready to be utilized for the seamless and secure signing of documents. With this innovative solution, you can confidently enhance your document signing procedures, maintaining the highest standards of security and integrity throughout the process.

Authentication

API authentication is a crucial security process that ensures authorized access to an application programming interface (API). It involves validating the identity of users or systems seeking to interact with the API. Please use the access token shared with you by your assigned Signzy's CSM. Please set the value of the key Authorization in the headers to the access token, while making an API call. In this way, Signzy's system will be able to authenticate you and you will be able to make a successful API call.

API Details

The details of the API can be found here.

Sample cURL

Pre Production
Production


Input Parameters

Parameter Name

Type

Mandatory/Optional

Description

type

String

Mandatory

For uploading DSC class 2 certificate, pass 'DocSignerClass2'

certificateName

String

Optional

Name for the certificate uploaded. This will be used in the signature appearance printed on the document. If not passed, origianal name fetched from certificate details will be used in the signature appearance.

docSignerClass2PfxFile

File

Conditionally Mandatory

Upload the PFX file. This will be in the name of organization and will be used for signing of the documents

Note: Not required incase docSignerClass2PfxUrl is passed

docSignerClass2PfxUrl

String

Conditionally Mandatory

Pass the URL of PFX file. This will be used for signing the documents.

Note: Not required incase docSignerClass2PfxFile is uploaded

passwordOfPfxFile

String

Mandatory

Password of the PFX file

logoUrl

String

Optional

URL of the logo of the client which will be used in the sign that will appear on the signed pdf file. It can have 3 allowed formats - PNG (.png) JPG (.jpg) JPEG (.jpeg)

ttl

String

Mandatory

Number of days/months/year for which the PFX file uploaded by you will be in Signzy's system. Post that, it will be purged permanently. For example, 1 days, 2 days, 10 days, 1 month, 3 month, etc.

Sample Response

200


Output Parameters

Parameter Name

Type

Description

certificateId

String

ID of the certificate that has been uploaded, the certificate ID has to be used while doing the eSign.

isUploadSuccessful

Boolean

  • If the upload is successful, the value would be TRUE
  • If the upload is unsucessful, the value would be FALSE

certificateName

String

Title of the certificate

validFrom

String

The start date of the validity of the certificate

validTill

String

The end date of the validity of the certificate

Sample Errors

400
400
401
404
500
504


Error Parameter

Parameter

Type

Description

name

String

In case of error, the name will come as "error"

message

String

Error Message

reason

String

Reason for the Error

type

String

Type of Error

statusCode

String

Status code of the Error

Error Codes

Error Code

Error Message

Explanation

400

Bad Request

Input parameter has a missing required parameter or invalid inputs

401

Authorization Failed

Authorization token is invalid

500

Internal Server Error

Internal error at Signzy, Please write to us at [email protected]