{
  "openapi": "3.0.1",
  "info": {
    "title": "Romania Supplier Litigation Monitor (portal.just.ro)",
    "description": "Court cases of Romanian companies by CUI from portal.just.ro: case counts, the company's role, matter, stage and factual flags (insolvency as debtor, active defendant, tax and labor disputes). Monitor mode reports only new or changed cases.",
    "version": "0.1",
    "x-build-id": "2PTj9NOFCrgb28lRt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nocturntools~ro-supplier-litigation/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nocturntools-ro-supplier-litigation",
        "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/nocturntools~ro-supplier-litigation/runs": {
      "post": {
        "operationId": "runs-sync-nocturntools-ro-supplier-litigation",
        "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/nocturntools~ro-supplier-litigation/run-sync": {
      "post": {
        "operationId": "run-sync-nocturntools-ro-supplier-litigation",
        "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": [
          "cuis"
        ],
        "properties": {
          "cuis": {
            "title": "Company fiscal codes (CUI / CIF)",
            "type": "array",
            "description": "Romanian fiscal codes, one per line. Accepts \"RO14399840\", \"RO 14399840\" or \"14399840\"; 2 to 9 digits with a valid control digit. The company name is taken from the ANAF registry and searched on portal.just.ro. Invalid entries get INVALID_INPUT; natural persons (PFA / II / IF) are skipped and never searched. Duplicates are checked once. Maximum 1,000 per run.",
            "items": {
              "type": "string"
            }
          },
          "sinceYear": {
            "title": "Cases registered since (year)",
            "minimum": 2000,
            "maximum": 2100,
            "type": "integer",
            "description": "Only cases registered from 1 January of this year are searched. Default: the current year minus 5. In monitor mode, empty = the window saved by the monitor's first run (it does not move on 1 January); a different value re-bases the monitor without reporting differences caused only by the window change. Older cases that are still running are not included. A longer window means more requests for large companies (the portal returns at most 1,000 cases per query)."
          },
          "matters": {
            "title": "Matters (optional filter)",
            "type": "array",
            "description": "Keep only cases of these matters (counts, flags and case list). Empty = all matters, criminal cases included (only the case and the company's role, no other details).",
            "items": {
              "type": "string",
              "enum": [
                "Civil",
                "Litigiicuprofesionistii",
                "Faliment",
                "Contenciosadministrativsifiscal",
                "Litigiidemunca",
                "Asigurarisociale",
                "Penal",
                "ProprietateIntelectuala",
                "Minorisifamilie",
                "Dreptmaritimsifluvial",
                "Altematerii",
                "Insolventapersoaneifizice"
              ],
              "enumTitles": [
                "Civil",
                "Litigii cu profesioniștii (commercial)",
                "Faliment (insolvency)",
                "Contencios administrativ și fiscal (administrative / tax)",
                "Litigii de muncă (labor)",
                "Asigurări sociale (social security)",
                "Penal (criminal)",
                "Proprietate intelectuală (IP)",
                "Minori și familie (family)",
                "Drept maritim și fluvial (maritime)",
                "Alte materii (other)",
                "Insolvența persoanei fizice (personal insolvency)"
              ]
            },
            "default": []
          },
          "includeCaseList": {
            "title": "Include the case list",
            "type": "boolean",
            "description": "Add one entry per case (number, court, matter, stage, the company's role, last and next hearing). At most 1,000 cases per company, the most recently modified; counts and flags always use all cases. Off = only counts, flags and notes per company. The other parties, the subject and the solutions are never included.",
            "default": true
          },
          "monitorMode": {
            "title": "Monitor mode (only changes)",
            "type": "boolean",
            "description": "Compare with the previous monitor run and output only companies with changes: a new case, a case updated on the portal (new hearing, stage, decision…), a flag that appeared or disappeared, or a status change. The first run outputs everything (baseline). Later runs first ask the portal only for cases modified since the last check, so unchanged companies take one quick request. Unchanged companies are not written and not charged.",
            "default": false
          },
          "monitorId": {
            "title": "Monitor name",
            "pattern": "^[A-Za-z0-9-]{1,40}$",
            "type": "string",
            "description": "Monitor mode only. Name of the saved state, so you can monitor several lists. Letters, digits and dashes, max. 40 characters. Stored in your key-value store \"ro-supplier-litigation-state\" (per company only case numbers, courts and modification times; never other parties; kept under ~8 MB).",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}