{
  "openapi": "3.0.1",
  "info": {
    "title": "Ri.Ba. da Excel: file CBI delle ricevute bancarie",
    "description": "Crea il file Ri.Ba. (ricevute bancarie elettroniche) nel formato CBI per l'home banking, da un elenco Excel, CSV o JSON. Controlla ogni riga: codice fiscale o partita IVA, IBAN o ABI e CAB, importo, scadenza sul calendario delle banche italiane.",
    "version": "0.1",
    "x-build-id": "YnvndcThTeTNAS8qP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hardreset83~riba-cbi-excel/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hardreset83-riba-cbi-excel",
        "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~riba-cbi-excel/runs": {
      "post": {
        "operationId": "runs-sync-hardreset83-riba-cbi-excel",
        "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~riba-cbi-excel/run-sync": {
      "post": {
        "operationId": "run-sync-hardreset83-riba-cbi-excel",
        "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": {
          "receiptsFile": {
            "title": "Carica l'elenco delle ricevute",
            "type": "string",
            "description": "Excel (.xlsx), CSV o TXT con qualsiasi separatore, oppure JSON. Una riga per ricevuta, con la riga dei titoli. Le colonne si trovano dal titolo, in italiano o in inglese: cliente, codice fiscale o partita IVA, IBAN oppure ABI e CAB della banca del cliente, importo, scadenza, numero e data della fattura oppure descrizione. Facoltative: indirizzo, CAP, comune, provincia, banca, codice cliente, numero ricevuta."
          },
          "receiptsUrls": {
            "title": "Link agli elenchi",
            "type": "array",
            "description": "Link diretti (https) a elenchi Excel, CSV o JSON, per esempio da Make, Zapier, n8n o da una cartella nel cloud. Tutti gli elenchi insieme fanno un solo file.",
            "items": {
              "type": "string"
            }
          },
          "receiptsContent": {
            "title": "Oppure incolla l'elenco",
            "type": "string",
            "description": "Incolla le righe di un CSV o di un foglio Excel (le celle copiate sono separate da tabulazioni), con la riga dei titoli. È già compilato con un elenco d'esempio per provare lo strumento con un clic: l'esempio è gratis, e non si usa quando carichi un elenco o aggiungi un link."
          },
          "receipts": {
            "title": "Oppure le ricevute in JSON",
            "type": "array",
            "description": "Per le API e gli agenti AI: [{\"name\": \"Esempio Edilizia S.r.l.\", \"taxCode\": \"04512340003\", \"abi\": \"03069\", \"cab\": \"01600\", \"amount\": 1220.00, \"dueDate\": \"2026-12-31\", \"invoiceNumber\": \"2026/118\", \"invoiceDate\": \"2026-10-30\"}]. Altre chiavi: iban (al posto di abi e cab), bank, description, street, postCode, town, province, customerCode, receiptNumber."
          },
          "creditorName": {
            "title": "Ragione sociale",
            "type": "string",
            "description": "Il nome della tua azienda, come lo vedono i clienti. Già compilato con un esempio."
          },
          "creditorTaxCode": {
            "title": "Partita IVA o codice fiscale",
            "type": "string",
            "description": "Della tua azienda: la banca lo controlla. Già compilato con un esempio: scrivi il tuo."
          },
          "creditorIban": {
            "title": "IBAN del tuo conto",
            "type": "string",
            "description": "Il conto su cui arrivano i soldi delle Ri.Ba., in una banca italiana: è la banca a cui presenti il file. Già compilato con un esempio: scrivi il tuo."
          },
          "siaCode": {
            "title": "Codice SIA",
            "type": "string",
            "description": "5 lettere o cifre: te lo dà la tua banca quando attivi il servizio Ri.Ba. o il CBI (è nel contratto o nell'home banking). Già compilato con un esempio: scrivi il tuo."
          },
          "creditorStreet": {
            "title": "Indirizzo (facoltativo)",
            "type": "string",
            "description": "La via e il numero della tua azienda: il cliente li vede sulla ricevuta."
          },
          "creditorPostCode": {
            "title": "CAP (facoltativo)",
            "type": "string",
            "description": "Il CAP della tua sede, 5 cifre."
          },
          "creditorTown": {
            "title": "Comune (facoltativo)",
            "type": "string",
            "description": "Il comune della tua sede."
          },
          "creditorProvince": {
            "title": "Provincia (facoltativo)",
            "type": "string",
            "description": "La sigla, come MI o RM."
          },
          "dueDate": {
            "title": "Scadenza delle righe senza scadenza",
            "type": "string",
            "description": "Facoltativa: la scadenza delle righe che non ne hanno una. Una scadenza nell'elenco vince."
          },
          "presentationDate": {
            "title": "Giorno in cui presenti il file in banca",
            "type": "string",
            "description": "Vuoto: oggi. Le scadenze si controllano da questo giorno."
          },
          "minimumDays": {
            "title": "Giorni lavorativi prima della scadenza",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Quanti giorni lavorativi prima della scadenza la tua banca vuole le Ri.Ba. (di solito da 10 a 12). Le ricevute che scadono prima hanno un avviso. 0: nessun controllo.",
            "default": 10
          },
          "skipInvalidRows": {
            "title": "Lascia fuori le righe con errori",
            "type": "boolean",
            "description": "Spento (consigliato): se una riga ha un errore il file non si crea, e il dataset e REPORT.xlsx dicono cosa correggere, gratis. Acceso: il file si crea con le righe senza errori, e le altre sono elencate come errori.",
            "default": false
          },
          "language": {
            "title": "Lingua del report",
            "enum": [
              "it",
              "en"
            ],
            "type": "string",
            "description": "Titoli delle colonne, errori e avvisi nel dataset, in REPORT.xlsx e nel messaggio finale.",
            "default": "it"
          },
          "columns": {
            "title": "Titoli delle colonne (facoltativo)",
            "type": "object",
            "description": "Solo se una colonna non si trova dal titolo: {\"name\": \"Anagrafica\", \"amount\": \"Imp. EUR\", \"dueDate\": \"Data scad.\"}. Chiavi: name, taxCode, iban, abi, cab, bank, amount, dueDate, invoiceNumber, invoiceDate, description, street, postCode, town, province, customerCode, receiptNumber, currency."
          },
          "failIfNoFile": {
            "title": "Esecuzione fallita se il file non si crea",
            "type": "boolean",
            "description": "Per le automazioni: l'esecuzione finisce come fallita quando il file non si crea, così Make, Zapier o n8n si fermano. Spento: l'esecuzione riesce e SUMMARY dice 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}