Swiss qr reference validate

swiss-qr-reference-validate · version 1.0.0 · Identifiers & check digits · free, no key needed

Validate a 27-digit Swiss QR-bill QR reference's modulo-10-recursive check digit and reject all-zero references.

Use when you need to: validate a swiss qr bill reference number · check digit for a qrr reference · is this qr-bill reference valid.

Decide before calling

Read the versioned contract and the supported scope below. Reuse swiss-qr-reference-validate@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use swiss-qr-reference-validate@1.0.0 for validate a swiss qr bill reference number. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "reference": "210000000003139471430009017"
}

Response:

{
  "result": {
    "valid": true,
    "reason": null,
    "normalized": "210000000003139471430009017",
    "check_digit": "7",
    "print": "21 00000 00003 13947 14300 09017"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "swiss-qr-reference-validate",
  "version": "1.0.0",
  "input": {
    "reference": "210000000003139471430009017"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/swiss-qr-reference-validate/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"reference":"210000000003139471430009017"}'

The machine-readable contract is at /v1/tools/swiss-qr-reference-validate/versions/1.0.0.

CLI

node cli.mjs run swiss-qr-reference-validate 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.