{
  "openapi": "3.0.1",
  "info": {
    "title": "camt.053 to MT940 Converter for Accounting Software",
    "description": "Convert camt.053 bank statements (all versions, also ZIP files) to MT940 for accounting software that cannot read camt: German bank layout with GVC codes and EREF, MREF, SVWZ, BIC, IBAN and name in field 86, or plain SWIFT. Also Norma 43, CFONB 120, CODA and BAI2.",
    "version": "0.1",
    "x-build-id": "bpq4u2fscHavQTX1l"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hardreset83~camt-to-mt940-converter/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hardreset83-camt-to-mt940-converter",
        "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~camt-to-mt940-converter/runs": {
      "post": {
        "operationId": "runs-sync-hardreset83-camt-to-mt940-converter",
        "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~camt-to-mt940-converter/run-sync": {
      "post": {
        "operationId": "run-sync-hardreset83-camt-to-mt940-converter",
        "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": {
          "statementFile": {
            "title": "Upload a camt.053 file or a ZIP",
            "type": "string",
            "description": "One bank statement file (camt.053 XML of any version, or Norma 43, CFONB 120, CODA or BAI2) or a ZIP archive with many of them, for example the export of your online banking. Other files inside the ZIP are skipped for free."
          },
          "statementUrls": {
            "title": "Links to statement files",
            "type": "array",
            "description": "Direct links (https) to camt.053 files or ZIP archives. Useful from Make, Zapier, n8n or your own code.",
            "items": {
              "type": "string"
            }
          },
          "statementContent": {
            "title": "Or paste one statement",
            "type": "string",
            "description": "Paste the content of one camt.053 file. Prefilled with an example statement so you can try the Actor in one click (free): when you upload a file or add links, the example is ignored."
          },
          "layout": {
            "title": "Layout of field 86",
            "enum": [
              "german",
              "swift"
            ],
            "type": "string",
            "description": "German banks (DFÜ): business transaction code (GVC), booking text, EREF+, MREF+, CRED+, SVWZ+ in the subfields ?20 to ?29, BIC, IBAN and name of the other party in ?30 to ?33. This is what accounting software in Germany and Austria reads, and many other programs too. SWIFT free text: the same information as plain text, for software outside Germany and Austria.",
            "default": "german"
          },
          "characters": {
            "title": "Characters and file encoding",
            "enum": [
              "latin1",
              "ascii",
              "utf8"
            ],
            "type": "string",
            "description": "ISO 8859-1 keeps the umlauts (Müller), like the MT940 files of the German banks. SWIFT characters only writes Mueller and leaves out the signs that SWIFT does not allow, for strict or very old programs. UTF-8 keeps every letter.",
            "default": "latin1"
          },
          "accountFormat": {
            "title": "Account in field 25",
            "enum": [
              "bankcode",
              "iban"
            ],
            "type": "string",
            "description": "Bank code/account number (37040044/0532013000) for German and Austrian accounts, as older programs expect it, and the IBAN for the other countries. Or always the IBAN.",
            "default": "bankcode"
          },
          "splitBatches": {
            "title": "One booking per payment inside batch entries",
            "type": "boolean",
            "description": "Some entries group many payments (collected membership fees, a salary run). Off: one booking for the whole batch, as your bank books it. On: one booking for each single payment with its own name, IBAN and reference, so that your software can match each one (only when the payments add up to the entry).",
            "default": false
          },
          "reversalMarks": {
            "title": "Reversals as RC and RD",
            "type": "boolean",
            "description": "Reversals (cancelled bookings) are written with the marks RC and RD of the SWIFT standard. Switch off if your program only reads C and D.",
            "default": true
          },
          "fileExtension": {
            "title": "File extension",
            "enum": [
              "sta",
              "940",
              "txt",
              "mt940"
            ],
            "type": "string",
            "description": "The name of the files: MT940.sta, MT940.940, MT940.txt or MT940.mt940, as your program wants them.",
            "default": "sta"
          },
          "language": {
            "title": "Language of the results",
            "enum": [
              "en",
              "de",
              "it",
              "es",
              "fr"
            ],
            "type": "string",
            "description": "The language of the status and warnings in the dataset.",
            "default": "en"
          },
          "deduplicate": {
            "title": "Skip duplicate statements",
            "type": "boolean",
            "description": "The same statement found twice (the same file uploaded again, or inside two archives) is written and charged only once.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}