Skip to main content

Update a line-item

PUT 

/api/v8/partner/documents/:document_id/line-items/:line_item_id

Veryfi's Update a Document by ID endpoint allows you to change a Document that Veryfi's Machine Learning models have already processed. This feature will enable users to update Documents previously processed by Veryfi to ensure data extraction accuracy. Updating a Document is especially useful for correcting mistakes and updating information over time. By changing a processed Document, Veryfi's Machine Learning models can re-learn the updated information, allowing them to stay accurate and up-to-date.

Request

Path Parameters

    document_id int64required

    The unique identifier of the document.

    line_item_id int64required

    The unique identifier of the line item.

Body

    category object

    The category is taken from the line item with the same SKU and/or description. Otherwise from the root category field.

    anyOf

    string

    country_of_origin object

    The country of manufacture, production, design, or brand origin where the product comes from.

    anyOf

    string

    date object

    The date found on the document and associated with the line item in ISO 8601 format.

    anyOf

    string

    description object

    The product or service's extracted name or description excluding date and price.

    anyOf

    string

    discount_price object

    The lower price after discount.

    anyOf

    number

    discount_rate object

    The discount percentage that was applied to the line item.

    anyOf

    number

    discount object

    The amount deducted from the total price for the line item.

    anyOf

    number

    end_date object

    A service end date identified for the line item. An end date could be a flight arrival date or hotel departure date in ISO 8601 format.

    anyOf

    string

    hsn object

    The Harmonized System Nomenclature (HSN) found for the line item.

    anyOf

    string

    order integer
    lot object

    The batch or lot number for the line item.

    anyOf

    string

    price object

    The unit price for the line item.

    anyOf

    number

    quantity object

    The amount or number of units for the line item. This value is computable.

    anyOf

    number

    reference object
    anyOf

    string

    section object

    A grouping indicated by formatted text on the receipt or invoice.

    anyOf

    string

    sku object

    The Stock Keeping Unit (SKU) is the unique code associated with the product for the line item.

    anyOf

    string

    start_date object

    A service start date identified for the line item. A start date could be a flight departure date or hotel arrival date in ISO 8601 format.

    anyOf

    string

    tags string[]

    Possible values: non-empty

    A user-defined list of identifiers that help to categorize or flag particular types of line items.

    tax_code object

    The classification of goods and services for tax purposes for the line item.

    anyOf

    string

    manufacturer object

    The name of the manufacturer of the product for the line item.

    anyOf

    string

    tax_rate object

    The percent at which the individual or corporation is taxed.

    anyOf

    number

    tax object

    The amount at which the individual or corporation is taxed for the product on this line item.

    anyOf

    number

    total object

    The total price for this line item. This value is computable.

    anyOf

    number

    subtotal object

    New, added 2023-07-10. The total of a set of numbers that will later be added to another set of numbers, such as tip and tax. This value is computable.

    anyOf

    number

    type object

    The classification of the product. The line type predicted by Veryfi, e.g. food.

    anyOf

    string

    unit_of_measure object

    The unit of measurement for this line item.

    anyOf

    string

    upc object

    The Universal Product Code (UPC), European Article Number (EAN), or Global Trade Item Number (GTIN) found for the line item on this document will be placed in this field.

    anyOf

    string

    weight object

    The weight of the item for the line item. Usually found on logistic invoices.

    anyOf

    string

Responses

Document's line-item

