# Generate SEPA pain.001 XML & Validate SPS 2026 IBAN Batches

**Use case:** 

Convert clean JSON payment batches into canonical ISO 20022 pain.001.001.09 XML with automatic Decimal CtrlSum calculation, IBAN Mod-97, BIC, ISO 11649 SCOR reference, and mandatory 2026 Swiss SPS & EPC SEPA structured postal address validation in zero-retention RAM.

## Input

```json
{
  "operation": "generate_pain001_xml",
  "compliance_profile": "SPS_2026_AND_SEPA",
  "xml_documents": [],
  "payment_orders": [
    {
      "message_id": "SEPA-20261124-001",
      "execution_date": "2026-11-25",
      "service_level": "SEPA",
      "debtor": {
        "name": "Nordic Industrial GmbH",
        "iban": "DE89370400440532013000",
        "bic": "COBADEFFXXX",
        "address": {
          "street_name": "Friedrichstrasse",
          "building_number": "40",
          "post_code": "10117",
          "town_name": "Berlin",
          "country": "DE"
        }
      },
      "transactions": [
        {
          "end_to_end_id": "INV-2026-9001",
          "amount": "1250.50",
          "currency": "EUR",
          "creditor_name": "Alpen Precision AG",
          "creditor_iban": "NL91ABNA0417164300",
          "creditor_bic": "ABNANL2AXXX",
          "creditor_address": {
            "post_code": "1012",
            "town_name": "Amsterdam",
            "country": "NL",
            "address_lines": [
              "Damrak 18"
            ]
          },
          "scor_reference": "RF18539007547034"
        },
        {
          "end_to_end_id": "INV-2026-9002",
          "amount": "749.50",
          "currency": "EUR",
          "creditor_name": "Helvetia Systems AG",
          "creditor_iban": "CH9300762011623852957",
          "creditor_bic": "UBSWCHZH80A",
          "creditor_address": {
            "street_name": "Bahnhofstrasse",
            "building_number": "10",
            "post_code": "8001",
            "town_name": "Zurich",
            "country": "CH"
          },
          "remittance_text": "Q4 Treasury SaaS Settlement"
        }
      ]
    }
  ],
  "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 SEPA pain.001 XML & Validate SPS 2026 IBAN Batches". [Sign up or log in](https://console.apify.com/create-task-from-example/n45NoIbbSKoxPqqwp) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Generate SEPA pain.001 XML & Validate SPS 2026 IBAN Batches" 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 SEPA pain.001 XML & Validate SPS 2026 IBAN Batches" 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 SEPA pain.001 XML & Validate SPS 2026 IBAN Batches" task via API](https://apify.com/bifrost-data/iso20022-payment-statement-bridge.md).

## FAQ

### What does the task generate from JSON payment batches?

The Generate SEPA pain.001 XML task converts clean JSON payment batches into canonical ISO 20022 pain.001.001.09 XML.

### What compliance checks does this task perform?

The task validates against SPS 2026 structured address rules and verifies IBAN, BIC, SCOR references, and balance math.

### What are the output fields returned by this task?

The output includes operation mode, message ID, compliance verdict, error counts, transaction counts, and address counts.

### How does the task ensure compliance with IBAN and BIC standards?

It verifies IBAN using ISO Mod-97 and checks BIC following ISO 9362, ensuring they meet the required standards.

### Does this task utilize storage for data processing?

The task operates in zero-retention RAM with no data stored on disk, processing all information in volatile memory.

### Can I automate the execution of this task?

Yes, the task can be scheduled to run automatically through the Apify Console.

### Is there a cost associated with using this task?

The cost follows Apify's usage-based pricing model, dependent on the number of verified messages processed.

## 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`).
