Blacklists (Alpha)
Create Blacklist2
Create a Blacklist2 object.
This endpoint requires the following input parameters: consent, mobileNumber, templateId, and countryCode.
idType and idNumber are supported identity fields for the Blacklist2 template and should be provided when available.
Supported Template
| Template ID | Region | Required Parameters |
|---|---|---|
| tpl-blacklist-007001 | PH (default) | consent, mobileNumber, countryCode, templateId |
Field Rules
- templateId must be tpl-blacklist-007001.
- countryCode is required.
- For countryCode = PH, idType must be one of: NATIONAL_ID, SSS, UMID, TIN, PRC, PHILHEALTH, PASSPORT, DRIVER_LICENSE, VOTER_ID, or POSTAL_ID.
Sandbox Test Values
| Parameter | Value | Expected Response |
|---|---|---|
| templateId | tpl-blacklist-007001 | |
| mobileNumber | 639559991234 | |
| countryCode | PH | |
| idType | TIN | |
| idNumber | 4561234567 | resultCode = SUCCESS, hit = true |
For all other valid input combinations, the response will return: resultCode = SUCCESS, but hit = false.
post/alpha/blacklists/requestBlacklist2
Request body
Example request
{
"mobileNumber": "639559991234",
"idNumber": "123456789012",
"countryCode": "PH",
"templateId": "tpl-blacklist-007001",
"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",
"requestMeta": {
"mobileNumber": "639559991234",
"countryCode": "PH",
"templateId": "tpl-blk002001",
"applicationDate": "2023-01-21",
"consent": {
"type": "Terms and Conditions",
"version": "1.0.0",
"consentedAt": "2021-04-14T09:30:24Z",
"consentedWith": "I agree to the terms and conditions"
}
},
"result": {
"dates": [
"2000-01-21"
]
}
}
}