Skip to main content

Process a Document

POST 

/api/v7/partner/documents

Process a document and extract all the fields from it.

Request

Body

    file binary

Responses

Processed document response.

Schema
    abn_number string

    ABN Number (Australian Business Number)

    account_number string

    Account Number

    bill_to_address string

    Bill To Address

    bill_to_name string

    Bill To Name

    bill_to_vat_number string

    Bill To VAT Number

    card_number string

    Card Number

    cashback double

    Cashback

    category string

    Category

    created string

    Created Date

    currency_code string

    Currency Code

    date string

    Date

    delivery_date string

    Delivery Date

    discount double

    Discount

    document_reference_number string

    Document Reference Number

    document_title string

    Document Title

    document_type string

    Document Type

    due_date string

    Due Date

    duplicate_of string

    Duplicated Document ID

    external_id string

    External ID

    id integer

    Document ID

    img_file_name string

    Image File Name

    img_thumbnail_url string

    Image Thumbnail URL

    img_url string

    Image URL

    insurance double

    Insurance

    invoice_number string

    Invoice Number

    is_duplicate integer

    Is Duplicated

    is_money_in integer

    1 if refund or credit note

    line_items object[]

    List Of Line Items

  • Array [
  • date string

    Date

    description string

    Description

    discount double

    Discount

    discount_rate double

    Discount Rate

    id int64

    ID

    order integer

    Order

    price double

    Price

    quantity double

    Quantity

    reference string

    Reference Number

    section string

    Section

    sku string

    Stock Keeping Unit (SKU)

    tax double

    Tax

    tax_rate double

    Tax Rate

    text string

    Text

    total double

    Total

    type string

    Type

    unit_of_measure string

    Unit Of Measure

  • ]
  • notes string

    Notes

    ocr_text string

    OCR Text

    order_date string

    Order Date

    payment_display_name string

    Payment Display Name

    payment_terms string

    Payment Terms

    payment_type string

    Payment Type

    phone_number string

    Phone Number

    purchase_order_number string

    Purchase Order Number

    rounding double

    Rounding Number

    service_end_date string

    Service End Date

    service_start_date string

    Service Start Date

    ship_date string

    Shipping Date

    ship_to_address string

    Shipping Address

    ship_to_name string

    Shipping Recipient

    shipping double

    Shipping

    store_number string

    Store Number

    subtotal double

    Subtotal

    tax double

    Tax

    tax_lines object[]

    Tax Lines Breakdown

  • Array [
  • base double

    Tax Base

    name string

    Tax Name

    rate double

    Tax Rate %

    total double

    Tax Total

  • ]
  • tip double

    Tip

    total double

    Total

    total_weight string

    Total Weight

    tracking_number string

    Tracking Number

    updated string

    Updated Date

    vat_number string

    VAT Number

    vendor object
    address string

    Vendor Address

    category string

    Vendor Category

    email string

    Vendor Email

    fax_number string

    Vendor Fax Number

    name string

    Vendor Name

    parsed_address object
    city City

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

    country Country

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

    postcode Postcode

    The postal code used for mail sorting

    state State

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

    street_address Street Address

    A sum of house_number road, building, unit.

    house House

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

    house_number House Number

    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).

    road Road

    Street name(s)

    unit Unit

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

    level Level

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

    staircase Staircase

    Numbered/lettered staircase

    entrance Entrance

    Numbered/lettered entrance

    po_box Po Box

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

    suburb Suburb

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

    city_district City District

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

    island Island

    Named islands e.g. "Maui"

    state_district State District

    Usually a second-level administrative division or county.

    country_region Country Region

    Informal subdivision of a country without any political status.

    world_region World Region

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

    phone_number string

    Vendor Phone Number

    raw_name string

    Vendor Raw Name

    vendor_logo string

    Vendor Logo

    vendor_reg_number string

    Vendor Registration Number

    vendor_type string

    Vendor Type

    web string

    Vendor Web

    vendor_account_number string

    Vendor Account Number

    vendor_bank_name string

    Vendor Bank Name

    vendor_bank_number string

    Vendor Bank Number

    vendor_bank_swift string

    Vendor Bank Swift

    vendor_iban string

    International Bank Account Number (IBAN)

Loading...