changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "additionalProperties": true,
+ "description": "One match per input record, in input order.",
+ "properties": {
+ "asOf": {
+ "description": "What to cite: registry (ONRC snapshot date), financialYear (fiscal year of the figures), anaf (day of the ANAF data), snapshot, published, source.",
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "attribution": {
+ "description": "The credit line to keep when redistributing the data (CC BY 4.0).",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "error": {
+ "description": "Set only when there is no answer (empty_query, invalid_cui, data_unavailable, plan_required ...); such a call is not counted.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "errors": {
+ "description": "Rows that are input errors (nothing to match on).",
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "fields": {
+ "description": "The company fields kept when fields or compact trimmed the rows.",
+ "items": {
+ "type": "string"
+ },
+ "type": [
+ "array",
+ "null"
+ ]
+ },
+ "matched": {
+ "description": "Rows matched to a firm.",
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "message": {
+ "description": "A sentence for the caller.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "metering": {
+ "description": "What the batch cost: rows, counted, notCounted (input-error rows are not counted) and the rule.",
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "noMatch": {
+ "description": "Rows with no match above the threshold.",
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "results": {
+ "description": "Per row: row, input, status (matched or no_match), match {cui, companyName, confidence, matchedOn}, company, or candidates.",
+ "items": {
+ "additionalProperties": true,
+ "description": "One input row's answer.",
+ "properties": {
+ "candidates": {
+ "description": "Best candidates when no_match.",
+ "type": [
+ "array",
+ "null"
+ ]
+ },
+ "company": {
+ "additionalProperties": true,
+ "description": "A company record: companyName, cui, registrationCode, registrationDate (DD/MM/YYYY), legalForm, euid, address, county, city, website, phone, caenActivities [{code, activity}], directors, status [{code, name}], latestFinancials {year, revenue, netResult, employees; RON}, anaf {mainCaen, vatPayer, eFactura, inactive}, risk {level, label, reasons, isLead}, source, asOf, and score/match on name searches. With fields or compact, only the requested keys.",
+ "type": "object"
+ },
+ "input": {
+ "description": "The row as read: name, county, domain, cui, ref.",
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "match": {
+ "description": "The firm matched: cui, companyName, confidence, matchedOn.",
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "ref": {
+ "description": "Your own id for the row, echoed back.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "row": {
+ "description": "Position of the row in the input (0-based).",
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "status": {
+ "description": "matched, no_match, or an error status.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "type": [
+ "array",
+ "null"
+ ]
+ },
+ "source": {
+ "description": "Data source: onrc (registry) or mfp (Ministry of Finance filings).",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "threshold": {
+ "description": "Confidence a row needs to be matched (0-1).",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "total": {
+ "description": "Number of input rows.",
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "warnings": {
+ "description": "Notes on how the request was read (a clamped limit, a widened CAEN code, an ignored field).",
+ "items": {
+ "type": "string"
+ },
+ "type": [
+ "array",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+}