{
  "openapi": "3.0.1",
  "info": {
    "title": "Peppol Participant Lookup: is this company on Peppol?",
    "description": "Check if Belgian, Dutch, French or Norwegian companies are registered on Peppol e-invoicing, via Peppol's public SML DNS lookup (not the Peppol Directory). Bulk KBO, VAT, KVK, SIREN/SIRET or org numbers in; registered yes/no and SMP provider out.",
    "version": "0.0",
    "x-build-id": "qdzM1hh8aQMiFxTgv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/goobertje~peppol-participant-lookup/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-goobertje-peppol-participant-lookup",
        "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/goobertje~peppol-participant-lookup/runs": {
      "post": {
        "operationId": "runs-sync-goobertje-peppol-participant-lookup",
        "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/goobertje~peppol-participant-lookup/run-sync": {
      "post": {
        "operationId": "run-sync-goobertje-peppol-participant-lookup",
        "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",
        "required": [
          "identifiers"
        ],
        "properties": {
          "identifiers": {
            "title": "Identifiers",
            "type": "array",
            "description": "Company identifiers to check, 1 to 5000. Accepted forms: a full participant id \"iso6523-actorid-upis::0208:0403199702\", a scheme and value \"0208:0403199702\", or a bare number that is read with the default scheme below. Spaces, dots and dashes are removed (\"BE0403.199.702\" works). Check digits are verified; invalid entries give a free 'invalid_identifier' row. Duplicates are checked once. Example: [\"0403199702\", \"9925:be0403199702\"].",
            "items": {
              "type": "string"
            }
          },
          "defaultScheme": {
            "title": "Default scheme for bare numbers",
            "enum": [
              "0208",
              "9925",
              "0106",
              "0190",
              "0009",
              "0002",
              "0192",
              "0088"
            ],
            "type": "string",
            "description": "How a bare number (one without a scheme prefix) is interpreted. Default: 0208 (Belgian enterprise number, KBO/BCE).",
            "default": "0208"
          },
          "belgiumCheckBothSchemes": {
            "title": "Belgium: check both schemes",
            "type": "boolean",
            "description": "For a Belgian enterprise number (scheme 0208 or 9925), also check the other scheme (0208:0403199702 and 9925:be0403199702) and report registered if either resolves. Both ids appear in registeredUnder. Default: true.",
            "default": true
          },
          "includeDocumentTypes": {
            "title": "Also list document types (SMP)",
            "type": "boolean",
            "description": "For registered participants, try to read the document type ids from the SMP. The Actor first fetches the SMP host's robots.txt and obeys it; most SMPs disallow automated access, and those rows get documentTypesStatus 'smp_disallows_automated_access'. Slower: at most one request per second per SMP host. Default: false.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum answers (charged)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many checked participants are delivered and charged, 1 to 100000. Status rows (invalid identifier, lookup error) are free and do not count. Default: 1000.",
            "default": 1000
          },
          "concurrency": {
            "title": "Parallel DNS lookups",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many identifiers are resolved at the same time, 1 to 20. DNS answers are fast, so the default is fine. Default: 5.",
            "default": 5
          },
          "smlZone": {
            "title": "SML DNS zone (advanced)",
            "type": "string",
            "description": "DNS zone of the Peppol SML that is queried. Leave empty for the production zone. Use participant.sml.test.tech.peppol.org for the Peppol test network. Default: participant.sml.prod.tech.peppol.org.",
            "default": "participant.sml.prod.tech.peppol.org"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}