GET/extractions/{extractionId}
Returns one extraction in full: target (order or expense), state (Pending, Matching, Ready, NoLineItems,
Flagged, Failed or Committed), failure details, header fields, gate checks, groups, lines (each with its count and
unit) with proposed resource matches and rate card differences, adjustments, source page images and the original file. A line's
rate card difference compares its unit price with the rate of the order line on the matched need, as the order's latest
revision froze it (the live rate on an order with no revision); backfill is offered only to that revision's single
card (NoSingleResolvedCard when it priced the line from several cards or predates person rates). A discarded extraction
is deleted, so it has no state. Needs Order.View on its order (Expense.View at the event for an expense extraction). The id comes from Orders_GetExtractions or
Orders_CreateExtraction.
Path Parameters
| Field | Type | Required | Description |
|---|
| extractionId | uuid | Required | |
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 | |