POST
/
v1
/
textify
/
analyzer
curl --request POST \
--url https://api.argosidentity.com/v1/textify/analyzer \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"fileExtension": "pdf",
"docuType": "InvoiceMedical",
"fileData": "base64-encoded-medical-invoice-pdf"
}'
{
"status": "success",
"data": {
"document": {
"patientInfo": {
"name": "John Smith",
"patientId": "P12345",
"dateOfBirth": "1985-03-15",
"contactNumber": "+1-555-0123"
},
"medicalProvider": {
"name": "City General Hospital",
"providerId": "H789",
"address": "123 Medical Center Dr, City, State 12345"
},
"billingDetails": {
"invoiceNumber": "INV-2024-001",
"serviceDate": "2024-01-15",
"dueDate": "2024-02-15",
"totalAmount": 1250,
"insuranceCoverage": 1000,
"patientResponsibility": 250
},
"medicalServices": [
{
"service": "Cardiology Consultation",
"code": "99204",
"amount": 350
},
{
"service": "EKG Test",
"code": "93000",
"amount": 150
},
{
"service": "Blood Work",
"code": "80048",
"amount": 750
}
]
},
"confidence": 0.95
}
}

General Invoices Template

The General Invoices template extracts structured data from standard commercial invoices from businesses and service providers, including invoice number, customer details, items/services, and payment information.

Template Features

Extracts the following information from general invoices:
  • Invoice metadata and identification
  • Customer and vendor information
  • Line items and service details
  • Pricing and payment terms
  • Tax calculations and totals
  • Payment methods and due dates

Usage Example

{
  "fileExtension": "pdf",
  "docuType": "InvoiceGeneral",
  "fileData": "base64-encoded-general-invoice-data"
}

Response Format

The template returns structured general invoice data including:

Invoice Information

  • Invoice Number: Unique invoice identifier
  • Issue Date: Date invoice was created
  • Due Date: Payment deadline
  • Payment Terms: Payment conditions and terms

Customer Information

  • Customer Name: Client or customer name
  • Customer Address: Complete customer address
  • Contact Person: Primary contact for customer
  • Contact Information: Email and phone numbers

Vendor Information

  • Vendor Name: Service provider or seller name
  • Vendor Address: Complete vendor address
  • Contact Information: Vendor contact details
  • Tax ID: Vendor tax identification number

Line Items

  • Service Description: Detailed service or product description
  • Quantity: Number of units or hours
  • Unit Price: Price per unit or hour
  • Total: Line item total amount
  • Tax Rate: Applicable tax percentage

Financial Details

  • Subtotal: Sum before taxes
  • Tax Amount: Total tax calculated
  • Total Amount: Final invoice amount
  • Currency: Invoice currency
  • Payment Methods: Accepted payment options

Sample Response

{
  "status": "success",
  "data": {
    "document": {
      "invoiceInfo": {
        "invoiceNumber": "INV-2024-001",
        "issueDate": "2024-01-15",
        "dueDate": "2024-02-15",
        "paymentTerms": "Net 30"
      },
      "customerInfo": {
        "name": "ABC Company",
        "address": "789 Corporate Blvd, Business City, BC 67890",
        "contactPerson": "Jane Manager",
        "email": "accounts@abccompany.com"
      },
      "vendorInfo": {
        "name": "Professional Services Inc.",
        "address": "123 Service Lane, Provider City, PC 12345",
        "contactNumber": "+1-555-9876"
      },
      "lineItems": [
        {
          "description": "Website Development Services",
          "quantity": 1,
          "unitPrice": 5000.00,
          "total": 5000.00
        },
        {
          "description": "SEO Optimization",
          "quantity": 1,
          "unitPrice": 1500.00,
          "total": 1500.00
        }
      ],
      "totals": {
        "subtotal": 6500.00,
        "taxRate": 0.08,
        "taxAmount": 520.00,
        "totalAmount": 7020.00
      }
    },
    "confidence": 0.91
  }
}

Supported General Invoice Types

  • Service Provider Invoices
  • Consulting Service Bills
  • Professional Service Invoices
  • Maintenance Service Bills
  • Software License Invoices
  • Equipment Rental Bills
  • Training Service Invoices
  • Marketing Service Bills
  • Legal Service Invoices
  • Accounting Service Bills

Authorizations

X-API-Key
string
header
required

Body

application/json
fileExtension
enum<string>
required

File extension of the uploaded document (e.g., 'pdf', 'jpg', 'png')

Available options:
pdf,
jpg,
jpeg,
png
docuType
enum<string>
required

The type of document to be analyzed. This determines the extraction model and data structure used for analysis.

Supported Document Types:

  • InvoiceMedical: Medical invoices and bills from healthcare providers, hospitals, clinics, and medical facilities. Extracts patient information, medical services, costs, and billing details.
  • BusinessRegistration: Official business registration documents, corporate certificates, and company formation papers. Extracts business name, registration number, business type, and address information.
  • InvoiceGeneral: Standard commercial invoices from businesses and service providers. Extracts invoice number, customer details, items/services, and payment information.
  • MedicalObservation: Medical reports, patient records, and clinical observation documents. Extracts patient data, medical findings, diagnosis, and treatment information.
  • Contract: Legal contracts, agreements, and binding documents between parties. Extracts contract terms, parties involved, dates, and legal obligations.
  • ArrivalNotice: Shipping and logistics arrival notifications, delivery confirmations. Extracts shipment details, arrival dates, and delivery information.
  • BillofLading: Transportation documents for cargo and freight shipments. Extracts shipping details, cargo information, and transport terms.
  • Jobapplication: Employment applications, resumes, and job-related documents. Extracts applicant information, qualifications, and employment history.
  • BalanceCertificate_KR: Korean bank balance certificates and financial statements. Extracts account information, balance details, and banking data.
  • ProofOfAddress: Address verification documents, utility bills, and residence certificates. Extracts address information and verification details.
Available options:
InvoiceMedical,
BusinessRegistration,
InvoiceGeneral,
MedicalObservation,
Contract,
ArrivalNotice,
BillofLading,
Jobapplication,
BalanceCertificate_KR,
ProofOfAddress
fileData
file
required

Base64 encoded file data

Response

Successful analysis

status
string

Analysis status

data
object

Extracted structured data from the document. The structure varies based on the document type.