Upload Seal Image

An electronic seal is technically the same as an electronic signature. The difference is that an electronic signature can be associated to both a natural person or legal person/entity, whereas a seal is associated only to a legal person/entity

The API provides the function of uploading a signer’s seal image.

Sequence to call API for upload seal image

Source Code Sample

byte[] bImg = Utils.readBytesFromFile(img);
imgHex = Utils.bytes2HexString(bImg);
	
JSONObject jsonData = new JSONObject();
JSONObject signinfo1 = new JSONObject();
	     
signinfo1.put("email", email);
jsonData.put("img", imgHex);
jsonData.put("transparency", "0");
jsonData.put("signer", signinfo1);
	      
data = Hex.encodeHexString(Utils.aesEcbPkcs5PaddingEncrypt(jsonData.toString(),apiSecret));
mac = Utils.calculateMac(data,apiSecret);
Sample code to prepare raw data for upload seal image

Request Body Creation

{
	"img": "ffd8ff….",
	"transparency": "0",
	"signer": {
		"email": "test@gmail.com",
	}
}

Example of Request

https://<domain>/signserver/v1/user/stampimg?accesstoken=d7a3ad1586084a58&data=5a899f31ce22453fadc37c1a&mac=75706f345fc7129c6eb5cb

Expected Response

{"result":0,"message":"Success"}

For error code, please refer to status code page.

{"result":1}

API reference Upload Seal Image

How can we help?