Skip to content

PAD

  • Purpose: Guide to quickly start using the PAD (Automatic Document Processing) API.
  • Description: Automates the extraction of information into structured data, applicable to forms, documents, invoices, receipts, personal identity cards, passports, driver’s licenses, and other custom documents of interest, using internal AI/ML models.

Prerequisites

  • You will need to have API credentials from your organization
  • Your account should have at least the roles: pad and usage.

PAD flow

Basic data extraction flow from a document:

  1. The client sends a POST request to the PAD API at the /analyze endpoint.
  2. The PAD API creates a log USAGE record of the request.
  3. The PAD API applies validations to the incoming data.
  4. The PAD API performs JSON parsing of the validated data.
  5. The PAD API sends a success response back to the client.

Extracto flow

Usage

Files formats allowedFiles Maximum size
PDF500 MB
Images format: PNG, BMP, JPEG/JPG500 MB

Available models

Payroll

Payroll refers to the process of calculating and distributing wages, salaries, and other forms of compensation to employees for their work. It involves determining the amount of pay based on hours worked, salary rates, and any deductions such as taxes, benefits, and retirement contributions. Payroll ensures compliance with labor laws and tax regulations, and it is crucial for maintaining accurate records of employee compensation.

Document type: payroll
LabelTypeSlug
Full nametextpy:fullname
Personal IDtextwl:nif
Net paynumericpy:net-pay
Senioritydatepy:seniority
Periodperiodpy:period

Working Life Document

A Working Life Document is a record that outlines an individual’s employment history, career progression, and professional achievements. It typically includes details such as job titles, responsibilities, skills acquired, training, and significant milestones throughout an employee’s career. This document serves as a comprehensive summary of a person’s professional life, often used for job applications, performance reviews, or career development.

Document type: working-life-document
LabelTypeSlug
Document datedatewl:document-date
Full nametextwl:fullname
Personal IDtextwl:nif
Company nametextwl:company-name
Enrollment datedatewl:enrollment-date
Termination datedatewl:termination-date
Number of days of registration in the Social Security Systemtextwl:number-days-registration
Type of Employment Contracttextwl:type

Income Document

An Income Document is a record that provides detailed information about an individual’s earnings over a specific period. It includes sources of income such as salary, wages, bonuses, commissions, or freelance payments. This document is commonly used for financial reporting, loan applications, tax filings, and proof of income verification. It serves as evidence of an individual’s financial stability and earning capacity.

Document type: income-document
LabelTypeSlug
Full nametextin:fullname
NIFtextin:nif
Year of fiscal yeartextin:year-fiscal
Reduced net incometextin:reduced-net-income
Date of birthdatein:birthdate
Nationalitytextin:nationality
Validitydatein:validity
SingleselectionMarkin:marital-single
MarriedselectionMarkin:marital-married
WidowedselectionMarkin:marital-widowed
DivorcedselectionMarkin:marital-divorced

Obverse Side of National Identity Card

The obverse side of a National Identity Card typically features essential personal information about the cardholder, such as their full name, photograph, date of birth, nationality, and a unique identification number. It may also include additional details like the cardholder’s signature, address, and the issuing authority. This side of the card serves as the primary reference for verifying an individual’s identity.

Document type: obverse-dni
LabelTypeSlug
Personal IDtextod:personal-id
Namestextod:names
Surnamestextod:Surnames
Gendertextod:gender
Date of birthdateod:birthplace
Nationalitytextod:nationality
Validitydateod:validity

Reverse Side of National Identity Card

The reverse side of a National Identity Card often includes additional details such as the cardholder’s address, barcode or magnetic strip for electronic verification, and security features like holograms or microprints to prevent fraud. It may also contain other information required by the issuing authority, such as expiration date, endorsements, or a machine-readable zone for automated processing. This side complements the obverse in ensuring the card’s authenticity and usability.

Document type: reverse-dni
LabelTypeSlug
First row MRZmrzrd:first-row
Second row MRZmrzrd:second-row
Third row MRZmrzrd:third-row

Panamanian DNI

The Panamanian DNI (National Identity Document) is an official identification card issued to citizens of Panama. It includes personal information such as the holder’s name, photograph, date of birth, and a unique identification number. The card serves as proof of identity for various administrative and legal purposes within the country. It also features security elements to prevent fraud and is used for voting, accessing public services, and conducting official transactions.

Document type: panamanian-dni
LabelTypeSlug
Common nametextpi:common-name
Date of birthdatepi:date-birth
Gendertextpi:gender
Donortextpi:donor
Blood typetextpi:blood-type
Issueddatepi:issued
Expiresdatepi:expires
Personal identitytextpi:dni

Maritime Migration Registration Voucher

