# Generate Swiss QR-IBAN & QRR pain.001.001.09 Payment XML

**Use case:** 

Build Swiss SPS 2026 compliant pain.001.001.09 CHF payment batches for Swiss QR-bills. Automatically validates Swiss QR-IBAN IID ranges (30000-31999) and 27-digit Modulo-10 recursive QRR payment references.

## Input

```json
{
  "operation": "generate_pain001_xml",
  "compliance_profile": "SPS_2026_AND_SEPA",
  "xml_documents": [],
  "payment_orders": [
    {
      "message_id": "CH-QRBATCH-20261125-01",
      "execution_date": "2026-11-25",
      "service_level": "CHDD",
      "debtor": {
        "name": "Helvetia MedTech AG",
        "iban": "CH9300762011623852957",
        "bic": "UBSWCHZH80A",
        "address": {
          "street_name": "Bahnhofstrasse",
          "building_number": "10",
          "post_code": "8001",
          "town_name": "Zurich",
          "country": "CH"
        }
      },
      "transactions": [
        {
          "end_to_end_id": "QRBILL-2026-331",
          "amount": "3450.00",
          "currency": "CHF",
          "creditor_name": "Zuger Cloud Hosting AG",
          "creditor_iban": "CH4431999123000889012",
          "creditor_bic": "POFICHBEXXX",
          "creditor_address": {
            "street_name": "Baarerstrasse",
            "building_number": "22",
            "post_code": "6300",
            "town_name": "Zug",
            "country": "CH"
          },
          "qrr_reference": "210000000003139471430009017"
        }
      ]
    }
  ],
  "mt940_statements": [],
  "include_converted_xml": true,
  "max_items": 25
}
```

## Output

```json
{
  "operation": {
    "label": "Operation Mode",
    "format": "string"
  },
  "message_family": {
    "label": "ISO 20022 Family",
    "format": "string"
  },
  "message_id": {
    "label": "Group Header Message ID",
    "format": "string"
  },
  "primary_currency": {
    "label": "Primary Currency",
    "format": "string"
  },
  "is_compliant": {
    "label": "Zero-Error Compliance Verdict",
    "format": "boolean"
  },
  "error_count": {
    "label": "Schema & Checksum Error Count",
    "format": "integer"
  },
  "warning_count": {
    "label": "Advisory Warning Count",
    "format": "integer"
  },
  "actual_tx_count": {
    "label": "Verified Transaction Count",
    "format": "integer"
  },
  "computed_control_sum": {
    "label": "Exact Decimal Sum",
    "format": "string"
  },
  "opening_balance": {
    "label": "Opening Balance (OPBD)",
    "format": "number"
  },
  "closing_balance": {
    "label": "Closing Balance (CLBD)",
    "format": "number"
  },
  "structured_address_count": {
    "label": "Structured Addresses",
    "format": "integer"
  },
  "hybrid_address_count": {
    "label": "Hybrid Addresses",
    "format": "integer"
  },
  "unstructured_address_count": {
    "label": "Unstructured Legacy Addresses",
    "format": "integer"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The ISO 20022 pain.001, pacs.008 & camt.053 JSON Bridge Actor is ready to run with the inputs already set for "Generate Swiss QR-IBAN & QRR pain.001.001.09 Payment XML". [Sign up or log in](https://console.apify.com/create-task-from-example/BC1HAZxB8LWsUceOv) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Generate Swiss QR-IBAN & QRR pain.001.001.09 Payment XML" task

The ISO 20022 pain.001, pacs.008 & camt.053 JSON Bridge Actor will start running based on the input automatically. You can also change all the input fields, like bridge operation mode, postal address & validation profile, and more, to match your specific use case.

### 3. Receive the "Generate Swiss QR-IBAN & QRR pain.001.001.09 Payment XML" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as operation mode, ISO 20022 Family, group header message id, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Generate Swiss QR-IBAN & QRR pain.001.001.09 Payment XML" task via API](https://apify.com/bifrost-data/iso20022-payment-statement-bridge.md).

## FAQ

### How does the engine detect Swiss QR-IBANs versus regular CH/LI IBANs?

It inspects positions 5-9 of CH and LI IBANs for the SIX Interbank Clearing QR-IID range 30000-31999 after verifying the ISO 13616 Mod-97 check digits.

### Does it verify the 27-digit QRR check digit and block forbidden unstructured text?

Yes. It validates the SIX Modulo-10 recursive check digit on 27-digit QRR strings and flags forbidden <Ustrd> tags when a QR-IBAN is used.

### Can Swiss fiduciaries and Abacus/Bexio automation flows call this via API?

Yes. Call synchronously via REST API or MCP in 256MB stateless RAM with zero disk persistence.

## About this Actor

This example demonstrates how to use [ISO 20022 pain.001, pacs.008 & camt.053 JSON Bridge](https://apify.com/bifrost-data/iso20022-payment-statement-bridge.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/bifrost-data/iso20022-payment-statement-bridge.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/bifrost-data/iso20022-payment-statement-bridge.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
