Documentation

Get E-Sign ID API

Call this API to generate a E-Sign transaction ,and get a E-Sign ID.

Request Example:

curl -X POST  \
-H "X-ACCESS-TOKEN: {Your Access Token}" \
-H "Content-Type: application/json" \
-d '{
    "user": {
        "fullName": "MOCHA",
        "email": "[email protected]",
        "mobile": "+628123456781",
        "dob": "1980-01-01",
        "govId": "0000000000000000",
        "idCardPhoto": "base64",
        "selfiePhoto": "base64",
        "partnerId": "rxxxxxxxxxxxxxxxxxxxxxxxxxou"   
    },
       "requestInfo": 
    {       
        "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36",
        "srcIp": "172.217.22.14",
        "consentTimestamp": "1729049311"   
    },
       "device": 
    {       
        "os": "R",
        "model": "KB2001",
        "uniqueId": "xxxxxxxxxxxxxxx",
        "networkProvider": "IND idea"   
    },
       "signingInfo": [{             
        "pdfFile": "base64",
        "pageNo": "2",
        "xPoint": "60",
        "yPoint": "150",
        "height": "36",
        "width": "139"       
    }   ]
}' 
"https://api.advance.ai/openapi/face-identity/e-sign/v1/generate"

Request Url

https://api.advance.ai/openapi/face-identity/e-sign/v1/generate
POST (application/json)
ParameterDescription
X-ACCESS-TOKENstring Please use Token Authentication API to get your access token.

Request Parameters

ParameterDescription
userobject User specific information. Refer to user.
requestInfoobject User requests data. Refer to requestInfo.
deviceobject User device information. Refer to device.
signingInfoobject Signature Information,. Refer to signingInfo.

user

ParameterDescription
fullNamestring Full name of the user.
emailstring User’s email address.
mobilestring User’s mobile phone number.
dobstring User’s date of birth, formatted as YYYY-MM-DD.
govIdstring IDGovernment-issued identification number for the user.
idCardPhotostring Base64 encoded string representing the user’s identification card photo.
selfiePhotostring Base64 encoded string representing the user’s selfie photo.
partnerIdstring IDUnique identifier representing the user’s associated partner in UUID format.

requestInfo

ParameterDescription
userAgentstring [Optional] Identifies the browser and operating system used by the user.
srcIpstring [Optional] Source IP address from which the request originated.
consentTimestampstring [Optional] Timestamp indicating when the user gave consent in Unix time format.

device

ParameterDescription
osstring [Optional] Operating system of the user’s device.
modelstring [Optional] Model identifier of the user’s device.
uniqueIdstring [Optional] Unique identifier for the user’s device.
networkProviderstring [Optional] Name of the network provider for the user’s device.

signingInfo

ParameterDescription
pdfFilestring Base64 encoded string of the PDF file to be used in the signing.
pageNostring Page number in the PDF document where the signing or action is to occur.
xPointstring X-coordinate on the PDF page to position the signature.
yPointstring Y-coordinate on the PDF page to position the signature.
heightstring Height of the signature.
widthstring Width of the signature.

Response Description

ParameterDescription
codeResponse's Status Code.
transactionIdThe request id, the max length is 64.
pricingStrategyWhether the request will be charged, enum type: FREE, PAY.
messageStatus Code Explanation.
dataobject : the business result of Identity Verification.
extraExtra response info (Exception Message).

Response.data


ParameterDescription
idId which can use it to get the E-Sign result.

Response Code

Status CodeMessage
SUCCESSfree OK.
PARAMETER_ERRORfree Parameter should not be empty.
free Parameter error, please check your request whether has illegal parameters.
free Parameter error, please check your input.
ERRORfree Server error.

Response Examples

SUCCESS

{
       "code":"SUCCESS",
       "message":"OK",
       "data":{
              "id":"5c68f22d-bcf0-4fe5-a2a4-4bff14fbfd64"
       },
       "extra":null,
       "transactionId":"580760cdbb798abf",
       "pricingStrategy":"PAY"
}

PARAMETER_ERROR

{
       "code":"PARAMETER_ERROR",
       "message":"Parameter should not be empty",
       "data":{
              "errors":[
                     {
                            "title":"Parameter should not be empty",
                            "detail":"user.fullNameis Empty"
                     }
              ]
       },
       "extra":null,
       "transactionId":"517d80f429ff254f",
       "pricingStrategy":"FREE"
}


{
       "code":"PARAMETER_ERROR",
       "message":"Parameter should not be empty",
       "data":{
              "errors":[
                     {
                            "title":"Parameter should not be empty",
                            "detail":"user.emailis Empty"
                     }
              ]
       },
       "extra":null,
       "transactionId":"041ec9289d08743a",
       "pricingStrategy":"FREE"
}



