PATCH/extractions/{extractionId}
Overwrites the extraction's header (document type, pricing level of Line, Group or Document, vendor, printed
subtotal and total, received date), so send the complete header, and returns the updated extraction. documentDate and
vendorName (as printed on the document) are kept when omitted. A documentType of Receipt is refused on an order extraction.
Adjustments (label and signed amount; negative is a discount): omit to leave them, send an empty list to clear them, or send a list to replace them. Only while
the extraction is Ready, Flagged or NoLineItems. Needs Order.Edit on its order (Expense.Edit at the event for an expense extraction).
Path Parameters
| Field | Type | Required | Description |
|---|
| extractionId | uuid | Required | |
Request Body
| Field | Type | Required | Description |
|---|
| documentType | string | Optional | |
| pricingLevel | string | Optional | |
| matchedCollaboratorRecordId | uuid | Optional | |
| printedSubtotal | number | Optional | |
| printedTotal | number | Optional | |
| receivedDate | date-time | Optional | |
| documentDate | JsonElement | Optional | |
| vendorName | JsonElement | Optional | |
| adjustments | UpdateFinancialDocumentExtractionRequestAdjustment[] | Optional | |
| Field | Type | Description |
|---|
| label | string| null | |
| amount | number | |
Response
| Field | Type | Description |
|---|
| id | uuid | |
| orderId | uuid| null | |
| expenseId | uuid| null | |
| state | string| null | |
| createdAt | date-time | |
| failedPhase | string| null | |
| failureReason | string| null | |
| failureCode | string| null | |
| documentType | string| null | |
| pricingLevel | string| null | |
| matchedCollaboratorRecordId | uuid| null | |
| printedSubtotal | number| null | |
| printedTotal | number| null | |
| receivedDate | date-time| null | |
| documentDate | date| null | |
| vendorName | string| null | |
| pageCount | integer | |
| modelTierUsed | string| null | |
| committedOrderDocumentId | uuid| null | |
| targetOrderDocumentId | uuid| null | |
| gate | GetFinancialDocumentExtractionResponseGateInfo| null | |
| groups | GetFinancialDocumentExtractionResponseGroup[]| null | |
| lines | GetFinancialDocumentExtractionResponseLine[]| null | |
| adjustments | GetFinancialDocumentExtractionResponseAdjustment[]| null | |
| sourcePages | GetFinancialDocumentExtractionResponseSourcePage[]| null | |
| originalFile | GetFinancialDocumentExtractionResponseOriginalFileInfo| null | |
| Field | Type | Description |
|---|
| tieOutPassed | boolean | |
| tieOutDelta | number| null | |
| tieOutBasis | string| null | |
| tieOutApplicable | boolean | |
| traceabilityPassed | boolean | |
| untraceableLineCount | integer | |
| rowCountWarning | boolean | |
| detectedRowCount | integer| null | |
| bestTableAdjustedRowCount | integer| null | |
| emittedLineCount | integer | |
| evaluatedAt | date-time | |
| allPassed | boolean | |
| Field | Type | Description |
|---|
| id | uuid | |
| name | string| null | |
| subtotal | number| null | |
| index | integer | |
| Field | Type | Description |
|---|
| id | uuid | |
| index | integer | |
| description | string| null | |
| quantity | number | |
| count | number | |
| unit | string| null | |
| unrecognisedUnit | string| null | |
| unitPrice | number| null | |
| lineTotal | number| null | |
| extractedFinancialLineGroupId | uuid| null | |
| sourcePageNumber | integer | |
| isTraceable | boolean | |
| isBalanceLine | boolean | |
| matchState | string| null | |
| proposedResourceTypeId | uuid| null | |
| proposedResourceVariantId | uuid| null | |
| proposedResourceName | string| null | |
| proposedResourceVariantName | string| null | |
| procurementResourceId | uuid| null | |
| matchSource | string| null | |
| userEdited | boolean | |
| rateCardDifference | GetFinancialDocumentExtractionResponseRateCardDifferenceInfo| null | |
| kind | string| null | |
| Field | Type | Description |
|---|
| label | string| null | |
| amount | number| null | |
| Field | Type | Description |
|---|
| pageNumber | integer | |
| uri | uri| null | |
| Field | Type | Description |
|---|
| fileId | uuid | |
| fileName | string| null | |
| Field | Type | Description |
|---|
| currentCost | number| null | |
| extractedCost | number| null | |
| decision | string| null | |
| canBackfill | boolean | |
| backfillBlockedReason | string| null | |
| ratePeriod | string| null | |
| byTotal | boolean | |