# Reference number generator > How do you make a valid reference number? Create a Finnish reference number with its check digit, or check one, with the RF form. Create a Finnish invoice reference number (viitenumero) from any base, or check one with its check digit. Also checks RF creditor references. - Page: https://how.box/reference-number/ - Runs entirely in the browser. Countries: FI (Finland). - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/reference-number/?m={m}&r={r}&n={n}&b={b} - `m` (check or create): check or create. Example: `check`. - `r` (text): check: the reference to check. Example: `12345672`. - `n` (whole number 1 to 100): create: how many consecutive references, 1–100. Example: `10`. - `b` (text): create: the base digits. Example: `1234567`. Example answer: https://how.box/reference-number/?m=check&r=12345672&n=10&b=1234567 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `reference_number_check`: Check a payment reference: a Finnish reference number (viitenumero, 4–20 digits, 7-3-1 check digit) or an ISO 11649 RF creditor reference (MOD 97-10). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"reference_number_check","arguments":{"reference":"12345672"}}}` - GET: https://how.box/mcp/run/reference_number_check?reference=12345672 - `reference_number_create`: Create a Finnish reference number (viitenumero) from a base of 3–19 digits by appending the 7-3-1 check digit. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"reference_number_create","arguments":{"count":10,"base":"1234567"}}}` - GET: https://how.box/mcp/run/reference_number_create?count=10&base=1234567 ## How it works A reference number tells the payee which invoice a payment belongs to, so it can be matched automatically. Its last digit is a check digit that catches typing mistakes. Finnish invoices use the domestic reference number (viitenumero) or the international RF creditor reference. For a Finnish reference, the base digits are multiplied by 7, 3, 1, 7, 3, 1 … starting from the right, and the products are added up. The check digit is what that sum needs to reach the next full ten (0 if it already is one). For base 1234567 the sum is 118, so the check digit is 2 and the reference is 123 45672. It is printed in groups of five from the right, without leading zeros, as Finance Finland's reference number guide describes. An RF creditor reference (ISO 11649) is RF, two check digits and the reference itself; the check digits are calculated with the same MOD 97 method as an IBAN. Finance Finland's example: the Finnish reference 2348236 is RF33 2348 236. A valid check digit doesn't mean the payee uses the reference: always copy it from the invoice. ## FAQ **How long can a Finnish reference number be?** From 4 to 20 digits including the check digit, so the base can have 3 to 19 digits. Shorter references are easier to type. **Can I make my own reference numbers?** Yes. Any base works, such as an invoice or customer number; what matters is that the check digit is right and the number identifies the invoice. **What is the difference between a viitenumero and an RF reference?** The viitenumero is the Finnish domestic format. The RF creditor reference is the international ISO 11649 format and works across SEPA. A Finnish reference can be written as an RF reference. **Do I need to type the spaces?** No. Spaces only make the number easier to read; banks accept it with or without them. **Does a valid reference prove that an invoice has been paid?** No. The check only verifies the number’s structure and check digit. It does not look up invoices or bank transactions. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)