Docs

Update Extracted Line

PATCH /extractions/{extractionId}/lines/{lineId}

PATCH/extractions/{extractionId}/lines/{lineId}

Edits a line's description, quantity, count, unit, prices and group (omitted count and unit are kept), and can change its routing and match in the same call: kind (Resource or Expense), matchState (Confirmed, Overridden, Unmatched or ToCreate) with the need and proposed resource type and variant, and rateCardDecision (Accept or Decline). Omitted kind, matchState and rateCardDecision are left unchanged, and nothing is written to a rate card until commit. Setting kind Expense clears the line's resource match, so send it without a need or match in the same call. The system-added balance line (the unexplained residual) cannot be changed. 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

FieldTypeRequiredDescription
extractionIduuidRequired
lineIduuidRequired

Request Body

FieldTypeRequiredDescription
descriptionstringOptional
quantitynumberOptional
unitPricenumberOptional
lineTotalnumberOptional
countnumberOptional
unitstringOptional
extractedFinancialLineGroupIduuidOptional
procurementResourceIduuidOptional
resourceTypeIduuidOptional
resourceVariantIduuidOptional
matchStatestringOptional
rateCardDecisionstringOptional
kindstringOptional