Uploading a document for e-Meterai stamping
In this guide, we'll introduce you to integrating e-Meterai stamping into your applications. We'll cover securely uploading documents, designating signers with legal binding power, and streamlining the stamping process using our API.
Prerequisites
Signer/viewer email address or addresses: who needs to sign a document.
Role: the role of the user. Signing user should use the role
signer
, while viewing user should use the roleviewer
.Order: an integer that defines the order of signing in a document.
Parallel: an integer to mark whether the signing of the document can be done in parallel.
0
for non-parallel signing,1
for parallel signing.
Fetching signers
TBD
Upload document and assign signers
You can upload a document using the Upload Document API. You can request signature from a registered Momofin user or a guest user (an unregistered user). Registered signer/viewer in Momofin platform should be mapped to the signer
object, while guest signer/viewer should be assigned with the guest
object. Upload API currently supports .pdf
, .doc
, and .docx
format. You can try this request in your terminal to upload a document and assign signers:
Here, mary.land@xyz.com is the viewer of the document and john.doe@xyz.com is the signer. John will be the first to sign the document. After John signs the document, Mary will be able to view the document.
After making the request, the response will contain a document ID which will be used later when placing the signature field. The document ID can be accessed in response.data.document_id
.
Retain the document_id
for later use. This identifier will be referenced in subsequent API calls to specify the location for signature placement within the document.
e-Meterai placement
You can define the exact coordinates and dimensions for signature placement on a designated page of the document. The provided request outlines essential parameters such as signer details, page number, signature box dimensions, and document size, facilitating precise signature positioning.
This is a successful response of signature placement.
Given the above success response, your request to define signer placements has been accepted. The document with signature locations has been prepared. Please note the document ID in response.data.document_id
. You will need this ID in the next step to finalize the document for signing.
Finalize e-Meterai stamping
Afterwards, use the document ID from the previous API call to prepare the document for signing by designated individuals:
Here's the successful response upon finalizing the document with the placement:
The document finalization process has completed successfully.
Downloading the stamped document
Upon completing the stamping process, you are able to use the document ID to download the stamped document:
A successful response will download the document into your filesystem.
Last updated