Check a Swiss QR-bill payload

Read the text of a Swiss QR-bill code (as decoded from the QR image) and list every problem against the Swiss Payment Standards, with the parsed fields.

CHF 0.002 / callCall itTry it
McGill cash register, patent model, 1886
McGill cash register, patent model1886

Details

Use it to check invoices you receive or QR codes another system produced.

Price: CHF 0.002 per call (first 100 calls per day free).

Example: {"payload":"SPC\r\n0200\r\n1\r\nCH44…"} → {"valid":true,"bill":{…}} or a list of problems.

Call it

REST
curl -X POST https://api.tausendwerk.xyz/v1/qr-bill-check \
  -H "Content-Type: application/json" \
  -d '{"payload":"SPC\r\n0200\r\n1\r\nCH4431999123000889012\r\nS\r\nMuster AG\r\nBahnhofstrasse\r\n1\r\n8001\r\nZürich\r\nCH\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n199.95\r\nCHF\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nQRR\r\n210000000003139471430009017\r\n\r\nEPD"}'
MCP tool name
qr_bill_check

After the free 100 calls per day, add a key: Authorization: Bearer tw_live_…. Pricing

Try it

Runs against the live API with the free allowance.

Input schema JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "payload"
  ],
  "properties": {
    "payload": {
      "type": "string",
      "minLength": 3,
      "maxLength": 2000
    }
  },
  "examples": [
    {
      "payload": "SPC\r\n0200\r\n1\r\nCH4431999123000889012\r\nS\r\nMuster AG\r\nBahnhofstrasse\r\n1\r\n8001\r\nZürich\r\nCH\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n199.95\r\nCHF\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nQRR\r\n210000000003139471430009017\r\n\r\nEPD"
    }
  ]
}

More in Identifiers and Swiss QR-bills