{
       "code":"PARAMETER_ERROR",
       "message":"Parameter should not be empty",
       "data":{
              "errors":[
                     {
                            "title":"Parameter should not be empty",
                            "detail":"user.mobileis Empty"
                     }
              ]
       },
       "extra":null,
       "transactionId":"ab35bd2623313cd3",
       "pricingStrategy":"FREE"
}



{
       "code":"PARAMETER_ERROR",
       "message":"Parameter should not be empty",
       "data":{
              "errors":[
                     {
                            "title":"Parameter should not be empty",
                            "detail":"user.dobis Empty"
                     }
              ]
       },
       "extra":null,
       "transactionId":"32b70c04e57c3fd3",
       "pricingStrategy":"FREE"
}



{
       "code":"PARAMETER_ERROR",
       "message":"Parameter should not be empty",
       "data":{
              "errors":[
                     {
                            "title":"Parameter should not be empty",
                            "detail":"user.govIdis Empty"
                     }
              ]
       },
       "extra":null,
       "transactionId":"971c61cd3a243a73",
       "pricingStrategy":"FREE"
}



{
       "code":"PARAMETER_ERROR",
       "message":"Parameter should not be empty",
       "data":{
              "errors":[
                     {
                            "title":"Parameter should not be empty",
                            "detail":"user.idCardPhotois Empty"
                     }
              ]
       },
       "extra":null,
       "transactionId":"962cf2326904e767",
       "pricingStrategy":"FREE"
}



{
       "code":"PARAMETER_ERROR",
       "message":"Parameter should not be empty",
       "data":{
              "errors":[
                     {
                            "title":"Parameter should not be empty",
                            "detail":"user.selfiePhotois Empty"
                     }
              ]
       },
       "extra":null,
       "transactionId":"82db53bc32459430",
       "pricingStrategy":"FREE"
}



{
       "code":"PARAMETER_ERROR",
       "message":"Parameter should not be empty",
       "data":{
              "errors":[
                     {
                            "title":"Parameter should not be empty",
                            "detail":"user.partnerIdis Empty"
                     }
              ]
       },
       "extra":null,
       "transactionId":"928c72f758219c3c",
       "pricingStrategy":"FREE"
}



{
       "code":"PARAMETER_ERROR",
       "message":"Parameter should not be empty",
       "data":{
              "errors":[
                     {
                            "title":"Parameter should not be empty",
                            "detail":"signingInfo[0].signingInfo.pdfFileis Empty"
                     }
              ]
       },
       "extra":null,
       "transactionId":"329f14027bdc7599",
       "pricingStrategy":"FREE"
}



{
       "code":"PARAMETER_ERROR",
       "message":"Parameter should not be empty",
       "data":{
              "errors":[
                     {
                            "title":"Parameter should not be empty",
                            "detail":"signingInfo[ 0].signingInfo.pageNois Empty"
                     }
              ]
       },
       "extra":null,
       "transactionId":"613b80ad03a13c6f",
       "pricingStrategy":"FREE"
}



{
       "code":"PARAMETER_ERROR",
       "message":"Parameter should not be empty",
       "data":{
              "errors":[
                     {
                            "title":"Parameter should not be empty",
                            "detail":"signingInfo[0].signingInfo.xPointis Empty"
                     }
              ]
       },
       "extra":null,
       "transactionId":"04e0e1a6cccb4db2",
       "pricingStrategy":"FREE"
}



{
       "code":"PARAMETER_ERROR",
       "message":"Parameter should not be empty",
       "data":{
              "errors":[
                     {
                            "title":"Parameter should not be empty",
                            "detail":"signingInfo[0].signingInfo.yPointis Empty"
                     }
              ]
       },
       "extra":null,
       "transactionId":"ba4cae5d6cd89357",
       "pricingStrategy":"FREE"
}



{
       "code":"PARAMETER_ERROR",
       "message":"Parameter should not be empty",
       "data":{
              "errors":[
                     {
                            "title":"Parameter should not be empty",
                            "detail":"signingInfo[0].signingInfo.height is Empty"
                     }
              ]
       },
       "extra":null,
       "transactionId":"bd516de30f3d0672",
       "pricingStrategy":"FREE"
}



{
       "code":"PARAMETER_ERROR",
       "message":"Parameter should not be empty",
       "data":{
              "errors":[
                     {
                            "title":"Parameter should not be empty",
                            "detail":"signingInfo[0].signingInfo.widthis Empty"
                     }
              ]
       },
       "extra":null,
       "transactionId":"598edb502076f2b9",
       "pricingStrategy":"FREE"
}



