Skip to main content

Update a Business Card

PUT 

/api/v8/partner/business-cards/:document_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.

Body

    external_id stringdeprecated

    Possible values: non-empty

    Deprecated 2025-01-09, use meta.external_id instead.

    meta object
    external_id stringrequired

    Possible values: non-empty

Responses

A processed Business Card response.

Schema
    external_id string

    Possible values: non-empty

    A custom identification value. Use this if you would like to assign your own ID to documents. This parameter is useful when mapping this document to a service or resource outside Veryfi.

    meta object
    external_id string

    Possible values: non-empty

    A custom identification value. Use this if you would like to assign your own ID to documents. This parameter is useful when mapping this document to a service or resource outside Veryfi.

    text string

    The text returned from converting the document into a machine-readable text format.

    id integerrequired

    The unique number created to identify the document.

    created_date date-timerequired
    updated_date date-timerequired
    organization objectrequired

    The name of the business found on the document.

    bounding_region number[]

    Possible values: >= 8, <= 8

    An array containing (x,y) coordinates in the format [x1,y1,x2,y2,x3,y3,x4,y4]` for skewed images and handwritten fields. The bounding region is more precise than bounding box, otherwise it's the same.

    bounding_box object[]

    Possible values: >= 5, <= 5

    An array containing relative coordinates in the format [page_number,x1,y1,x2,y2] for the extracted field from img_url before any rotation.

  • Array [
  • anyOf

    number

  • ]
  • ocr_score number

    Possible values: <= 1

    The score which shows how confident the model in recognizing value symbols. See confidence scores explained for more information.

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information.

    rotation integer

    Possible values: [0, 90, 180, 270]

    The angle of rotation of the document in degrees.

    value stringrequired

    Possible values: non-empty

    The extracted value.

    logo_url objectrequired

    A signed URL to the logo for the organization found on the document. The URL expires 15 minutes after the Document Response is returned and is re-assigned on every GET request.

    bounding_region number[]

    Possible values: >= 8, <= 8

    An array containing (x,y) coordinates in the format [x1,y1,x2,y2,x3,y3,x4,y4]` for skewed images and handwritten fields. The bounding region is more precise than bounding box, otherwise it's the same.

    bounding_box object[]

    Possible values: >= 5, <= 5

    An array containing relative coordinates in the format [page_number,x1,y1,x2,y2] for the extracted field from img_url before any rotation.

  • Array [
  • anyOf

    number

  • ]
  • ocr_score number

    Possible values: <= 1

    The score which shows how confident the model in recognizing value symbols. See confidence scores explained for more information.

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information.

    rotation integer

    Possible values: [0, 90, 180, 270]

    The angle of rotation of the document in degrees.

    value stringrequired

    Possible values: non-empty

    The extracted value.

    img_url object required
    anyOf

    string

    person objectrequired

    The full name of the individual found on the document.

    bounding_region number[]

    Possible values: >= 8, <= 8

    An array containing (x,y) coordinates in the format [x1,y1,x2,y2,x3,y3,x4,y4]` for skewed images and handwritten fields. The bounding region is more precise than bounding box, otherwise it's the same.

    bounding_box object[]

    Possible values: >= 5, <= 5

    An array containing relative coordinates in the format [page_number,x1,y1,x2,y2] for the extracted field from img_url before any rotation.

  • Array [
  • anyOf

    number

  • ]
  • ocr_score number

    Possible values: <= 1

    The score which shows how confident the model in recognizing value symbols. See confidence scores explained for more information.

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information.

    rotation integer

    Possible values: [0, 90, 180, 270]

    The angle of rotation of the document in degrees.

    value stringrequired

    Possible values: non-empty

    The extracted value.

    parsed_name objectrequired

    An object that represents the person found on the document.

    family_name object

    The last name or found on the document.

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    given_name object

    The first name found on the document.

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    middle_name object
    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    suffix object
    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    prefix object
    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    title objectrequired

    The job title of the person found on the document.

    bounding_region number[]

    Possible values: >= 8, <= 8

    An array containing (x,y) coordinates in the format [x1,y1,x2,y2,x3,y3,x4,y4]` for skewed images and handwritten fields. The bounding region is more precise than bounding box, otherwise it's the same.

    bounding_box object[]

    Possible values: >= 5, <= 5

    An array containing relative coordinates in the format [page_number,x1,y1,x2,y2] for the extracted field from img_url before any rotation.

  • Array [
  • anyOf

    number

  • ]
  • ocr_score number

    Possible values: <= 1

    The score which shows how confident the model in recognizing value symbols. See confidence scores explained for more information.

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information.

    rotation integer

    Possible values: [0, 90, 180, 270]

    The angle of rotation of the document in degrees.

    value stringrequired

    Possible values: non-empty

    The extracted value.

    email objectrequired

    The email address found on the document.

    bounding_region number[]

    Possible values: >= 8, <= 8

    An array containing (x,y) coordinates in the format [x1,y1,x2,y2,x3,y3,x4,y4]` for skewed images and handwritten fields. The bounding region is more precise than bounding box, otherwise it's the same.

    bounding_box object[]

    Possible values: >= 5, <= 5

    An array containing relative coordinates in the format [page_number,x1,y1,x2,y2] for the extracted field from img_url before any rotation.

  • Array [
  • anyOf

    number

  • ]
  • ocr_score number

    Possible values: <= 1

    The score which shows how confident the model in recognizing value symbols. See confidence scores explained for more information.

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information.

    rotation integer

    Possible values: [0, 90, 180, 270]

    The angle of rotation of the document in degrees.

    value stringrequired

    Possible values: non-empty

    The extracted value.

    address objectrequired

    The address found on the document.

    bounding_region number[]

    Possible values: >= 8, <= 8

    An array containing (x,y) coordinates in the format [x1,y1,x2,y2,x3,y3,x4,y4]` for skewed images and handwritten fields. The bounding region is more precise than bounding box, otherwise it's the same.

    bounding_box object[]

    Possible values: >= 5, <= 5

    An array containing relative coordinates in the format [page_number,x1,y1,x2,y2] for the extracted field from img_url before any rotation.

  • Array [
  • anyOf

    number

  • ]
  • ocr_score number

    Possible values: <= 1

    The score which shows how confident the model in recognizing value symbols. See confidence scores explained for more information.

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information.

    rotation integer

    Possible values: [0, 90, 180, 270]

    The angle of rotation of the document in degrees.

    value stringrequired

    Possible values: non-empty

    The extracted value.

    parsed_address objectrequired

    An object representing detailed address-related information on the document, such as the city, state, street address, unit number, etc.

    building object

    The building name e.g. 'Project 8' or 'Empire State Building'

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    city object

    The settlement including cities, towns, villages, hamlets, localities, etc.

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    country object

    The sovereign nations and their dependent territories, anything with an ISO-3166 code.

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    country_alpha_2 object

    The detected ISO 3166-1 alpha-2 code for a given country.

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    postcode object

    The postal code used for mail sorting

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    state object

    A first-level administrative division. Scotland, Northern Ireland, Wales, and England in the UK are mapped to "state" as well

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    street_address object

    A sum of house_number road, building, unit.

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    house object

    The venue name e.g. "Brooklyn Academy of Music", and building names e.g. "Empire State Building".

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    house_number object

    Usually refers to the external (street-facing) building number. In some countries this may be a compound, hyphenated number, which also includes an apartment number, or a block number (a la Japan).

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    road object

    Street name(s)

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    unit object

    An apartment, unit, office, lot, or other secondary unit designator.

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    level object

    The expressions indicating a floor number e.g. "3rd Floor", "Ground Floor", etc.

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    staircase object

    Numbered/lettered staircase

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    entrance object

    Numbered/lettered entrance

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    po_box object

    The post office box, typically found in non-physical (mail-only) addresses.

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    suburb object

    An unofficial neighborhood name like "Harlem", "South Bronx", or "Crown Heights".

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    city_district object

    The boroughs or districts within a city that serve some official purpose e.g. "Brooklyn" or "Hackney" or "Bratislava IV".

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    island object

    Named islands e.g. "Maui"

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    state_district object

    Usually a second-level administrative division or county.

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    country_region object

    Informal subdivision of a country without any political status.

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    world_region object

    Only used for appending "West Indies" after the country name, a pattern frequently used in the English-speaking Caribbean e.g. "Jamaica, West Indies".

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information. Returned with confidence_details: true

    value stringrequired

    Possible values: non-empty

    The extracted value.

    mobile objectrequired

    The mobile number found on the document.

    bounding_region number[]

    Possible values: >= 8, <= 8

    An array containing (x,y) coordinates in the format [x1,y1,x2,y2,x3,y3,x4,y4]` for skewed images and handwritten fields. The bounding region is more precise than bounding box, otherwise it's the same.

    bounding_box object[]

    Possible values: >= 5, <= 5

    An array containing relative coordinates in the format [page_number,x1,y1,x2,y2] for the extracted field from img_url before any rotation.

  • Array [
  • anyOf

    number

  • ]
  • ocr_score number

    Possible values: <= 1

    The score which shows how confident the model in recognizing value symbols. See confidence scores explained for more information.

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information.

    rotation integer

    Possible values: [0, 90, 180, 270]

    The angle of rotation of the document in degrees.

    value stringrequired

    Possible values: non-empty

    The extracted value.

    phone objectrequired

    The phone number found on the document.

    bounding_region number[]

    Possible values: >= 8, <= 8

    An array containing (x,y) coordinates in the format [x1,y1,x2,y2,x3,y3,x4,y4]` for skewed images and handwritten fields. The bounding region is more precise than bounding box, otherwise it's the same.

    bounding_box object[]

    Possible values: >= 5, <= 5

    An array containing relative coordinates in the format [page_number,x1,y1,x2,y2] for the extracted field from img_url before any rotation.

  • Array [
  • anyOf

    number

  • ]
  • ocr_score number

    Possible values: <= 1

    The score which shows how confident the model in recognizing value symbols. See confidence scores explained for more information.

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information.

    rotation integer

    Possible values: [0, 90, 180, 270]

    The angle of rotation of the document in degrees.

    value stringrequired

    Possible values: non-empty

    The extracted value.

    fax objectrequired

    The fax number found on the document.

    bounding_region number[]

    Possible values: >= 8, <= 8

    An array containing (x,y) coordinates in the format [x1,y1,x2,y2,x3,y3,x4,y4]` for skewed images and handwritten fields. The bounding region is more precise than bounding box, otherwise it's the same.

    bounding_box object[]

    Possible values: >= 5, <= 5

    An array containing relative coordinates in the format [page_number,x1,y1,x2,y2] for the extracted field from img_url before any rotation.

  • Array [
  • anyOf

    number

  • ]
  • ocr_score number

    Possible values: <= 1

    The score which shows how confident the model in recognizing value symbols. See confidence scores explained for more information.

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information.

    rotation integer

    Possible values: [0, 90, 180, 270]

    The angle of rotation of the document in degrees.

    value stringrequired

    Possible values: non-empty

    The extracted value.

    web objectrequired

    The web page found on the document.

    bounding_region number[]

    Possible values: >= 8, <= 8

    An array containing (x,y) coordinates in the format [x1,y1,x2,y2,x3,y3,x4,y4]` for skewed images and handwritten fields. The bounding region is more precise than bounding box, otherwise it's the same.

    bounding_box object[]

    Possible values: >= 5, <= 5

    An array containing relative coordinates in the format [page_number,x1,y1,x2,y2] for the extracted field from img_url before any rotation.

  • Array [
  • anyOf

    number

  • ]
  • ocr_score number

    Possible values: <= 1

    The score which shows how confident the model in recognizing value symbols. See confidence scores explained for more information.

    score number

    Possible values: <= 1

    The score shows how confident the model is that the predicted value belongs to the field. See confidence scores explained for more information.

    rotation integer

    Possible values: [0, 90, 180, 270]

    The angle of rotation of the document in degrees.

    value stringrequired

    Possible values: non-empty

    The extracted value.

Loading...