{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Compliance Toolkit — VAT, IBAN, Sanctions & E-Invoices",
    "description": "Validate EU VAT IDs and IBANs, screen EU/UN/UK sanctions, assess counterparties, determine EU VAT treatment, and validate EN 16931 e-invoices. Batch up to 100 checks with sourced results and signed receipts.",
    "version": "0.1",
    "x-build-id": "SbqLaNwltDJmycCu1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/eucompliance~eu-compliance-toolkit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-eucompliance-eu-compliance-toolkit",
        "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/eucompliance~eu-compliance-toolkit/runs": {
      "post": {
        "operationId": "runs-sync-eucompliance-eu-compliance-toolkit",
        "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/eucompliance~eu-compliance-toolkit/run-sync": {
      "post": {
        "operationId": "run-sync-eucompliance-eu-compliance-toolkit",
        "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": [
          "checks"
        ],
        "properties": {
          "checks": {
            "title": "Checks",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Add one row per check. Only fields relevant to the selected operation are used.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "operation": {
                  "title": "Operation",
                  "description": "Type of compliance check.",
                  "type": "string",
                  "editor": "select",
                  "enum": [
                    "counterparty",
                    "sanctions",
                    "vat",
                    "iban",
                    "vat_rules",
                    "einvoice"
                  ],
                  "enumTitles": [
                    "Counterparty due diligence",
                    "EU/UN/UK sanctions screening",
                    "EU VAT ID / VIES",
                    "IBAN validation",
                    "EU VAT treatment & EN 16931 codes",
                    "EN 16931 e-invoice validation"
                  ],
                  "default": "counterparty"
                },
                "reference": {
                  "title": "Your reference",
                  "description": "Optional ID copied into the result for joining it to your workflow.",
                  "type": "string",
                  "editor": "textfield",
                  "maxLength": 200
                },
                "name": {
                  "title": "Legal name",
                  "description": "Company or person name for sanctions/counterparty screening.",
                  "type": "string",
                  "editor": "textfield",
                  "maxLength": 300
                },
                "country": {
                  "title": "Country",
                  "description": "ISO-2 country code, for example AT or DE.",
                  "type": "string",
                  "editor": "textfield",
                  "pattern": "^[A-Za-z]{2}$"
                },
                "vat": {
                  "title": "VAT ID",
                  "description": "EU VAT identification number including country prefix.",
                  "type": "string",
                  "editor": "textfield",
                  "maxLength": 40
                },
                "iban": {
                  "title": "IBAN",
                  "description": "IBAN with or without spaces.",
                  "type": "string",
                  "editor": "textfield",
                  "maxLength": 80
                },
                "supplierCountry": {
                  "title": "Supplier country",
                  "description": "ISO-2 supplier country for VAT rules.",
                  "type": "string",
                  "editor": "textfield",
                  "pattern": "^[A-Za-z]{2}$"
                },
                "customerCountry": {
                  "title": "Customer country",
                  "description": "ISO-2 customer country for VAT rules.",
                  "type": "string",
                  "editor": "textfield",
                  "pattern": "^[A-Za-z]{2}$"
                },
                "b2b": {
                  "title": "Business customer (B2B)",
                  "description": "Disable for consumer sales.",
                  "type": "boolean",
                  "default": true
                },
                "supplyType": {
                  "title": "Supply type",
                  "description": "Service or goods.",
                  "type": "string",
                  "editor": "select",
                  "enum": [
                    "service",
                    "goods"
                  ],
                  "enumTitles": [
                    "Service",
                    "Goods"
                  ],
                  "default": "service"
                },
                "invoiceXml": {
                  "title": "E-invoice XML",
                  "description": "UBL, CII, XRechnung or ZUGFeRD/Factur-X XML content.",
                  "type": "string",
                  "editor": "textarea",
                  "maxLength": 5000000
                }
              },
              "required": [
                "operation"
              ]
            },
            "default": [
              {
                "operation": "counterparty",
                "reference": "supplier-1",
                "name": "Example GmbH",
                "vat": "ATU12345678",
                "country": "AT"
              }
            ]
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}