{
  "id": "rf_creditor_reference",
  "kind": "datatype",
  "status": "draft",
  "name": "Structured creditor reference (ISO 11649, RF reference)",
  "doc": "Payment reference defined by ISO 11649 that a creditor prints on an invoice so that incoming payments can be matched to it automatically; it was first used in the SEPA rulebook. It is the letters RF, two check digits and a reference of up to 21 letters or digits, 25 characters at most, and is usually printed in groups of four. The check digits work as in an IBAN: RF and the check digits are moved to the end, letters are replaced by numbers, and the result modulo 97 is 1.",
  "is_pii": false,
  "categories": [
    "finances"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^RF\\d{2}(?: ?[0-9A-Z]){1,21}$",
  "examples": [
    {
      "value": "RF18 5390 0754 7034",
      "description": "Example from the python-stdnum documentation",
      "valid": true
    },
    {
      "value": "RF18539007547034",
      "description": "The same reference without spaces",
      "valid": true
    },
    {
      "value": "RF18 5390 0754 70Y",
      "description": "Reference with a letter, from the python-stdnum documentation",
      "valid": true
    },
    {
      "value": "RF18",
      "description": "No reference after the check digits",
      "valid": false
    },
    {
      "value": "RF18 5390 0754 7034 5678 9012 34",
      "description": "Reference longer than 21 characters",
      "valid": false
    }
  ],
  "mappings": {
    "stdnum": "iso11649"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Creditor_Reference"
    },
    {
      "type": "doc",
      "url": "https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.iso11649.html"
    }
  ],
  "quality": {
    "score": 85,
    "missing": [
      "translation",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/any/finances/rf_creditor_reference.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/finances/rf_creditor_reference.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/finances/rf_creditor_reference.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/rf_creditor_reference",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/rf_creditor_reference.json"
  }
}