The Maritime Migration Registration Voucher is an official document issued to individuals involved in maritime migration. It serves as proof of registration for those entering or leaving a country via maritime routes. This voucher typically includes personal details, travel information, and specific migration status. It is used to ensure proper documentation and legal compliance for maritime migrants and may be required for customs, immigration, and border control procedures.

Document type: maritime-migration-coupon
LabelTypeSlug
Notebook numbertextmc:notebook-number
Valuemoneymc:value
Shiptextmc:ship
Shipping agency stamptextmc:shipping-agency-stamp
Receipt numbertextmc:receipt-number
Date of executiondatemc:execution-date
EmbarkselectionMarkmc:embark
ReceiptselectionMarkmc:receipt
DisembarkselectionMarkmc:disembark
DispatchselectionMarkmc:dispatch

Personal Documents

Personal documents are official papers that provide essential information about an individual’s identity, legal status, and personal history. These documents include items such as passports, national IDs, birth certificates, marriage certificates, and social security cards. They are crucial for verifying identity, accessing services, traveling, and conducting legal or financial transactions. Personal documents are often required for various processes like applying for a job, opening bank accounts, or registering for healthcare.

Document type: personal-documents
LabelTypeSlug
Document numbertextpd:document-number
Personal IDtextpd:personal-number
Namestextpd:names
Surnamestextpd:surnames
Birthplacetextpd:birthplace
Gendertextpd:gender
Expiration datedatepd:expiration-date

Invoices

Invoices are commercial documents used to request payment for goods or services provided. They typically include details such as the seller’s and buyer’s contact information, a description of the items or services, the total amount due, payment terms, and the invoice date. Invoices serve as a formal record of a transaction and are important for accounting, tax reporting, and tracking payments. They help ensure that both parties are clear on the terms and expectations of the sale.

Document type: invoices
LabelTypeSlug
Billing addresstextiv:billing-address
Recipient billing addresstextiv:billing-address-recipient
Customer nametextiv:customer-name
Customer tax IDtextiv:customer-tax-id
Expiration datedateiv:due-date
Invoice datedateiv:invoice-date
Invoice IDtextiv:invoice-id
Invoice totaltextiv:invoice-total
Shipping addresstextiv:shipping-address
Recipient shipping addresstextiv:shipping-address-recipient
Seller addresstextiv:seller-address
Seller Address Recipienttextiv:seller-address-recipient
Seller nametextiv:seller-name
Pending amounttextiv:pending-amount
Client IDtextiv:customer-id
Payment detailstextiv:payment-details
Remittance addresstextiv:remittance-address
Remittance address recipienttextiv:remittance-address-recipient

Receipts

Receipts are proof of payment or transaction, typically issued by a seller to a buyer. They include details such as the date of purchase, the items or services bought, the total amount paid, payment method, and any applicable taxes or discounts. Receipts serve as important records for both consumers and businesses, helping with returns, warranty claims, and accounting purposes. They confirm that a financial transaction has been completed and can be used for tracking expenses or verifying payment.

Document type: receipts
LabelTypeSlug
Merchant Nametextrc:merchant-name
Merchant Telephone Numbertextrc:merchant-phone-number
Merchant Addresstextrc:merchant-address
Transaction Datedaterc:transaction-date
Transaction Timetimerc:transaction-time
Subtotaltextrc-subtotal
Tiptextrc:tip
Totaltextrc:total
Total Taxtextrc:total-tax
Tax Detailsarrayrc:tax-details
Articlesarrayrc:items

Credit Cards

Credit cards are financial tools issued by banks or financial institutions that allow individuals to borrow funds up to a certain credit limit to make purchases or withdraw cash. They typically include features such as a cardholder’s name, card number, expiration date, and a security code (CVV). Credit cards offer a revolving line of credit, which means the balance can be paid off over time, though interest is charged on outstanding balances. They are widely used for both online and in-store transactions and can also provide benefits such as rewards, cashback, and fraud protection.

Document type: credit-cards
LabelTypeSlug
Card numbertextcc:card-number
Bank nametextcc:bank-name
Payment processing networktextcc:processing-network
Holder nametextcc:holder-name
Holder company nametextcc:company-holder-name
Valid from datedatecc:valid-from-date
Expiration datedatecc:expiration-date
CVVtextcc:cvv
Support phone numberarraycc:phone-numbers

Limitations

  • PDF documents with passwords are not supported.
  • URL path with security are not allowed.
  • The model personal_docs can validate all types of passports worldwide, as well as personal IDs and driver’s licenses from the United States, India, Europe, Australia, and Canada. For other countries, if the expected fields cannot be retrieved, please create a support ticket to request a custom model. Remember to provide document examples.

Resources