Skip to main content

Upload Supporting Document

/aivpor

Method : POST
URL : https://xxx.finexusgroup.com/AIV/rest/v1/aivpor

info

This method allows the submission of a request to upload an image or a PDF file as a supporting document to identify and verify a person.

The response will include the reference ID of the request so that the document will be able to be retrieved later on.

Request Parameters

Field NameRequiredTypeDescriptionExample
sourceInfoYesObjectSource information.Refer to explanation below.
interactionModeYesObjectInteraction mode.Refer to explanation below.
languageOptionalStringLanguage."en"
fullNameYesStringFull name."James Smith"
mobileNoYesStringMobile number."0128123456"
addressYesObjectAddress.Refer to explanation below.
docDataYesObjectDocument data.Refer to explanation below.

Object: sourceInfo

Field NameRequiredTypeDescriptionExample
sourceYesStringSource."FNXCRDS"
partnerIdYesStringPartner ID."BSSS"
productTypeOptionalStringPartner type."appTest"
referenceYesStringReference."2003160192931"
apiVersionYesStringAPI version."1.6"
apiKeyConditionalStringAPI key."123-KEJRU-001"
userIdOptionalStringUser ID."mkchan"
userTokenOptionalStringUser token."APPOKJSID8J1234"

Object: interactionMode

Field NameRequiredTypeDescriptionExample
modeYesStringMode."ASYNC"
callbackUrlOptionalStringCallback URL.

Object: address

Field NameRequiredTypeDescriptionExample
addrLine1YesStringAddress line 1."No.1, Jalan Manis"
addrLine2OptionalStringAddress line 2."Jalan Pangkor"
addrLine3OptionalStringAddress line 3.
cityYesStringCity."Kuala Lumpur"
stateYesStringState."Wilayah Persekutuan Kuala Lumpur"
countryConditionalStringCountry code.
postcodeYesNumericPostcode."50000"

Object: docData

Field NameRequiredTypeDescriptionExample
contentEncodingYesStringEncoding format of the document."base64"
contentMediaTypeYesStringMedia type of the document data."PDF"
imageYesStringEntire document data."iVBORw0KGgoAAAANSUhEUgAAApkAAAG"
documentTypeYesStringDocument type."Water Bill"

Example Message

/aivpor POST Request
curl -X POST "https://xxx.finexusgroup.com/AIV/rest/clientauth/aivpor" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"sourceInfo": {
"source": "FNXCRDS",
"partnerId": "BSSS",
"reference": "220610181940",
"apiVersion": "1.6",
"apiKey": "123KUJR003",
"productType": "Card application",
"userId": "mkchan",
"userToken": "APPOKJSID8J1234"
},
"interactionMode": {
"mode": "SYNC",
"callBackUrl": ""
},
"language": "en",
"fullName": "James Smith",
"mobileNo": "0128123456",
"address": {
"addrLine1": "No.1, Jalan Manis",
"addrLine2": "Jalan Pangkor",
"addrLine3": "",
"city": "Kuala Lumpur",
"state": "Wilayah Persekutuan Kuala Lumpur",
"postcode": "50000"
},
"docData": {
"documentType": "Water Bill",
"contentMediaTye": "PDF",
"contentEncoding": "BASE64",
"document": "iVBORw0KGgoAAAANSUhEUgAAApkAAAG"
}
}'