> ## Documentation Index
> Fetch the complete documentation index at: https://docs.idmetagroup.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NDRP

> Search a person's name in the PAGCOR National Database of Restricted Persons.

## Sandbox testing

Use sandbox mode with predetermined API payloads to retrieve every status this endpoint can return. Each payload is mapped to a specific outcome so you can confirm how your integration handles verified results.

> **Philippines NDRP sandbox payloads**
>
> Predetermined request and response examples for every returned status.

[Open](https://docs.idmetagroup.com/stateless-verification-api/sandbox/philippines-ndrp.md)


## OpenAPI

````yaml stateless-verification-api/philippines-government/ndrp.openapi.json POST /api/v3/verifications/philippines/ndrp-passthrough
openapi: 3.0.3
info:
  title: Philippines Government Verification API - NDRP
  version: 1.0.0
servers:
  - url: https://{environment-subdomain}.idmetagroup.com
    description: Your environment (replace `{environment-subdomain}`)
    variables:
      environment-subdomain:
        default: integrate
        description: IDmeta environment subdomain
security:
  - bearerAuth: []
paths:
  /api/v3/verifications/philippines/ndrp-passthrough:
    post:
      tags:
        - Philippines Government Verification
      summary: NDRP
      description: >-
        Search a person's name in the PAGCOR National Database of Restricted
        Persons (NDRP).
      parameters:
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
            example: Bearer {your_api_token}
        - name: Accept
          in: header
          required: false
          schema:
            type: string
            default: application/json
        - name: Content-Type
          in: header
          required: false
          schema:
            type: string
            default: application/json
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NDRPRequest'
            examples:
              default:
                summary: Name search with birth date
                value:
                  fullName: Pedro Santos Garcia
                  dateOfBirth: '1980-03-10'
                  metadata:
                    yourRef: case-1008
              nameOnly:
                summary: Name search, reject any name match
                value:
                  fullName: Pedro Santos Garcia
                  restrictedMatchAction: rejected
      responses:
        '200':
          description: >-
            Request processed. Check `verificationStatus` to determine the
            outcome. A restricted match is still HTTP 200.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhilippinesPassthroughSuccessResponse'
              examples:
                notRestricted:
                  summary: Not restricted (no records found)
                  value:
                    success: true
                    message: Philippines NDRP check processed successfully
                    data:
                      isValid: true
                      isRestricted: false
                      totalNumberOfRecords: 0
                      numberOfGelRecords: 0
                      numberOfGuestRecords: 0
                      numberOfGovtRecords: 0
                      records: []
                    verificationStatus: VERIFIED
                    verificationStatusCode: 3
                    transactionId: 79b6f81c-fc48-42ce-b907-763129b0957e
                    verificationType: philippines_ndrp
                    metadata:
                      yourRef: case-1001
                    createdAt: 2026-09-01 08:00:00+0000
                reviewNeeded:
                  summary: Name match without a birth date match (still HTTP 200)
                  value:
                    success: true
                    message: Philippines NDRP check processed successfully
                    data:
                      isValid: false
                      isRestricted: true
                      totalNumberOfRecords: 1
                      numberOfGelRecords: 1
                      numberOfGuestRecords: 0
                      numberOfGovtRecords: 0
                      records:
                        - firstName: PEDRO
                          middleName: SANTOS
                          lastName: GARCIA
                          birthdate: '1980-03-10'
                          source: GEL
                          photoPath: null
                    verificationStatus: REVIEW_NEEDED
                    verificationStatusCode: 2
                    transactionId: 79b6f81c-fc48-42ce-b907-763129b0957e
                    verificationType: philippines_ndrp
                    metadata:
                      yourRef: case-1001
                    createdAt: 2026-09-01 08:00:00+0000
                rejected:
                  summary: Name and birth date match (still HTTP 200)
                  value:
                    success: true
                    message: Philippines NDRP check processed successfully
                    data:
                      isValid: false
                      isRestricted: true
                      totalNumberOfRecords: 1
                      numberOfGelRecords: 1
                      numberOfGuestRecords: 0
                      numberOfGovtRecords: 0
                      records:
                        - firstName: PEDRO
                          middleName: SANTOS
                          lastName: GARCIA
                          birthdate: '1980-03-10'
                          source: GEL
                          photoPath: null
                    verificationStatus: REJECTED
                    verificationStatusCode: 1
                    transactionId: 79b6f81c-fc48-42ce-b907-763129b0957e
                    verificationType: philippines_ndrp
                    metadata:
                      yourRef: case-1001
                    createdAt: 2026-09-01 08:00:00+0000
        '400':
          description: Validation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhilippinesValidationErrorResponse'
              examples:
                invalidRequest:
                  summary: Validation failed
                  value:
                    success: false
                    code: VALIDATION_FAILED
                    message: >-
                      The request could not be validated. Please check the
                      submitted fields.
                    errors:
                      fullName:
                        - The full name field is required.
                    transactionId: null
                    verificationType: philippines_ndrp
                    createdAt: 2026-09-01 08:00:00+0000
        '500':
          description: Internal error or Philippine government source unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhilippinesPassthroughErrorResponse'
              examples:
                internalError:
                  summary: Internal error
                  value:
                    success: false
                    code: INTERNAL_ERROR
                    message: >-
                      An internal error has occurred while processing your
                      request. Please try again later.
                    verificationStatus: FAILED
                    verificationStatusCode: 6
                    transactionId: f43156f1-c11c-4a38-92d9-c2d3221eba5b
                    verificationType: philippines_ndrp
                    metadata:
                      yourRef: case-1001
                    createdAt: 2026-09-01 08:00:00+0000
                sourceUnavailable:
                  summary: Philippine government source unavailable
                  value:
                    success: false
                    code: PH_GOV_UNAVAILABLE
                    message: >-
                      The Philippine government source is currently unavailable.
                      Please try again later.
                    verificationStatus: FAILED
                    verificationStatusCode: 6
                    transactionId: f43156f1-c11c-4a38-92d9-c2d3221eba5b
                    verificationType: philippines_ndrp
                    metadata:
                      yourRef: case-1001
                    createdAt: 2026-09-01 08:00:00+0000
components:
  schemas:
    NDRPRequest:
      type: object
      required:
        - fullName
      properties:
        fullName:
          type: string
          description: Full name to search. This is the only value sent to NDRP.
          example: Pedro Santos Garcia
          minLength: 2
          maxLength: 255
        dateOfBirth:
          type: string
          format: date
          example: '1980-03-10'
          description: >-
            Optional birth date in `YYYY-MM-DD` format. Not sent to NDRP;
            compared with the birth dates of the records NDRP returns. An exact
            match rejects the check.
        restrictedMatchAction:
          type: string
          enum:
            - manual
            - rejected
          default: manual
          description: >-
            Status to use when NDRP returns a record but no birth date matches.
            `manual` returns `REVIEW_NEEDED`; `rejected` returns `REJECTED`.
        metadata:
          type: object
          additionalProperties: true
          description: >-
            Optional key-value pairs echoed back in completed and source-error
            responses.
    PhilippinesPassthroughSuccessResponse:
      type: object
      required:
        - success
        - message
        - data
        - verificationStatus
        - verificationStatusCode
        - transactionId
        - verificationType
        - createdAt
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
        data:
          type: object
          required:
            - isValid
            - isRestricted
            - totalNumberOfRecords
            - records
          description: >-
            NDRP search result. `birthdate` and `photoPath` are `null` when NDRP
            has no value.
          properties:
            isValid:
              type: boolean
              description: '`true` only when the status is `VERIFIED`.'
            isRestricted:
              type: boolean
              description: Whether NDRP returned at least one record for the name.
            totalNumberOfRecords:
              type: integer
            numberOfGelRecords:
              type: integer
            numberOfGuestRecords:
              type: integer
            numberOfGovtRecords:
              type: integer
            records:
              type: array
              items:
                type: object
                properties:
                  firstName:
                    type: string
                    nullable: true
                  middleName:
                    type: string
                    nullable: true
                  lastName:
                    type: string
                    nullable: true
                  birthdate:
                    type: string
                    nullable: true
                  source:
                    type: string
                    nullable: true
                  photoPath:
                    type: string
                    nullable: true
        verificationStatus:
          type: string
          enum:
            - VERIFIED
            - REVIEW_NEEDED
            - REJECTED
        verificationStatusCode:
          type: integer
          enum:
            - 3
            - 2
            - 1
          description: '`3` = Verified, `2` = Review needed, `1` = Rejected.'
        transactionId:
          type: string
          format: uuid
        verificationType:
          type: string
          example: philippines_ndrp
        metadata:
          type: object
          additionalProperties: true
          nullable: true
        createdAt:
          type: string
          example: 2026-09-01 08:00:00+0000
    PhilippinesValidationErrorResponse:
      type: object
      required:
        - success
        - code
        - message
        - errors
        - transactionId
        - verificationType
        - createdAt
      properties:
        success:
          type: boolean
          example: false
        code:
          type: string
          enum:
            - VALIDATION_FAILED
        message:
          type: string
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        transactionId:
          type: string
          format: uuid
          nullable: true
          description: Null for validation failures.
        verificationType:
          type: string
          example: philippines_ndrp
        metadata:
          type: object
          additionalProperties: true
          nullable: true
        createdAt:
          type: string
    PhilippinesPassthroughErrorResponse:
      type: object
      required:
        - success
        - code
        - message
        - verificationStatus
        - verificationStatusCode
        - transactionId
        - verificationType
        - createdAt
      properties:
        success:
          type: boolean
          example: false
        code:
          type: string
          enum:
            - PH_GOV_UNAVAILABLE
            - INTERNAL_ERROR
        message:
          type: string
        verificationStatus:
          type: string
          example: FAILED
        verificationStatusCode:
          type: integer
          example: 6
        transactionId:
          type: string
          format: uuid
        verificationType:
          type: string
          example: philippines_ndrp
        metadata:
          type: object
          additionalProperties: true
          nullable: true
        createdAt:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Use your API token as a Bearer token in the `Authorization` header.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.