---
title: "Audit-proof restatement of a checked invoice"
method: GET
path: "/v1/price-baseline/comparisons/{id}/proof-invoice"
tags: ["Contract Pricing"]
---

# Audit-proof restatement of a checked invoice

`GET /v1/price-baseline/comparisons/{id}/proof-invoice`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/price-baseline/comparisons/{id}/proof-invoice`
- Auth: HTTP bearer

The invoice the contract supports for the checked billing period, restated line by line from the stored comparison: every line at the contract's price, each input with its source (contract passage, publisher line and URL, or the biller's invoice), the checks that say what still keeps it from being audit-proof, and a sha256 hash over the amounts. Returned as structured data and as self-contained HTML. No model call is made. `{id}` is a comparison id.

## Path parameters

- `id` string, uuid, required

## Response `200`

The restated invoice.

- object
  - `invoice` PriceBaselineProofInvoice: The invoice the contract supports for a checked billing period.
    - `comparison_id` string, uuid
    - `model_id` string, uuid
    - `invoice_document_id` string, uuid
    - `engine_version` integer
    - `issuer` string, nullable
    - `customer` string, nullable
    - `customer_number` string, nullable
    - `site` string, nullable
    - `contract_number` string, nullable
    - `contract_label` string
    - `restates` object: The biller's invoice this restates.
      - `invoice_number` string, nullable
      - `invoice_date` string, nullable
      - `document` string, nullable
    - `period_from` string, nullable
    - `period_to` string, nullable
    - `currency` string, nullable
    - `lines` object[]
      - `label` string
      - `component` string, nullable
      - `period_from` string, nullable
      - `period_to` string, nullable
      - `quantity` number, nullable
      - `quantity_unit` string, nullable
      - `unit_price` number, nullable: The contract's price for the period, in `price_unit`.
      - `price_unit` string, nullable
      - `amount` number, nullable: The amount the contract supports.
      - `billed_amount` number, nullable
      - `delta` number, nullable: `amount` minus `billed_amount`; positive means the biller billed too little.
      - `formula` string, nullable
      - `inputs` object[]
        - `symbol` string
        - `label` string
        - `value` number, nullable
        - `unit` string, nullable
        - `period` string, nullable: The reference months an index value was read for; null for a contract constant.
        - `series` string, nullable
        - `source` PriceBaselineProofSource, nullable
          - `ref` string: Numbered as the annex prints it (`S1`, `S2`, ...).
          - `kind` 'contract' | 'published' | 'invoice' | 'assumed'
          - `what` string
          - `document_id` string, uuid, nullable
          - `document` string, nullable
          - `url` string, nullable
          - `quote` string, nullable
          - `verified` boolean
      - `verdict` 'match' | 'underbilled' | 'overbilled' | 'not_comparable'
      - `unbilled` boolean
      - `independent` boolean
      - `quantity_source` PriceBaselineProofSource, nullable
        - `ref` string: Numbered as the annex prints it (`S1`, `S2`, ...).
        - `kind` 'contract' | 'published' | 'invoice' | 'assumed'
        - `what` string
        - `document_id` string, uuid, nullable
        - `document` string, nullable
        - `url` string, nullable
        - `quote` string, nullable
        - `verified` boolean
      - `clause_source` PriceBaselineProofSource, nullable
        - `ref` string: Numbered as the annex prints it (`S1`, `S2`, ...).
        - `kind` 'contract' | 'published' | 'invoice' | 'assumed'
        - `what` string
        - `document_id` string, uuid, nullable
        - `document` string, nullable
        - `url` string, nullable
        - `quote` string, nullable
        - `verified` boolean
    - `totals` object
      - `net` number
      - `billed_net` number, nullable
      - `delta` number
      - `tax_rate` number, nullable
      - `tax` number, nullable
      - `gross` number, nullable
    - `checks` object[]
      - `key` 'lines_priced' | 'indices_published' | 'no_assumptions' | 'contract_values_quoted' | 'quantities_evidenced' | 'periods_priced' | 'no_open_questions' | 'engine_current'
      - `label` string
      - `passed` boolean
      - `detail` string, nullable
    - `audit_proof` boolean
    - `sources` PriceBaselineProofSource[]
      - `ref` string: Numbered as the annex prints it (`S1`, `S2`, ...).
      - `kind` 'contract' | 'published' | 'invoice' | 'assumed'
      - `what` string
      - `document_id` string, uuid, nullable
      - `document` string, nullable
      - `url` string, nullable
      - `quote` string, nullable
      - `verified` boolean
    - `hash` string: sha256 over the lines, their inputs and the engine version.
  - `html` string: Self-contained HTML rendering of `invoice`.

## Other responses

- `400`: The request is invalid.
- `404`: The requested resource was not found.

## Changes

- **2026-10-28** `0a485a46163e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/price-baseline/comparisons/:id/proof-invoice/get.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
