{
  "id": "ch_esr",
  "kind": "datatype",
  "status": "draft",
  "name": "Swiss payment slip reference number (ESR, QR reference)",
  "doc": "Reference number of Swiss inpayment slips (ESR/ISR, Einzahlungsschein mit Referenznummer), also used as the QR reference of QR-bills. It has 27 digits, the last being a recursive modulo 10 check digit, and is printed as two digits followed by five groups of five. Leading zeros can be omitted.",
  "is_pii": false,
  "categories": [
    "finances"
  ],
  "country": [
    "CH"
  ],
  "langs": [
    "de",
    "fr",
    "it"
  ],
  "classification": "identifier",
  "regexp": "^(?:\\d{2}(?: \\d{5}){5}|\\d{27})$",
  "examples": [
    {
      "value": "306356360403828294825668780",
      "description": "Synthetic number with a valid check digit",
      "valid": true
    },
    {
      "value": "664319904784271582486799994",
      "description": "Synthetic number with a valid check digit",
      "valid": true
    },
    {
      "value": "30 63563 60403 82829 48256 68780",
      "description": "The first example in its printed form",
      "valid": true
    },
    {
      "value": "3063563604038282948256687807",
      "description": "One character too many",
      "valid": false
    }
  ],
  "mappings": {
    "stdnum": "ch.esr"
  },
  "links": [
    {
      "type": "doc",
      "url": "https://www.paymentstandards.ch/dam/downloads/ig-qr-bill-en.pdf"
    },
    {
      "type": "other",
      "url": "https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.ch.esr.html"
    },
    {
      "type": "other",
      "url": "https://docs.dataprep.ai/user_guide/clean/clean_ch_esr.html"
    }
  ],
  "translations": {
    "de": {
      "name": "Einzahlungsschein mit Referenznummer (ESR)"
    },
    "fr": {
      "name": "Bulletin de versement avec numéro de référence (BVR)"
    }
  },
  "detected_by": {
    "tools": [
      "dataprep",
      "pythonstdnum"
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/CH/finances/ch_esr.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/CH/finances/ch_esr.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/CH/finances/ch_esr.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/ch_esr",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/ch_esr.json"
  }
}