Provenance

Every normalized figure Arche serves was mapped from a concept a filer tagged in an XBRL document. These routes expose that mapping, one metric at a time, so a number in your model can be answered for rather than trusted.

They key off a statement's identity: the company's CIK, the filing's accession_id, and the statement's statement_type, fiscal_year and fiscal_period. Every statement returned by /v1/edgar/companies/{cik}/statements carries all five.

Why trace a figure

Normalization is where a dataset either earns trust or quietly loses it. Two filers tag revenue with different concepts; one restates; one reports a segment breakdown the mapping has to choose among. When a figure looks wrong, the question is never "is the API up" — it is "which tag did this come from, and was a rule applied to it".

Metric provenance

The fullest answer for one metric on one statement:

curl -X GET "https://api.arche.fi/v1/edgar/companies/0000320193/filings/0000320193-24-000123/statements/INCOME_STATEMENT/2024/FY/metrics/REVENUE/provenance" \
  -H "X-Api-Key: $ARCHE_API_KEY" \
  -H "X-Request-ID: $(uuidgen)" \
  -H "Accept: application/json"

Representative response:

{
  "data": {
    "cik": "0000320193",
    "statement_type": "INCOME_STATEMENT",
    "fiscal_year": 2024,
    "fiscal_period": "FY",
    "accession_id": "0000320193-24-000123",
    "metric": "REVENUE",
    "value": "391035000000.000000",
    "source_accession": "0000320193-24-000123",
    "filing_type": "10-K",
    "filing_date": "2024-11-01",
    "accepted_at": "2024-11-01T10:01:36Z",
    "source_line_item": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
    "source_xbrl_concept": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
    "mapping_type": "DIRECT",
    "override_applied": false,
    "override_reason": null,
    "calculation_steps": null,
    "source_context": null
  }
}

That answers the question end to end: this revenue figure is the us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax fact from accession 0000320193-24-000123, a 10-K accepted on 2024-11-01.

override_applied is the field to check before relying on a figure in an audit context. When it is true, override_reason names why, and the value you are holding is not the one the filer tagged.

Corrected values

A figure can come from a filed fact and still differ from the number in the filing. Normalization corrects two known tagging errors:

  • Name
    COST_OF_REVENUE_CREDIT_SIGN
    Type
    correction_rule
    Description

    The filer tagged a cost as a credit, so its sign was reversed.

  • Name
    REVENUE_RESIDUAL_TOP_LINE_REPLACED
    Type
    correction_rule
    Description

    The top line was first selected from a residual concept, and was replaced by the revenue the filer reported alongside its own gross profit.

Both leave value_origin as SOURCE, because both values come from a filed fact. To tell a corrected figure from an untouched one, read these fields on each fact in a statement's content.facts, returned with detail=true:

  • Name
    correction_rule
    Type
    string | null
    Description

    The correction applied to this value. null, the usual case, means the value is exactly as tagged.

  • Name
    as_filed_value
    Type
    decimal string | null
    Description

    The value as the filing tagged it, before the correction. null when the correction chose a different fact rather than changing the number.

  • Name
    as_filed_concept
    Type
    string | null
    Description

    The XBRL concept of the value that was replaced, when the correction chose a different fact.

A null in all three fields means no correction is recorded for the value.

Audit chain

A condensed view of the same lineage, plus the overrides that touched it:

curl -X GET "https://api.arche.fi/v1/edgar/companies/0000320193/filings/0000320193-24-000123/statements/INCOME_STATEMENT/2024/FY/metrics/REVENUE/audit-chain" \
  -H "X-Api-Key: $ARCHE_API_KEY" \
  -H "X-Request-ID: $(uuidgen)" \
  -H "Accept: application/json"

Representative response:

