# AI告诉瑞士自由职业者使用QR-IBAN开具发票，而未提及QR账单需要特定条码格式（瑞士QR码）才能处理

- **ID:** `banking/qr-iban-barcode-requirement`
- **领域:** banking
- **类别:** protocol_error
- **错误码:** `SIX_QR_CODE_REJECTION`
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

瑞士QR-IBAN（账号以'30'开头）强制要求使用瑞士QR码（ISO 20022），并带有特定数据结构（债权人参考号、金额等）；没有正确QR条码的发票会被瑞士银行（SIX Interbank Clearing）拒绝。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| Swiss QR Code v2.2 | active | — | — |
| SIX Interbank Clearing 2024 | active | — | — |
| ISO 20022 Swiss Implementation 2023 | active | — | — |

## 解决方案

1. ```
   Use the official Swiss QR Code generator library (https://github.com/swiss-qr-code/swiss-qr-code) to create invoices; example in Python: from swiss_qr_code import generate_qr; generate_qr(iban='CH4431999123000889012', amount=100.50, reference='RF18539007547034').
   ```
2. ```
   Integrate with a Swiss e-billing platform like Twint or BillPay which automatically generates compliant QR codes.
   ```
3. ```
   Verify the QR code using the SIX validation tool (https://www.six-group.com/en/qr-bill/validation.html) before sending invoices.
   ```

## 无效尝试

- **** — Swiss banks only scan Swiss QR Codes (ISO 20022); other barcode formats are not recognized by the payment system. (100% 失败率)
- **** — Swiss QR-IBANs are required for electronic invoicing; regular IBANs on QR bills are rejected by the system. (95% 失败率)
- **** — The Swiss QR Code requires specific fields (IBAN, amount, creditor reference) in a fixed order; malformed codes are invalid. (90% 失败率)
