{"id":"rf-creditor-reference-compute","version":"1.0.0","description":"Compute the MOD 97-10 check digits and full ISO 11649 RF Creditor Reference for a base reference (invoice number).","supported_operations":["generate an rf creditor reference from an invoice number","compute check digits for a structured reference","build an iso 11649 reference","create a payment reference for a sepa transfer","turn an order number into a structured creditor reference","יצירת מספר אסמכתא מובנה לחשבונית"],"unsupported_operations":["validating a full reference that may already be wrong (use rf-creditor-reference-validate)","Swiss QR-bill references (swiss-qr-reference-validate checks them; computing one is not covered)","case-folding or space-stripping the input"],"semantics":["base_reference is taken exactly as given; this tool does not case-fold or strip spaces. It must already match ^[A-Z0-9]+$, 1-21 characters, or the call throws invalid_input.","MOD 97-10 check: rearranged = base_reference + 'RF00' (the literal letters R, F, then placeholder check digits '00'). digits = alnum_to_digits(rearranged). r = digits mod 97. check_digits = 98 - r (range 02-98; r = 0 gives '98', never '00'), zero-padded to 2 decimal digits.","reference = 'RF' + check_digits + base_reference (electronic form, no spaces). print = reference split into groups of 4 characters joined by a single space. Pure string parsing and MOD 97 arithmetic; no pinned dataset."],"limits":{"max_base_reference_bytes":21},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["base_reference"],"properties":{"base_reference":{"type":"string","minLength":1,"maxLength":21,"pattern":"^[A-Z0-9]+$"}}},"output_schema":{"type":"object","additionalProperties":false,"required":["reference","check_digits","print"],"properties":{"reference":{"type":"string","minLength":5,"maxLength":25},"check_digits":{"type":"string","pattern":"^[0-9]{2}$"},"print":{"type":"string","minLength":5,"maxLength":31}}},"examples":[{"input":{"base_reference":"539007547034"},"output":{"reference":"RF18539007547034","check_digits":"18","print":"RF18 5390 0754 7034"}},{"input":{"base_reference":"2348231"},"output":{"reference":"RF712348231","check_digits":"71","print":"RF71 2348 231"}},{"input":{"base_reference":"AB12CD34"},"output":{"reference":"RF07AB12CD34","check_digits":"07","print":"RF07 AB12 CD34"}}],"execute_url":"/v1/tools/rf-creditor-reference-compute/versions/1.0.0/execute"}