{
    "code": "PARAMETER_ERROR",
    "message": "Parameter should not be empty",
    "data": {
        "errors": [{
            "title": "Parameter should not be empty",
            "detail": "user.fullName,user.email,user.mobile,user.dob,user.govId,user.idCardPhoto,user.selfiePhoto,user.partnerId,signingInfo[0].signingInfo.pdfFile,signingInfo[0].signingInfo.pageNo,signingInfo[0].signingInfo.xPoint,signingInfo[0].signingInfo.yPoint,signingInfo[0].signingInfo.height,signingInfo[0].signingInfo.width is Empty"
        }]
    },
    "extra": null,
    "transactionId": "05f13f27f025c0ab",
    "pricingStrategy": "FREE"
}



{
       "code":"PARAMETER_ERROR",
       "message":"Parameter error, please check your request whether has illegal parameters",
       "data":{
              "errors":[
                     {
                            "title":"Missing required parameter",
                            "detail":"must be a well-formed email address"
                     }
              ]
       },
       "extra":null,
       "transactionId":"85787c477a8eb968",
       "pricingStrategy":"FREE"
}



{
       "code":"PARAMETER_ERROR",
       "message":"Parameter error, please check your request whether has illegal parameters",
       "data":{
              "errors":[
                     {
                            "title":"Missing required parameter",
                            "detail":"Invalid phone number"
                     }
              ]
       },
       "extra":null,
       "transactionId":"1b5df42bcf53b09b",
       "pricingStrategy":"FREE"
}



{
       "code":"PARAMETER_ERROR",
       "message":"Parameter should not be empty",
       "data":{
              "errors":[
                     {
                            "title":"Parameter should not be empty",
                            "detail":"user.dob is invalid"
                     }
              ]
       },
       "extra":null,
       "transactionId":"930f5a6ecfbef71c",
       "pricingStrategy":"FREE"
}



{
       "code":"PARAMETER_ERROR",
       "message":"Parameter error, please check your request whether has illegal parameters",
       "data":{
              "errors":[
                     {
                            "title":"Missing required parameter",
                            "detail":"Invalid GovId card number"
                     }
              ]
       },
       "extra":null,
       "transactionId":"e61c1d031a61dd91",
       "pricingStrategy":"FREE"
}



{
       "code":"PARAMETER_ERROR",
       "message":"Parameter error, please check your request whether has illegal parameters",
       "data":{
              "errors":[
                     {
                            "title":"signingInfo[0].pageNo",
                            "detail":"Must be an integer"
                     }
              ]
       },
       "extra":null,
       "transactionId":"85fc002b25acb22f",
       "pricingStrategy":"FREE"
}



{
       "code":"PARAMETER_ERROR",
       "message":"Parameter error, please check your input.",
       "data":null,
       "extra":null,
       "transactionId":"ada83cd224b8a057",
       "pricingStrategy":"FREE"
}



{
       "code":"PARAMETER_ERROR",
       "message":"Parameter should not be empty",
       "data":{
              "errors":[
                     {
                            "title":"Parameter should not be empty",
                            "detail":"user.idCardPhoto,user.selfiePhoto,signingInfo[0].signingInfo.pdf File is Empty"
                     }
              ]
       },
       "extra":null,
       "transactionId":"5e72c9c6fa09e98a",
       "pricingStrategy":"FREE"
}



{
       "code":"PARAMETER_ERROR",
       "message":"Parameter error, please check your request whether has illegal parameters",
       "data":{
              "errors":[
                     {
                            "title":"Missing required parameter",
                            "detail":"Invalid image base64 String"
                     },
                     {
                            "title":"Missing required parameter",
                            "detail":"Invalid image base64 String"
                     }
              ]
       },
       "extra":null,
       "transactionId":"708dcb95308c6a84",
       "pricingStrategy":"FREE"
}



{
       "code":"PARAMETER_ERROR",
       "message":"Parameter error, please check your request whether has illegal parameters",
       "data":{
              "errors":[
                     {
                            "title":"signingInfo[0].pageNo",
                            "detail":"Must be an integer"
                     }
              ]
       },
       "extra":null,
       "transactionId":"e363013df84e5562",
       "pricingStrategy":"FREE"
}



{
       "code":"PARAMETER_ERROR",
       "message":"Parameter error, please check your request whether has illegal parameters",
       "data":{
              "errors":[
                     {
                            "title":"Name contains invalid characters.",
                            "detail":"Name contains invalid characters."
                     }
              ]
       },
       "extra":null,
       "transactionId":"4ba2160adaa969f1",
       "pricingStrategy":"FREE"
}

ERROR Response

{
    "code":"ERROR",
    "message":"Server error",
    "data":null,
    "extra":null,
    "transactionId":"1deae5a13ef2bd5e",
    "pricingStrategy":"FREE"
}