Request Verification
Changed onRequest a Verification object.
This endpoint requires consent and the identity information to verify. Place idType, idSubType, and idNumber in additionalData.ids. The Sandbox field dateOfBirth maps to additionalData.dob, and gender maps to additionalData.gender.
Supported Sandbox ID Types
| ID Type | Available Test Fields |
|---|---|
| tin_ph | fullName, firstName, middleName, lastName, suffix, idNumber, gender, dateOfBirth |
| pagibig_ph | fullName, idNumber |
| prclicense_ph | fullName, idSubType, idNumber, dateOfBirth |
| nbi_ph | fullName, idNumber |
Sandbox Test Values
| ID Type | Parameter | Value |
|---|---|---|
| tin_ph | idType | tin_ph |
| tin_ph | fullName | George Cimafranca Palomero Jr. |
| tin_ph | firstName | George |
| tin_ph | middleName | Cimafranca |
| tin_ph | lastName | Palomero |
| tin_ph | suffix | Jr. |
| tin_ph | idNumber | 123456789 |
| tin_ph | gender | Male |
| tin_ph | dateOfBirth | 1970-08-24 |
| pagibig_ph | idType | pagibig_ph |
| pagibig_ph | fullName | George Cimafranca Palomero Jr. |
| pagibig_ph | idNumber | 123456789012 |
| prclicense_ph | idType | prclicense_ph |
| prclicense_ph | fullName | George Cimafranca Palomero Jr. |
| prclicense_ph | idSubType | CRIMINOLOGIST |
| prclicense_ph | idNumber | 0123456 |
| prclicense_ph | dateOfBirth | 1970-08-24 |
| nbi_ph | idType | nbi_ph |
| nbi_ph | fullName | George Cimafranca Palomero Jr. |
| nbi_ph | idNumber | ABC123DEF4-56GHI789J |
Use one Sandbox record per Verification request. For inputs outside these test values, the Sandbox may not return a matched verification result.
Request
- Base URLhttps://sandbox.smileapi.io/v1
- URLhttps://sandbox.smileapi.io/v1/alpha/verifications
- AuthHTTP basic
Request body
Example request
{
"firstName": "George",
"middleName": "Cimafranca",
"lastName": "Palomero",
"suffix": "Jr.",
"fullName": "George Cimafranca Palomero Jr.",
"additionalData": {
"email": "john.doe@smile.com",
"dob": "2000-01-21",
"gender": "Male",
"address": "123 Main St, Anytown, CA 12345",
"employer": "Google",
"ids": [
{
"idType": "tin_ph",
"idSubType": "CRIMINOLOGIST",
"idNumber": "123456789"
}
]
},
"consent": {
"type": "Terms and Conditions",
"version": "1.0.0",
"consentedAt": "2021-04-14T09:30:24Z",
"consentedWith": "I agree to the terms and conditions"
}
}Response
OK
Example response
{
"code": "OK",
"message": "Success",
"requestId": "5b79399a-6852-4234-bb0e-ad472648282d",
"data": {
"createdAt": "2021-04-14T09:30:24Z",
"updatedAt": "2021-04-14T09:30:24Z",
"requestMeta": {
"firstName": "George",
"middleName": "Cimafranca",
"lastName": "Palomero",
"suffix": "Jr.",
"fullName": "George Cimafranca Palomero Jr.",
"additionalData": {
"email": "john.doe@smile.com",
"dob": "2000-01-21",
"gender": "Male",
"address": "123 Main St, Anytown, CA 12345",
"employer": "Google",
"ids": [
{
"idType": "tin_ph",
"idSubType": "CRIMINOLOGIST",
"idNumber": "123456789"
}
]
},
"consent": {
"type": "Terms and Conditions",
"version": "1.0.0",
"consentedAt": "2021-04-14T09:30:24Z",
"consentedWith": "I agree to the terms and conditions"
}
}
}
}Changes
- breaking
added to the
/request propertyallOflist - breaking
the
/request property type changed fromstringto no type, and format fromdate-timeto no format - breaking
the
///response's property type changed fromstringto no type, and format fromdate-timeto no format for status - info
added to the
///response propertyallOflist for the response status
- breaking
- breaking
added to the
/request propertyallOflist - breaking
added to the
/request propertyallOflist - breaking
added to the
///request propertyallOflist - breaking
removed the enum value
Femaleof the request property/ - breaking
removed the enum value
Maleof the request property/ - breaking
removed the enum value
Non-binaryof the request property/ - breaking
removed the enum value
undefinedof the request property/ - breaking
the
/request property type changed fromstringto no type, and format fromdateto no format - breaking
the
/request property type changed fromstringto no type - breaking
the
///request property type changed fromstringto no type - breaking
the
///response's property type changed fromstringto no type, and format fromdateto no format for status - breaking
the
///response's property type changed fromstringto no type for status - breaking
the
/////response's property type changed fromstringto no type for status - info
added to the
///response propertyallOflist for the response status - info
added to the
///response propertyallOflist for the response status - info
added to the
/////response propertyallOflist for the response status - info
removed the
Femaleenum value from the///response property for the response status - info
removed the
Maleenum value from the///response property for the response status - info
removed the
Non-binaryenum value from the///response property for the response status - info
removed the
undefinedenum value from the///response property for the response status
- breaking