Contract Pricing
Check an invoice against a price model
Changed onReads 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 URLhttps://api.talonic.com
- AuthHTTP 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.
Price Baseline Comparison required
One invoice recomputed against a model.
id, string uuid
customer_id, string uuid
model_id, string uuid
invoice_document_id, string uuid
invoice, Price Baseline Invoice Extract
What the extraction read from an invoice.
prices, Price Baseline Component Price[]
comparison, Price Baseline Invoice Comparison
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
- info
endpoint added
- info