{
  "openapi": "3.0.1",
  "info": {
    "title": "SEPA XML Generator & IBAN Validator (pain.001 & pain.008)",
    "description": "Convert CSV, Excel rows, or JSON into bank-ready ISO 20022 SEPA Credit Transfer (pain.001.001.03 / pain.001.001.09) and Direct Debit (pain.008.001.02 / pain.008.001.08) XML files with MOD-97 IBAN validation and 2026 structured addresses.",
    "version": "1.0",
    "x-build-id": "RBsSRayNsOCONdg6A"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/finops_studio~sepa-xml-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-finops_studio-sepa-xml-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/finops_studio~sepa-xml-generator/runs": {
      "post": {
        "operationId": "runs-sync-finops_studio-sepa-xml-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/finops_studio~sepa-xml-generator/run-sync": {
      "post": {
        "operationId": "run-sync-finops_studio-sepa-xml-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "schema": {
            "title": "ISO 20022 SEPA Standard",
            "enum": [
              "pain.001.001.09",
              "pain.001.001.03",
              "pain.008.001.08",
              "pain.008.001.02"
            ],
            "type": "string",
            "description": "Choose Credit Transfer (pain.001 for payroll/supplier payouts) or Direct Debit (pain.008 for customer collections). Versions .09 and .08 include 2026 EPC structured address support.",
            "default": "pain.001.001.09"
          },
          "initiatingPartyName": {
            "title": "Your Company Name",
            "type": "string",
            "description": "Legal name of the sender (for Credit Transfer) or creditor (for Direct Debit)."
          },
          "initiatingPartyIban": {
            "title": "Your Company IBAN",
            "type": "string",
            "description": "Your EUR bank account IBAN (verified via MOD-97 checksum)."
          },
          "initiatingPartyBic": {
            "title": "Your Company BIC / SWIFT (Optional in EEA)",
            "type": "string",
            "description": "8 or 11 character BIC code of your bank."
          },
          "initiatingPartyCountry": {
            "title": "Company Country Code (ISO 2-letter)",
            "type": "string",
            "description": "2-letter country code for structured postal address (e.g., DE, FR, NL, ES, BE)."
          },
          "initiatingPartyCity": {
            "title": "Company City",
            "type": "string",
            "description": "Town or city name for 2026 structured SEPA postal address."
          },
          "executionDate": {
            "title": "Execution / Collection Date (YYYY-MM-DD)",
            "type": "string",
            "description": "Requested bank execution or direct debit collection date in YYYY-MM-DD format."
          },
          "creditorSchemeId": {
            "title": "SEPA Creditor Identifier (pain.008 Direct Debit Only)",
            "type": "string",
            "description": "Required only for Direct Debit (pain.008), e.g., DE98ZZZ09999999999."
          },
          "sequenceType": {
            "title": "Direct Debit Sequence Type (pain.008 Only)",
            "enum": [
              "RCUR",
              "FRST",
              "OOFF",
              "FNAL"
            ],
            "type": "string",
            "description": "RCUR (Recurring), FRST (First), OOFF (One-off), or FNAL (Final).",
            "default": "RCUR"
          },
          "batchBooking": {
            "title": "Batch Booking",
            "type": "boolean",
            "description": "Group transactions as a single consolidated bank statement booking line.",
            "default": true
          },
          "csvTransactions": {
            "title": "Paste CSV / Excel Rows (Comma, Semicolon, or Tab Separated)",
            "type": "string",
            "description": "Optional CSV text with header row: name,iban,bic,amount,reference,country,city"
          },
          "transactions": {
            "title": "Transactions JSON Array",
            "type": "array",
            "description": "List of payment or direct debit items (each with name, iban, amount, optional bic, remittanceInfo, endToEndId, mandateId, mandateDate, country, city)."
          },
          "includeInlineXml": {
            "title": "Include XML String in Dataset Output",
            "type": "boolean",
            "description": "Include the generated XML string directly inside the JSON dataset output (ideal for Make, n8n, Zapier, and MCP AI Agents).",
            "default": true
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}