Schema
    id integerrequired

    The unique number created to identify the Line Item object.

    order integerrequired

    The value indicating the position of where the line item appears on the document.

    tags string[]

    Possible values: non-empty

    A user-defined list of identifiers that help to categorize or flag particular types of line items.

    text stringrequired

    Possible values: non-empty

    The complete text returned for the line item, including prices, dates, etc.

    type stringrequired

    Possible values: [room, tax, parking, service, fee, delivery, product, food, alcohol, tobacco, transportation, fuel, refund, discount, payment, giftcard]

    The classification of the product. The line type predicted by Veryfi, e.g. food.

    date date

    The date found on the document and associated with the line item in ISO 8601 format.

    description stringrequired

    Possible values: non-empty

    The product or service's extracted name or description excluding date and price.

    full_description string

    Possible values: non-empty

    The item text including dates, weight, etc.

    normalized_description string

    Possible values: non-empty

    The line item description with expanded words

    discount_price number

    The lower price after discount.

    discount_rate number

    The discount percentage that was applied to the line item.

    discount number

    The date found on the document and associated with the line item in ISO 8601 format.

    price number

    The unit price for the line item.

    quantity number

    The amount or number of units for the line item. This value is computable.

    reference string

    Possible values: non-empty

    section string

    Possible values: non-empty

    A grouping indicated by formatted text on the receipt or invoice.

    sku string

    Possible values: non-empty

    The Stock Keeping Unit (SKU) is the unique code associated with the product for the line item.

    tax_rate number

    The percent at which the individual or corporation is taxed.

    tax number

    The amount at which the individual or corporation is taxed for the product on this line item.

    total number

    The total price for this line item. This value is computable.

    subtotal number

    New, added 2023-07-10. The total of a set of numbers that will later be added to another set of numbers, such as tip and tax. This value is computable.

    unit_of_measure string

    Possible values: non-empty

    The unit of measurement for this line item.

    category string

    Possible values: non-empty

    The category is taken from the line item with the same SKU and/or description. Otherwise from the root category field.

    country_of_origin string

    Possible values: [UM, PE, AZ, AI, CN, KE, ML, DE, TO, TR, AL, CR, VE, GE, AQ, MA, OM, GS, PL, EG, IE, LI, LC, TK, IO, JP, IM, KI, CC, AN, TD, IS, EE, CI, GL, GR, AT, TH, PH, CM, CF, MQ, MR, CU, LB, GD, NL, TM, AX, AD, KZ, UY, TT, AG, IT, RS, RU, FM, FJ, GN, US, PM, WS, AO, BN, PF, TW, LR, NE, CH, SC, UZ, ES, IR, IN, PT, NP, BB, NF, TG, MN, GF, VN, KG, SB, EC, BD, HN, LV, SK, GI, ZA, LS, AM, GG, HK, SG, HU, CL, BH, CO, VA, LK, NO, MT, AS, MU, PG, LA, SN, GM, VG, RW, MH, HM, AU, TZ, PA, SM, SO, TJ, TC, GA, FK, FI, NI, ZW, BE, HT, EH, KY, AR, BI, KH, LU, MO, MP, RO, YE, MV, IL, NA, GB, VC, YT, NZ, SA, CV, DO, SV, FO, JO, NC, GT, BV, VU, PR, ER, BL, DZ, MX, KP, DJ, VI, SH, MG, AW, ME, BG, TV, TL, AF, PN, NU, IQ, BW, FR, PS, PY, CG, KM, LT, CK, KR, MW, MZ, BR, MC, ST, QA, GQ, GW, SZ, CD, KN, GU, TN, MY, NR, CA, SJ, CZ, KW, MK, SY, HR, BJ, BO, BA, MD, TF, MM, CY, GH, JE, MF, DM, SL, SI, BZ, SR, DK, WF, BY, LY, GP, UG, PK, AE, BM, NG, BS, CX, GY, ID, PW, SD, ET, BT, JM, SE, BF, ZM, RE, MS, UA]

    The country of manufacture, production, design, or brand origin where the product comes from.

    custom_fields object

    A user-defined dictionary that contains all the custom fields generated by applying specific rules and regular expressions to the extracted data.

    product_details object[]

    Product lookup details

  • Array [
  • ]
  • end_date date

    A service end date identified for the line item. An end date could be a flight arrival date or hotel departure date in ISO 8601 format.

    gross_total number

    The line item total before deductions.

    hsn string

    Possible values: non-empty

    The Harmonized System Nomenclature (HSN) found for the line item.

    lot string

    Possible values: non-empty

    The batch or lot number for the line item.

    start_date date

    A service start date identified for the line item. A start date could be a flight departure date or hotel arrival date in ISO 8601 format.

    tax_code string

    Possible values: non-empty

    The classification of goods and services for tax purposes for the line item.

    manufacturer string

    Possible values: non-empty

    The name of the manufacturer of the product for the line item.

    net_total number

    The line item total after deductions.

    upc string

    Possible values: non-empty

    The Universal Product Code (UPC), European Article Number (EAN), or Global Trade Item Number (GTIN) found for the line item on this document will be placed in this field.

    weight string

    Possible values: non-empty

    The weight of the item for the line item. Usually found on logistic invoices.

Loading...