{
  "data": {
    "metric_name": "REVENUE",
    "cik": "0000320193",
    "statement_type": "INCOME_STATEMENT",
    "fiscal_year": 2024,
    "fiscal_period": "FY",
    "accession_id": "0000320193-24-000123",
    "filing_accession": "0000320193-24-000123",
    "xbrl_concept": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
    "mapping_type": "DIRECT",
    "overrides": [],
    "steps": [
      {
        "step": "SOURCE_FACT",
        "xbrl_concept": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
        "filing_accession": "0000320193-24-000123",
        "calculation_steps": null,
        "mapping_type": null,
        "applied_at": null,
        "reason": null,
        "value": null
      },
      {
        "step": "MAPPING",
        "xbrl_concept": null,
        "filing_accession": null,
        "calculation_steps": null,
        "mapping_type": "DIRECT",
        "applied_at": null,
        "reason": null,
        "value": null
      },
      {
        "step": "SERVED_VALUE",
        "xbrl_concept": null,
        "filing_accession": null,
        "calculation_steps": null,
        "mapping_type": null,
        "applied_at": null,
        "reason": null,
        "value": "391035000000.000000"
      }
    ]
  }
}

steps lists the chain in order: each source fact, the calculation for a derived figure, the mapping, each override in the order applied, and the value served. A link that was not recorded is left out.

Use the audit chain when you want a compact record to store next to a figure, and provenance when you are investigating one.

Fact revisions

Which individual facts one filing's statement changed, compared with the filing it revised:

curl -X GET "https://api.arche.fi/v1/edgar/companies/0000320193/filings/0000320193-24-000123/statements/INCOME_STATEMENT/2024/FY/fact-revisions" \
  -H "X-Api-Key: $ARCHE_API_KEY" \
  -H "X-Request-ID: $(uuidgen)" \
  -H "Accept: application/json"

items is empty for a version whose facts were never revised, which is the ordinary case. An empty list here is the answer "nothing was revised", not missing data — the same distinction the restatement timeline draws.

Override trace

Which mapping rules were evaluated for a statement identity, and what they did:

curl -X GET "https://api.arche.fi/v1/edgar/companies/0000320193/statements/overrides/trace?statement_type=INCOME_STATEMENT&fiscal_year=2024&fiscal_period=FY&accession_id=0000320193-24-000123" \
  -H "X-Api-Key: $ARCHE_API_KEY" \
  -H "X-Request-ID: $(uuidgen)" \
  -H "Accept: application/json"

Representative response:

{
  "data": {
    "cik": "0000320193",
    "statement_type": "INCOME_STATEMENT",
    "fiscal_year": 2024,
    "fiscal_period": "FY",
    "accession_id": "0000320193-24-000123",
    "gaap_concept": null,
    "canonical_metric_code": null,
    "dimension_key": null,
    "total_facts_evaluated": 0,
    "total_facts_remapped": 0,
    "total_facts_suppressed": 0,
    "rules": []
  }
}

Zero counts with an empty rules mean no override rule fired for that identity, which is what you want to see on a clean filing. Non-zero total_facts_remapped or total_facts_suppressed tells you the served statement differs from a literal reading of the filer's tags, and rules says which rules are responsible. gaap_concept, canonical_metric_code and dimension_key repeat the optional query parameters of the same names, which narrow the trace to one concept, metric or dimension; null means the trace covers every fact.

Reading null provenance

Several provenance fields can be null, and they mean different things:

  • Name
    source_line_item
    Type
    string | null
    Description

    The XBRL concept the value was read from, as the filer tagged it.

  • Name
    source_xbrl_concept
    Type
    string | null
    Description

    The concept the mapping selected for the metric. For an as-reported value it is usually the same concept as source_line_item, and it is populated for almost every value Arche serves.

  • Name
    mapping_type
    Type
    string | null
    Description

    How the value was obtained: DIRECT for a value read from one filed fact, CALCULATED for one derived from other facts. null only where normalization recorded no origin for the value.

  • Name
    calculation_steps
    Type
    array | null
    Description

    Populated only for a derived figure. null on an as-reported value, which is the stronger provenance of the two.

A null here is not a gap in the audit trail as long as source_accession and source_line_item are populated — together those identify the fact uniquely.

Was this page helpful?