Skip to main content

PDF Generator

This document highlights the PDF Generator API details.

Description

Objective

The PDF Generator API generates a redirection link required for Aadhaar OTP-based eSign processes. The API facilitates digital signatures for document signing and redirection.

InputOutput

The invitee details such as their name, phone and email

The redirection link for Aadhaar OTP-based eSign, along with the document ID, signer email, status code, and signer name

Note
An invitee is the individual whose Aadhaar-based digital signature is required on the document

Inputs

The following table provides the complete information on all the input parameters for the module.

ParameterDescriptionMandatory or OptionalAllowed ValuesDefault Value
templateIdThe unique Template ID each userOptional
info
To be entered when the PDF is generated in-house
Not ApplicableNot Applicable
inviteeNameThe name of the signerMandatoryNot ApplicableNot Applicable
inviteePhoneThe phone number of the signerOptionalNot ApplicableNot Applicable
inviteeEmailThe email ID of the signerOptionalNot ApplicableNot Applicable
coordinatesThe coordinates for signing location on the PDF documentOptional
info
To be entered when the PDF isn't generated in-house
Format: "x1": 0, "x2": 50, "y1": 0, "y2": 50, "page": 1Not Applicable
fileThe file in Base64 format, used when the PDF is not generated by the system.Optional
info
To be entered when the PDF isn't generated in-house
Optional
info
To be entered when the PDF isn't generated in-house
Not ApplicableNot Applicable

Success Response

The following is a success response from the API:

{
"status": "success",
"statusCode": "200",
"result": {
"data": {
"signUrl": "<Redirection_Link_For_Aadhaar_OTP_eSign>",
"documentId": "<Document_Identifier>",
"email": "<Email_of_the_Signer>",
"name": "<Name_of_the_Signer>",
"phone": "<Phone_Number_of_the_Signer>"
}
}
}

Success Response Details

The following table highlights the details of the success response from the API:

ParameterTypeDescription
statusCodeintegerThe status code of the response
metaDataobjectThe metadata associated with the request
metaData.requestIdstringA unique identifier for the request
metaData.transactionIdstringA unique identifier for the transaction
resultobjectThe result object containing the response data
result.dataobjectThe data related to the sign URL and document details
result.data.signUrlstringThe URL for signing the document
result.data.documentIdstringThe unique identifier for the document
result.data.emailstringThe email address of the person to sign the document
result.data.namestringThe name of the person to sign the document
result.data.phonestringThe phone number of the person to sign the document

Failure and Error Response Details

A failure or error response from the module contains a failure status, with a relevant status code and error message.

The following table lists all error responses:


Status CodeError MessageError Description
400Required file input is missingThe request is missing the required file input
400Error while parsing file inputThe system encountered an issue while parsing the file input
500Unknown error while parsing inputsThe request failed due to an unknown error during input parsing
500Internal Server ErrorPlease check the request headers or contact the HyperVerge team for resolution
500PDF generation failedThe system failed to generate the requested PDF
503External vendor downtimeThe external vendor is currently down. Error code: EXTERNAL_DOWNTIME
Was this helpful?
Ask AIBeta
Hi! How can I help?
Ask me anything about HyperVerge products, APIs, and SDKs.
Try asking: