{
  "openapi": "3.0.1",
  "info": {
    "title": "Belgian E-Invoicing Change Monitor: Peppol & Software",
    "description": "Monitors the official Belgian B2B e-invoicing sources and reports what changed: official news and FAQ pages, the FPS Finance list of compliant software, and Peppol certified service providers — with dates, change type and source provenance.",
    "version": "0.1",
    "x-build-id": "t6aBrpG6kZkGPmxxw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/codeclouds~be-einvoice-change-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-codeclouds-be-einvoice-change-monitor",
        "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/codeclouds~be-einvoice-change-monitor/runs": {
      "post": {
        "operationId": "runs-sync-codeclouds-be-einvoice-change-monitor",
        "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/codeclouds~be-einvoice-change-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-codeclouds-be-einvoice-change-monitor",
        "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": {
          "bron": {
            "title": "Bron (Source)",
            "enum": [
              "alle",
              "portaal",
              "softwarelijst",
              "peppol"
            ],
            "type": "string",
            "description": "Welke bron deze run volgt. 'portaal' = nieuws/FAQ/artikelen van einvoice.belgium.be (en vindt de link naar de softwarelijst). 'softwarelijst' = de officiele xlsx-lijst met conforme e-invoicingsoftware. 'peppol' = gecertificeerde Peppol-serviceproviders op peppol.org. 'alle' = alle drie.",
            "default": "alle"
          },
          "talen": {
            "title": "Portal languages",
            "type": "array",
            "description": "Taalversies van het officiele portaal die gevolgd worden. Elke taal kost extra bronrequests (robots.txt schrijft Crawl-delay 2 voor). 'nl' + 'en' dekt de meeste compliance-tekst; voeg 'fr' toe voor volledige drietaligheid.",
            "items": {
              "type": "string",
              "enum": [
                "nl",
                "fr",
                "en"
              ]
            },
            "default": [
              "nl",
              "fr",
              "en"
            ]
          },
          "alleenWijzigingen": {
            "title": "Alleen wijzigingen (changes only)",
            "type": "boolean",
            "description": "false = volledige actuele stand, elk record met zijn wijzigingstype (handig voor een losse aanroep of AI-agent). true = alleen nieuwe, gewijzigde en verdwenen records t.o.v. de vorige run; zet dit aan voor een scheduled run. De vergelijking gebeurt via een named key-value store die over runs heen bewaard wordt.",
            "default": false
          },
          "nieuwsPaginas": {
            "title": "News pages per language",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Aantal pagina's van de nieuwsoverzichtslijst per taal die worden doorlopen (0 = geen nieuws volgen, alleen FAQ/artikel). 1 = alleen de nieuwste items.",
            "default": 1
          },
          "maxDocumenten": {
            "title": "Max documents per category per language",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Bovengrens op het aantal opgehaalde documenten per categorie (nieuws, FAQ) per taal. Houdt een run betaalbaar bij een grote FAQ-portfolio.",
            "default": 40
          },
          "sinds": {
            "title": "Sinds (publication date)",
            "type": "string",
            "description": "Optionele YYYY-MM-DD. Lever alleen portaaldocumenten waarvan de bron-datum op of na deze dag valt. Geldt niet voor software- en Peppol-records (die hebben geen publicatiedatum)."
          },
          "fragmentLengte": {
            "title": "Fragment length",
            "minimum": 0,
            "maximum": 400,
            "type": "integer",
            "description": "Maximale lengte in tekens van het korte letterlijke bewijsfragment per document. 0 = geen fragment. Bewust kort: de voorwaarden van het portaal staan tekstreproductie alleen toe voor niet-commercieel gebruik.",
            "default": 200
          },
          "alleenBelgischeBtw": {
            "title": "Only Belgian VAT numbers",
            "type": "boolean",
            "description": "Filter de officiele softwarelijst op Belgische btw-nummers. De bron bevat ruim 320 Belgische en ruim 100 buitenlandse leveranciers; zet op false om alles te zien.",
            "default": true
          },
          "alleenServiceprovidersVoorBelgie": {
            "title": "Only service providers for Belgium",
            "type": "boolean",
            "description": "Filter de Peppol-lijst op serviceproviders uit België (bronterm 'Belgium').",
            "default": false
          },
          "contactgegevens": {
            "title": "Include contact names and emails",
            "type": "boolean",
            "description": "Lever ook de naam/e-mail van een contactpersoon (Peppol) en de klantcontact-mail van de softwareleverancier. Standaard uit omdat dit persoonsgegevens zijn (AVG).",
            "default": false
          },
          "crawlDelayMs": {
            "title": "Crawl delay (ms)",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Minimale pauze tussen twee bronrequests. robots.txt van einvoice.belgium.be schrijft Crawl-delay: 2 voor; niet verlagen bij publiek gedeelde IP's.",
            "default": 2000
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Bovengrens op het totaal aantal geleverde records in deze run.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}