Contract Pricing

Check an invoice against a price model

Changed on

Reads the invoice document with the extraction model, recomputes each billed price from the contract (each invoice month priced by the version in force then) and stores the comparison. Index values the invoice prints are kept as invoice-sourced values and flagged as not independent. The same invoice read against the same contract versions is read once; a repeat check reuses the stored extract. The call runs the extraction model in the request.

post/v1/price-baseline/models/{id}/compare

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Path parameters

id, string uuid required

Request body

object required
invoice_document_id, string uuid required

Invoice document of the workspace.

Response

The stored comparison.

PriceBaselineComparison required

One invoice recomputed against a model.

id, string uuid
customer_id, string uuid
model_id, string uuid
invoice_document_id, string uuid
invoice, PriceBaselineInvoiceExtract

What the extraction read from an invoice.

prices, PriceBaselineComponentPrice[]
comparison, PriceBaselineInvoiceComparison
underbilled, number
overbilled, number
currency, string nullable

ISO 4217 code of underbilled, overbilled and every amount in comparison.

engine_version, integer nullable

Pricing engine version the comparison was computed under.

created_at, string date-time

Changes