Skip to main content

Invoices and Their Contracts

List the invoices found, find new ones, preview the contracts an invoice may bill and assign the right one, through the /v1/price-baseline API.

Every invoice found is matched to the contract it bills and checked against that contract's prices. GET …/invoices/{documentId}/match previews the candidate contracts and changes nothing; PUT …/invoices/{documentId} assigns one. Writes need apps:price-baseline:write.

Endpoints

GET/v1/price-baseline/needed

Parameters

yearsstringComma-separated years.
GET/v1/price-baseline/invoices

Parameters

filterstringThe tab, e.g. unmatched.
limitintegerAt most 500.
offsetintegerInvoices to skip.
POST/v1/price-baseline/invoices/scan
GET/v1/price-baseline/invoices/{documentId}/match

Parameters

documentId*stringPath. The invoice document id.
PUT/v1/price-baseline/invoices/{documentId}

Parameters

documentId*stringPath. The invoice document id.

Body

model_idstringThe contract, or null to match again.
skipbooleantrue: not a bill.