API Request & Response

The Philippines NBI Clearance verification service is the activity of checking the validity of inputted NBI Clearance number compared to authoritative datasource.

Endpoint

MethodBase URLPath
POSThttps://api.verihubs.com/philippines/nbi/verify

Request

Header

KeyTypeNotesDescription
App-IDstringRequiredApplication ID generated from Verihubs Dashboard.
API-KeystringRequiredAPI-Key linked to the App ID.

Body

Key/ParameterTypeExampleDescription
clearence_number* string U000KATL67-RP1089164Exact 20 digits of clearance number as stated on the document with 10-9 digit format.
reference_id stringReference in string format.

This reference_id can be used to indicate your company’s transaction (must be unique)


Note: If the reference_id is empty or did not include to the request, Verihubs will generate the unique reference_id

Response

HTTP Code

NoCodeDescriptionExamples
1200Successful Transaction; Transaction that is considered successful and has been successfully verified by the data source.

{

  "message": "NBI Clearance verification successfully completed",

  "id": "fdb47ebd-a54f-4355-847b-984ce9576903",

  "reference_id": "e40a3e32-5419-4ac8-a9b5-b2a787dc7495",

  "verification_status": "VERIFIED",

  "verification_result": {

    "clearance_number": "U000KATL67-RP1089164",

    "full_name": "JOHN JACK DOE",

    "last_name": "JOHN",

    "middle_name": "JACK",

    "first_name": "DOE",

    "photo": "http://alpha-ws.nbi-clearance.io/api/v1/profile/temp/picture/A146JMPA49-DO1908648?expires=1753414508&signature=bc719a401ac6856cb40f5c98c1079ac2a2b833373ceb60a33cfe7ecbe2048b10",

    "clearance_expiry": "July 25, 2023",

    "occupation": "-",

    "is_valid": true

  }

}

2400Invalid Payload; Transaction that is considered failed due to validation errors, an error_field will appear explaining the error.

{

  "message": "Invalid payload",

  "error_code": "INVALID_PAYLOAD",

  "error_fields": [

    {

    "field": "clearance_number",

    "message": "clearance_number length should consist of 20 digit(s)"

    }

  ]

}

3401Authorization Failed (the transaction cannot proceed because it is unauthorized). Please check the validity of your Application ID and API-Key and ensure it is in the right environment.

{

   "message": "Authorization Failed",

   "error_code":    "UNAUTHORIZED",

   "error_fields": []

}

4403Quota Insufficient (the transaction failed due to insufficient quota, please contact CS Verihubs)

{

   "message": "Insufficient testing quota",

   "error_code": "FORBIDDEN",

   "error_fields": []

}

5429Too Many Request; Spam Error as the transaction is read as spam, please wait 10 seconds before re-performing the hit process with the same identity.

{

   "message": "Too many request in the allowed time frame",

   "error_code":       "TOO_MANY_REQUEST",

   "error_fields": []

}

6500Internal Server Error; The transaction failed due untraced server error that could be caused by data source constraints, timeout, internal error.

{

   "message": "Internal Server Error",

   "error_code":    "INTERNAL_SERVER_ERROR",

}

Response Parameter

NoTypeDescriptionExample
messagestringMessage of responseNBI Clearance verification successfully completed
id stringVerihubs Transaction ID,  string that can be used for reconciliation purpose (unique for every transactions)e3c0326e-23f7-49d0-8876-71528a860a0c
reference_idstringThe reference_id inputted prior to the API transaction.e40a3e32-5419-4ac8-a9b5-b2a787dc7495
verification_statusstringThe ID inputted by the user on request.VERIFIED/REJECTED
verification_resultarrayArray containing detailed information.[]
clearance_numberstringThe inputted clearence_number if the data found.U000KATL67-RP1089164
full_namestringFull name of the person owning the NBI Clearance.JOHN JACK DOE 
last_namestringLast name of the person.DOE
middle_namestringMiddle name of the person.JACK
first_namestringFirst name of the person.JOHN
photostringFace photo URL.URL
clearance_expirystringClearance expiry date in Month Date, Year format.July 25, 2023
occupationstringOccupation of the person. May sometimes be empty since this field is not always asked by the Authority.Sales
is_validboolIs the inputted number valid or not.true

Response Example

CaseRequest ExampleResponse Example
Number inputted match with authoritative data

{

  "card_no":"U000KATL67-RP1089164",

  "reference_id":”Docs-NBI-1”

}

{

  "message": "NBI Clearance verification successfully completed",

  "id": "fdb47ebd-a54f-4355-847b-984ce9576903",

  "reference_id": "e40a3e32-5419-4ac8-a9b5-b2a787dc7495",

  "verification_status": "VERIFIED",

  "verification_result": {

    "clearance_number": "U000KATL67-RP1089164",

    "full_name": "JOHN JACK DOE",

    "last_name": "JOHN",

    "middle_name": "JACK",

    "first_name": "DOE",

    "photo": "http://alpha-ws.nbi-clearance.io/api/v1/profile/temp/picture/A146JMPA49-DO1908648?expires=1753414508&signature=bc719a401ac6856cb40f5c98c1079ac2a2b833373ceb60a33cfe7ecbe2048b10",

    "clearance_expiry": "July 25, 2023",

    "occupation": "-",

    "is_valid”: “true”

  }

}

Number inputted did not match with authoritative data

{

  "card_no":"U000KATL67-RP3423123",

  "reference_id":”Docs-NBI-2”

}

{

  "message": "NBI Clearance verification successfully completed",

  "id": "fdb47ebd-a54f-4355-847b-984ce9576903",

  "reference_id": "e40a3e32-5419-4ac8-a9b5-b2a787dc7495",

  "verification_status": "NOT VERIFIED",

  "verification_result": {}

}


Did this page help you?