{
  "openapi": "3.0.1",
  "info": {
    "title": "SEPA XML Generator: Excel & CSV to pain.001 and pain.008",
    "description": "Create SEPA XML payment files from an Excel, CSV or JSON list: credit transfers (pain.001.001.09 or .03) and direct debits (pain.008.001.08 or .02). Every row is checked (IBAN, BIC, amount, dates, mandate) and the file is validated against the official ISO 20022 schema.",
    "version": "0.1",
    "x-build-id": "GJY5vcXmswRqKth3R"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hardreset83~sepa-xml-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hardreset83-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/hardreset83~sepa-xml-generator/runs": {
      "post": {
        "operationId": "runs-sync-hardreset83-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/hardreset83~sepa-xml-generator/run-sync": {
      "post": {
        "operationId": "run-sync-hardreset83-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": {
          "paymentType": {
            "title": "What do you want to do?",
            "enum": [
              "credit-transfer",
              "direct-debit"
            ],
            "type": "string",
            "description": "Credit transfers: you pay suppliers, employees or refunds from your account (pain.001). Direct debits: you collect from customers or members who signed a SEPA mandate (pain.008).",
            "default": "credit-transfer"
          },
          "paymentsFile": {
            "title": "Upload the list of payments",
            "type": "string",
            "description": "Excel (.xlsx), CSV or TXT with any separator, or JSON. One row per payment, with a header row. The columns are found by their titles, in English, German, Italian, Spanish, French or Dutch: name, IBAN, amount, remittance information, and for direct debits the mandate reference and the date of signature. Optional: BIC, date, end-to-end ID, RF reference, purpose code, sequence type, address."
          },
          "paymentsUrls": {
            "title": "Links to lists",
            "type": "array",
            "description": "Direct links (https) to Excel, CSV or JSON lists, for example from Make, Zapier, n8n or a cloud folder. All lists together make one file.",
            "items": {
              "type": "string"
            }
          },
          "paymentsContent": {
            "title": "Or paste the list",
            "type": "string",
            "description": "Paste the rows of a CSV or of an Excel sheet (copied cells are separated by tabs), with the header row. Prefilled with an example list so you can try the Actor in one click: the example is free, and it is left out when you upload a list or add links."
          },
          "payments": {
            "title": "Or the payments as JSON",
            "type": "array",
            "description": "For the API and AI agents: [{\"name\": \"Example Supplier GmbH\", \"iban\": \"DE02120300000000202051\", \"amount\": 450.00, \"remittanceInformation\": \"Invoice 2026-0457\"}]. Optional keys: bic, date, endToEndId, creditorReference, purposeCode, mandateId, mandateDate, sequenceType, street, buildingNumber, postCode, town, country."
          },
          "accountName": {
            "title": "Account holder",
            "type": "string",
            "description": "Your name or the name of your company, as your bank has it. Prefilled with an example."
          },
          "accountIban": {
            "title": "Your IBAN",
            "type": "string",
            "description": "The IBAN of your account. Prefilled with an example: replace it with yours."
          },
          "accountBic": {
            "title": "Your BIC (optional)",
            "type": "string",
            "description": "Most banks do not need it. If your bank asks for it, write it here (8 or 11 characters)."
          },
          "creditorId": {
            "title": "Creditor identifier (direct debits only)",
            "type": "string",
            "description": "Your SEPA creditor identifier (Gläubiger-ID in German, codice identificativo del creditore in Italian, identificador del acreedor in Spanish, ICS in French), given by your bank or your central bank. Prefilled with an example."
          },
          "executionDate": {
            "title": "Date of the payments",
            "type": "string",
            "description": "Credit transfers: the execution date (empty: today, or the next business day). Direct debits: the collection date (empty: two business days from today, so that the file reaches your bank in time). A date column in the list wins over this date."
          },
          "scheme": {
            "title": "Direct debit scheme",
            "enum": [
              "CORE",
              "B2B"
            ],
            "type": "string",
            "description": "CORE for consumers and most companies. B2B only for companies that signed a B2B mandate and told their bank.",
            "default": "CORE"
          },
          "sequenceType": {
            "title": "Sequence type of the direct debits",
            "enum": [
              "RCUR",
              "FRST",
              "OOFF",
              "FNAL"
            ],
            "type": "string",
            "description": "For the rows without a sequence column. RCUR works also for the first collection of a recurring mandate. OOFF for a one-off mandate, FNAL for the last collection.",
            "default": "RCUR"
          },
          "instant": {
            "title": "Instant credit transfers",
            "type": "boolean",
            "description": "SEPA Instant: the money arrives in seconds (your bank must offer it).",
            "default": false
          },
          "batchBooking": {
            "title": "One line on your statement for each batch",
            "type": "boolean",
            "description": "On: your bank books every batch as one total. Off: one line for each payment.",
            "default": true
          },
          "categoryPurpose": {
            "title": "Category purpose (optional)",
            "type": "string",
            "description": "A code for the whole file, if your bank asks for it: SALA for salaries, SUPP for supplier payments, PENS for pensions, TAXS for taxes."
          },
          "version": {
            "title": "Version of the file",
            "enum": [
              "current",
              "legacy"
            ],
            "type": "string",
            "description": "The current version is accepted by the banks in the SEPA area. Choose the older one only if your bank or software asks for pain.001.001.03 or pain.008.001.02.",
            "default": "current"
          },
          "accountStreet": {
            "title": "Street",
            "type": "string",
            "description": "The street of your address, without the building number."
          },
          "accountBuildingNumber": {
            "title": "Building number",
            "type": "string",
            "description": "The building number of your address."
          },
          "accountPostCode": {
            "title": "Post code",
            "type": "string",
            "description": "The post code of your address."
          },
          "accountTown": {
            "title": "Town",
            "type": "string",
            "description": "The town of your address: with the country, it is the least the address rule asks for."
          },
          "accountCountry": {
            "title": "Country",
            "type": "string",
            "description": "Two letters, like DE, IT, ES or FR."
          },
          "skipInvalidRows": {
            "title": "Leave out rows with errors",
            "type": "boolean",
            "description": "Off (recommended): if a row has an error, no file is created and the dataset and REPORT.xlsx show what to fix, for free. On: the file is created with the rows without errors, and the others are listed as errors.",
            "default": false
          },
          "language": {
            "title": "Language of the report",
            "enum": [
              "en",
              "it",
              "de",
              "es",
              "fr"
            ],
            "type": "string",
            "description": "Column titles, errors and warnings in the dataset and in REPORT.xlsx.",
            "default": "en"
          },
          "columns": {
            "title": "Column titles (optional)",
            "type": "object",
            "description": "Only if a column is not found by its title: {\"name\": \"Kunde\", \"iban\": \"Konto\", \"amount\": \"Summe EUR\", \"remittanceInformation\": \"Text\"}. Keys: name, iban, bic, amount, remittanceInformation, creditorReference, endToEndId, mandateId, mandateDate, sequenceType, date, purposeCode, street, buildingNumber, postCode, town, country."
          },
          "senderId": {
            "title": "Sender ID (optional)",
            "type": "string",
            "description": "Only if your bank asks for an identification of the sender in the file (some Spanish banks do: the ID based on your NIF, or your creditor identifier)."
          },
          "messageId": {
            "title": "Message ID (optional)",
            "type": "string",
            "description": "The reference of the file, at most 35 characters. Empty: a new unique one for every file (banks refuse the same message ID twice)."
          },
          "failIfNoFile": {
            "title": "Fail the run when no file is created",
            "type": "boolean",
            "description": "For automations: the run ends as failed when no file is created, so that Make, Zapier or n8n stop. Off: the run succeeds and SUMMARY says fileCreated: false.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}