{
  "openapi": "3.0.1",
  "info": {
    "title": "SEPA Mandate Generator: Direct Debit Mandate Forms to PDF",
    "description": "Create SEPA direct debit mandate forms (PDF) for your members or customers from Excel, CSV or JSON: the standard mandate wording in English, German, Italian, Spanish or French, a unique mandate reference for each, prefilled names and IBANs, and a list for your direct debit file.",
    "version": "0.1",
    "x-build-id": "velLdRXBxYfmRFrIw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hardreset83~sepa-mandate-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hardreset83-sepa-mandate-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-mandate-generator/runs": {
      "post": {
        "operationId": "runs-sync-hardreset83-sepa-mandate-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-mandate-generator/run-sync": {
      "post": {
        "operationId": "run-sync-hardreset83-sepa-mandate-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": {
          "creditorName": {
            "title": "Creditor's name",
            "type": "string",
            "description": "Your name or the name of your club, school or company, as your customers know it."
          },
          "creditorAddress": {
            "title": "Creditor's address",
            "type": "string",
            "description": "Street, post code and town, country: one per line."
          },
          "creditorId": {
            "title": "SEPA creditor identifier",
            "type": "string",
            "description": "Like DE98ZZZ09999999999 (country, check digits, business code, national number). It is checked before the forms are made."
          },
          "debtorsFile": {
            "title": "Upload the list",
            "type": "string",
            "description": "Excel (.xlsx), CSV or JSON with one row per member or customer: name (or first and last name), and if you have them address, IBAN, BIC, member number, mandate reference, amount, language. Columns are found by their titles in English, German, Italian, Spanish, French or Dutch. Without an IBAN the form has empty boxes for it."
          },
          "debtorsUrls": {
            "title": "Links to lists",
            "type": "array",
            "description": "Direct links (https) to lists, for example an export of your member software or a file from Make, Zapier, n8n or a cloud folder.",
            "items": {
              "type": "string"
            }
          },
          "debtorsContent": {
            "title": "Or paste the list",
            "type": "string",
            "description": "Rows copied from Excel or a CSV. Prefilled with an example list of three members 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."
          },
          "debtors": {
            "title": "Or the members as JSON",
            "type": "array",
            "description": "For the API and automations: [{\"name\": \"...\", \"street\": \"...\", \"postCode\": \"...\", \"town\": \"...\", \"country\": \"DE\", \"iban\": \"...\"}]."
          },
          "blankForms": {
            "title": "Blank forms",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Also make this many empty forms, each with its own mandate reference, for new members to fill in by hand.",
            "default": 0
          },
          "language": {
            "title": "Language of the forms",
            "enum": [
              "en",
              "it",
              "de",
              "es",
              "fr"
            ],
            "type": "string",
            "description": "The standard wording of the SEPA Core mandate in this language. A column «Language» in the list (en, de, it, es, fr) chooses it row by row.",
            "default": "en"
          },
          "englishToo": {
            "title": "Add the English text",
            "type": "boolean",
            "description": "On: titles and the mandate text also in English, under the chosen language (for members from other countries).",
            "default": false
          },
          "paymentType": {
            "title": "Type of payment",
            "enum": [
              "recurrent",
              "one-off"
            ],
            "type": "string",
            "description": "Ticked on every form.",
            "default": "recurrent"
          },
          "purpose": {
            "title": "Purpose (optional)",
            "type": "string",
            "description": "Printed on every form, for example «Membership fee». A column «Purpose» in the list wins."
          },
          "referencePrefix": {
            "title": "Prefix of the mandate references",
            "type": "string",
            "description": "New references are this prefix with the member number of the list, or with a running number (MANDATE-0001, MANDATE-0002...). References already in the list are kept as they are. Letters, digits and / - ? : ( ) . , ' + only.",
            "default": "MANDATE-"
          },
          "referenceStart": {
            "title": "First running number",
            "minimum": 0,
            "type": "integer",
            "description": "Start from the number after the last mandate you made, so that every reference stays unique.",
            "default": 1
          },
          "oneFilePerMandate": {
            "title": "One PDF file per mandate",
            "type": "boolean",
            "description": "On: besides MANDATES.pdf, every mandate gets its own PDF file with a link in the dataset (for sending each member their form, or for e-signature). Up to 1,000 per run.",
            "default": false
          },
          "columns": {
            "title": "Column titles (optional)",
            "type": "object",
            "description": "Only if a column is not found by its title, for example {\"name\": \"Mitglied\", \"iban\": \"Bankverbindung\"}. Fields: name, holder, firstName, lastName, number, iban, bic, mandateId, street, buildingNumber, postCode, town, country, amount, purpose, language."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}