Sign Document Manually

When user decided to use sign manually, the API will return an URL where the integrating API will need to use their own preferred application to open the URL.

This URL will contains the document the user need to sign. Signer will need to drag and drop the signature to preferred location. Authentication and authorization is handle by client application

Sequence to call API for manual signing

Source Code Sample

JSONObject jsonData = new JSONObject();
JSONObject signinfo1 = new JSONObject();

JSONObject jsonObj = null;
JSONObject jsonAccessToken = null;
signinfo1.put("email", email);

jsonData.put("contractnum", contractnum);
jsonData.put("callUrl", callUrl);
jsonData.put("backUrl", backUrl);
jsonData.put("signerInfo", signinfo1);

data = Hex.encodeHexString(Utils.aesEcbPkcs5PaddingEncrypt(jsonData.toString(), apiSecret));
mac = Utils.calculateMac(data, apiSecret);
Sample code to prepare raw data object for sign document manually

Request Body Creation

{
	"signerInfo": {
		"email": "test@gmail.com"
	},
	"callUrl": "",
	"backUrl": "",
	"contractnum": "C9CC0B6341FC9856A1B058E204"
}

Example of Request Body

https://<domain>/signserver/v1/contract/signature/manual?accesstoken=2bb0417a-a409-4c80-8d9b-3b138e04f8&data=1dc5c5d3b8d22178acf393334400325c5ec5a6a4f21352ef5dbb5eadd96ae1d1e4872&mac=97081bf511393cad45b0bebde8543e3d189a0ff219fe2ad9c0f42667723301f5

Expected Response

{
"url":"https://<domain>/signserver/usersign!toIntegratorSign.action?accesscode=EFA615E48F3C6AE69CA21BF8F0DD44DBD154B9B01FD90A9&ispc=true"
}

API reference : Manual Signature

How can we help?