{
  "id": "ru_ifns_code",
  "kind": "datatype",
  "status": "draft",
  "name": "Russian tax office code (код ИФНС)",
  "doc": "Four-digit code of a Russian tax office (инспекция ФНС): two digits for the region and two for the office within it, as in 7707 for inspection No. 7 of Moscow. The first four digits of an organization's INN are the code of the office that assigned it, and the first four digits of a KPP the code of the office where it is registered.",
  "is_pii": false,
  "categories": [
    "government",
    "finances"
  ],
  "country": [
    "RU"
  ],
  "langs": [
    "ru"
  ],
  "classification": "identifier",
  "regexp": "^\\d{4}$",
  "examples": [
    {
      "value": "7707",
      "description": "Inspection No. 7 of Moscow",
      "valid": true
    },
    {
      "value": "0107",
      "description": "Tax office in the Republic of Adygea",
      "valid": true
    },
    {
      "value": "107",
      "description": "Leading zero dropped",
      "valid": false
    }
  ],
  "translations": {
    "ru": {
      "name": "Код налогового органа (ИФНС)"
    }
  },
  "quality": {
    "score": 65,
    "missing": [
      "source link",
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/RU/government/ru_ifns_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/RU/government/ru_ifns_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/RU/government/ru_ifns_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/ru_ifns_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/ru_ifns_code.json"
  }
}