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

# Philippines

## Philippine Passport

<Info>
  The Philippine passport is an official travel document issued by the
  Department of Foreign Affairs (DFA) of the Philippines. This guide explains
  how to verify Philippine passports through our API.
</Info>

### Required Fields

<AccordionGroup>
  <Accordion title="Personal Information">
    <Callout icon="star" color="#3DD892" iconType="regular">
      ##### Name Handling Best Practices for Philippine Names

      1. Include all middle names if multiple exist
      2. Preserve compound surnames (e.g., "DELA CRUZ")
      3. Match exact spelling and format from passport
      4. Include spaces in compound names exactly as shown
    </Callout>

    The following fields must match exactly as shown on the passport:

    * Given name (first name)
    * Middle name
    * Family name (surname)

    <Callout icon="bell" color="#FFCA16" iconType="regular">
      Names must match the passport exactly, including:

      * Capitalization
      * Spaces
      * Special characters
      * Diacritical marks
    </Callout>
  </Accordion>

  <Accordion title="Document Details">
    <Info title="Passport Number Format">
      Philippine passport numbers follow this pattern:

      * First character: Letter (usually 'P' for regular passports)
      * Following characters: 7 digits
      * Total length: 8 characters
      * Example: `P1234567`
    </Info>

    * **ID Type**: Must be `PASSPORT`
    * **Country Code**: Must be `PHL`
    * **Passport Number**: Provided in `idNumber` field
      * Format: One letter followed by 7 digits (e.g., P1234567)
    * **Date of Birth**: Must be in `YYYY-MM-DD` format
  </Accordion>
</AccordionGroup>

<Panel>
  <CodeGroup>
    ```json Example Request theme={null}
    {
        "identityDocs": [
            {
                "idType": "PASSPORT",
                "country": "PHL",
                "idNumber": "P1234567"  // Philippine passport number
            }
        ],
        "name": {
            "givenName": "JUAN",        // As shown on passport
            "middleName": "SANTOS",     // As shown on passport
            "familyName": "DELA CRUZ",  // As shown on passport
            "displayName": "JUAN DELA CRUZ"
        },
        "dateOfBirth": {
            "dateOfBirth": "1996-06-10" // ISO 8601 format
        }
    }
    ```
  </CodeGroup>
</Panel>

<Callout icon="bell" color="#FFCA16" iconType="regular">
  ##### Common Validation Issues

  Avoid these common errors:

  * Incorrect passport number format
  * Missing middle name
  * Incorrect name capitalization
  * Wrong date format (must be YYYY-MM-DD)
</Callout>

<Check>
  ##### Verification Checklist

  Ensure these requirements are met:

  * ✓ Full name matches passport exactly
  * ✓ Passport number follows correct format
  * ✓ Date of birth is in ISO format
  * ✓ Country code is set to "PHL"
  * ✓ ID type is set to "PASSPORT"
</Check>
