Retrieve Uploaded Supporting Document
/aivpor
Method : GET
URL : https://xxx.finexusgroup.com/AIV/rest/v1/aivpor
info
This method will retrieve the document posted in an earlier /aivpor POST request.
- Request
- Response
Request Parameters
Field Name | Required | Type | Length | Description | Example |
---|---|---|---|---|---|
source | Yes | String | 16 | Source. | "FNXCRDS" |
partnerId | Yes | String | 128 | Partner ID. | "BSSS" |
productType | Optional | String | 128 | Product type. | "appTest" |
reference | Yes | String | 64 | Reference. | "ID00000213132" |
apiKey | Conditional | String | 64 | API key. | "1233214HSC" |
apiVersion | Yes | String | 8 | API version. | "1.6" |
referenceId | Yes | String | 64 | Reference ID. | "272391d1cc5840b2abfb7340a317e353f9eswc4nyQ0CEqw" |
language | Optional | String | 2 | Language. | "en","ms" |
Response Codes
Response Code | Description | Response Schema |
---|---|---|
200 | The service is able to authenticate and allow the caller to use the service and method. | AivImageRetrieval |
400 | Bad request whereby the service cannot find the message layout as expected. | N/A |
401 | Unauthorised access - unable to authenticate source system | N/A |
405 | Forbidden access - source system is not authorised to perform an action | N/A |
Response Parameters
Field Name | Required | Type | Length | Description | Example |
---|---|---|---|---|---|
status | Yes | Object | Status. | Refer to explanation below. | |
payload | Optional | Object | Information of the result. | Refer to explanation below. |
Object: status
Field Name | Required | Type | Length | Description | Example |
---|---|---|---|---|---|
sourceInfo | Yes | Object | Source information. | Refer to explanation below. | |
status | Yes | String | 16 | Status. | "SUCCESS", "FAIL", "QUEUED" |
errorList | Yes | Object | Error list. | Refer to explanation below. |
Object: sourceInfo
Field Name | Required | Type | Length | Description | Example |
---|---|---|---|---|---|
source | Yes | String | 16 | Source. | "FNXCRDS" |
partnerId | Yes | String | 128 | Partner ID. | "BSSS" |
productType | Optional | String | 128 | Partner type. | "appTest" |
reference | Yes | String | 64 | Reference. | "ID00000213132" |
apiVersion | Yes | String | 8 | API version. | "1.6" |
apiKey | Conditional | String | 64 | API key. | "1233214HSC" |
userId | Optional | String | 32 | User ID. | "mkchan" |
userToken | Optional | String | 64 | User token. | "APPOKJSID8J1234" |
Object: errorList
Field Name | Required | Type | Length | Description | Example |
---|---|---|---|---|---|
msgCode | Yes | String | 8 | Message code. | "000" |
msgText | Yes | String | 128 | Message text. |
Object: payload
Field Name | Required | Type | Length | Description | Example |
---|---|---|---|---|---|
contentEncoding | Yes | String | 16 | Encoding format of the document. | "base64" |
contentMediaType | Yes | String | 16 | Media type of the document data. | "PDF" |
image | Yes | String | Entire document data. | "iVBORw0KGgoAAAANSUhEUgAAApkAAAG" | |
documentType | Yes | String | 128 | Document type. | "Water Bill" |
Example Message
- Request
- Response
/aivpor GET Request
curl -X GET "https://xxx.finexusgroup.com/AIV/rest/clientauth/aivpor?source=FNXCRDS&partnerId=BSSS&productType=appTest&reference=ID00000213132&apiVersion=1.6& referenceId=272391d1cc5840b2abfb7340a317e353f9eswc4nyQ0CEqw&apiKey=1233214HSC" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
/aivpor GET Response
{
"sourceInfo": {
"source": "FNXCRDS",
"partnerId": "BSSS",
"reference": "ID00000213132",
"apiVersion": "1.6",
"apiKey": "1233214HSC",
"productType": "Card application",
"referenceId": "272391d1cc5840b2abfb7340a317e353f9eswc4nyQ0CEqw",
"language": "en"
},
"payload": {
"status": {
"sourceInfo": {
"source": "FNXCRDS",
"partnerId": "BSSS",
"reference": "ID00000213132",
"apiVersion": "1.6",
"apiKey": "1233214HSC",
"productType": "Card application",
"userId": "mkchan",
"userToken": "APPOKJSID8J1234"
},
"errorList": [
{
"msgText": "",
"msgCode": "000"
}
],
"status": "SUCCESS"
},
"payload": {
"docData": {
"documentType": "Water Bill",
"contentMediaTye": "PDF",
"contentEncoding": "BASE64",
"document": "iVBORw0KGgoAAAANSUhEUgAAApkAAAG"
}
}
}
}