Please note that the Customer's address has to be correct as per their Address Document uploaded for the validation to pass (return true).
Validate Address Documents
Run this request to get the results of the Validation of the Customer's Address Document against the information stored for the Customer and Address from when they were initially created.
200: OK Address Document Validated - Successfully 404: Not Found AddressDocumentId Not Found 200: OK Address Document Validated - Unsuccessfully
Copy ```json
{
"data": {
"id": "{{addressDoucmentId}}",
"valid": true,
"validated": {
"address_line_1": true,
"address_line_2": true,
"suburb": true,
"city": false,
"province": false,
"postal_code": true
},
"information": {
"address_line_1": "22 ETON PARK 6 ETON RD",
"address_line_2": "SANDHURST",
"suburb": "SANDHURST",
"city": "",
"province": "",
"postal_code": "2196",
"customer_name": "full_match"
},
"document": {
"id": 10,
"name": "FNB_Dec_Jan (2).pdf",
"type": "pdf",
"url": "https://dev.apply.fincheck.co.za/gathr-docs/documents/FNB_Dec_Jan%20%282%29.pdf"
},
"address_id": "{{addressId}}"
}
}
```
Copy ```json
{
"errors": {
"code": "entity_not_found",
"message": "Record not found in module_address_documents"
}
}
```
Copy ```json
{
"data": {
"id": "{{accountDocumentId}}",
"valid": false,
"validated": {
"address_line_1": false,
"address_line_2": false,
"suburb": false,
"city": false,
"province": false,
"postal_code": false
},
"information": {
"address_line_1": "",
"address_line_2": "",
"suburb": "",
"city": "",
"province": "",
"postal_code": "",
"customer_name": "no_match"
},
"document": {
"id": 1045,
"name": "1.2 FNB_ASPIRE_CURRENT_ACCOUNT_49.pdf",
"type": "pdf",
"url": "http://uat.apply.fincheck.co.za/gathr-docs/documents/1.2%20FNB_ASPIRE_CURRENT_ACCOUNT_49.pdf"
},
"address_id": "{{accountId}}"
}
}
```