{
  "id": "ph_tin",
  "kind": "datatype",
  "status": "draft",
  "name": "Philippine taxpayer identification number (TIN)",
  "doc": "Taxpayer Identification Number issued by the Bureau of Internal Revenue to individuals and businesses in the Philippines. The TIN proper has nine digits, written as three groups of three. A branch code may follow it; the head office uses zeros. Revenue Regulations 11-2008 describe a 9 to 13 digit code with a 4-digit branch code, older rules a 3-digit one, and newer forms show 5 digits.",
  "is_pii": true,
  "categories": [
    "finances",
    "pii"
  ],
  "country": [
    "PH"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^\\d{3}[- ]?\\d{3}[- ]?\\d{3}(?:[- ]?\\d{3,5})?$",
  "examples": [
    {
      "value": "214-735-680-000",
      "description": "Synthetic value with the 3-digit head office branch code",
      "valid": true
    },
    {
      "value": "214735680",
      "description": "Synthetic value without a branch code",
      "valid": true
    },
    {
      "value": "214-735-680-00000",
      "description": "Synthetic value with the 5-digit head office branch code",
      "valid": true
    },
    {
      "value": "214-735-68",
      "description": "Only eight digits in the TIN proper",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://dev.lawyerly.ph/laws/56964"
    },
    {
      "type": "other",
      "url": "https://www.odoo.com/documentation/16.0/applications/finance/fiscal_localizations/philippines.html"
    }
  ],
  "quality": {
    "score": 75,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "translation",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/PH/finances/ph_tin.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/PH/finances/ph_tin.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/PH/finances/ph_tin.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/ph_tin",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/ph_tin.json"
  }
}