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/neededParameters
yearsstringComma-separated years.
GET
/v1/price-baseline/invoicesParameters
filterstringThe tab, e.g.
unmatched.limitintegerAt most 500.
offsetintegerInvoices to skip.
POST
/v1/price-baseline/invoices/scanGET
/v1/price-baseline/invoices/{documentId}/matchParameters
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.