PDF VectorPDF Vector
Back to all articles

Document API Use Cases for Vertical SaaS

Document API patterns for vertical SaaS by industry: lending, AP, KYC, property, construction, logistics and research, with endpoints, schemas and costs.

Document API Use Cases for Vertical SaaS

Vertical SaaS products run on documents their customers already have: bank statements in lending, invoices in accounting, leases in property management, certificates in construction, IDs in onboarding, papers in research tools. A document API lets the product read those files at upload time and turn them into records, so the user confirms data instead of typing it. This guide goes industry by industry: which documents show up, which PDF Vector endpoint fits, what the schema should contain, which checks to run, and what a typical document costs. The patterns are generic; adapt the fields to your product.

The pattern behind every use case

Almost every feature below follows the same five steps:

  1. Upload in context. The user uploads the file where the data is needed: the loan application, the vendor bill, the tenant profile.
  2. Extract in the background. Your backend calls an Extract endpoint with a JSON Schema that mirrors your form or database table.
  3. Validate. Business rules check the result: totals add up, dates make sense, names match the account.
  4. Prefill and confirm. The UI shows the extracted values next to the document. The user fixes anything wrong and confirms.
  5. Store with provenance. Keep the original file, the extracted JSON, the confirmed values and who confirmed them.

The confirm step is what makes this safe to ship. Extraction removes typing; the user remains responsible for the record, and your validation rules point their attention at the fields most likely to be wrong.

The endpoints

EndpointUse it forCredits per page (nano / mini / pro / max)
Document ExtractAny document into your JSON Schema2 / 4 / 8 / 16
Document ParseFull Markdown for search, RAG, previews1 / 2 / 4 / 8
Document AskOne question about one document2 / 4 / 8 / 16
Invoice ExtractInvoices and receipts6 / 10 / 14 / 18
Bank Statement ExtractStatements and transactions6 / 10 / 14 / 18
Identity ExtractPassports, licences, ID cards6 / 10 / 14 / 18
Academic Search, Fetch, Parse, Find CitationsResearch and education productsSearch and Fetch 2 per request; Parse 1 to 8 per page

Two limits shape product design: nano, mini and pro accept files up to 30 pages and 40 MB, while max and auto accept up to 2,000 pages and 500 MB; image files (phone photos, scanned JPGs) need pro, max or auto.

Lending and fintech

Documents: bank statements, pay stubs, tax forms, business financial statements, ID documents.

Features: income and cash-flow verification, affordability checks, faster underwriting, automatic categorisation of transactions.

Endpoints and schema:

  • Bank statements: Bank Statement Extract with bankName, accountHolder, periodStart, periodEnd, openingBalance, closingBalance, and transactions[] of date, description, amount (signed), balance.
  • Pay stubs and tax forms: Document Extract with employer, pay period, gross pay, net pay, deductions, year-to-date totals.
  • Applicant ID: Identity Extract (see onboarding below).

Checks: opening balance plus transactions equals closing balance; running balances line up; statement period is recent; account holder matches the applicant; pay-stub net pay appears as a deposit in the statement.

Cost: a 6-page statement on Bank Statement Extract pro is 6 × 14 = 84 credits. Three months of statements per applicant: 3 × 84 = 252 credits.

The bank statement guide has a full schema and validation code.

Accounting, AP and spend management

Documents: supplier invoices, receipts, credit notes, purchase orders.

Features: bill creation from email or upload, expense capture from receipt photos, two- and three-way matching against purchase orders, duplicate detection.

Endpoints and schema:

  • Invoice Extract with vendorName, vendorTaxId, invoiceNumber, invoiceDate, dueDate, currency, subtotal, tax, total, lineItems[] (description, quantity, unitPrice, amount), and purchaseOrderNumber if your customers use POs.
  • Purchase orders: Document Extract with the PO number and order lines, so matching compares two structured records.

Checks: line items sum to the subtotal; subtotal plus tax equals total; no existing bill with the same vendor and invoice number; vendor known in the customer's supplier list; amounts within approval thresholds.

Cost: a 2-page invoice on Invoice Extract mini is 2 × 10 = 20 credits. A receipt photo needs pro or above: 1 × 14 = 14 credits on pro.

More on this pattern: accounts payable use case.

Onboarding and KYC in marketplaces, property and HR platforms

Documents: passports, driver's licences, national ID cards, residence permits.

Features: prefilled sign-up forms, expiry tracking, matching the document holder to the account.

Endpoint and schema: Identity Extract with documentType, fullName, dateOfBirth, documentNumber, issuingCountry, nationality, expiryDate.

Checks: expiry date in the future (and far enough ahead for your use); name and date of birth match what the user entered; issuing country in your supported list.

What it does not do: reading a document is not verifying it. PDF Vector extracts the data printed on the ID; it does not check security features, compare a selfie or confirm the document against government records. Regulated identity verification still needs a dedicated verification provider. Extraction is useful for prefilling, record-keeping and expiry reminders around that.

Cost: a 2-page passport scan (photo page and signature page) on Identity Extract pro is 2 × 14 = 28 credits.

More: KYC use case.

Property management and proptech

Documents: leases, rent rolls (often Excel), tenant applications, utility bills, inspection reports.

Features: lease abstraction into the property record, rent and renewal reminders, application screening workflows, rent roll imports.

Endpoints and schema:

  • Leases: Document Extract with tenantNames[], propertyAddress, unit, leaseStart, leaseEnd, monthlyRent, depositAmount, rentEscalation, renewalOption, noticePeriodDays, petsAllowed.
  • Specific clauses: Document Ask, for example "Who is responsible for HVAC repairs?", shown as a note next to the abstract.
  • Rent rolls: Document Extract on the spreadsheet, with units[] of unit, tenant, rent, lease end. Spreadsheets count one page per 3,000 characters.

Checks: lease end after lease start; rent within the expected range for the unit; unit exists in the property record.

Cost: a 24-page lease on Document Extract mini is 24 × 4 = 96 credits. Longer leases with addenda over 30 pages need auto or max; a 40-page lease on max is 40 × 16 = 640 credits, so it is worth confirming whether auto reads it as a text PDF first.

Construction and field services

Documents: certificates of insurance (COIs), subcontractor agreements, change orders, submittals, specification books, lien waivers.

Features: COI compliance tracking, change-order logs, searchable project documents.

Endpoints and schema:

  • COIs: Document Extract with insuredName, insurerName, policies[] (type, policyNumber, effectiveDate, expiryDate, limits), certificateHolder, additionalInsured.
  • Change orders: Document Extract with number, date, description, cost change, schedule change in days, approvals.
  • Specification books and long submittals: Document Parse on auto or max to Markdown, then index for search. These often exceed 30 pages.

Checks: policies not expired; limits meet the contract minimums; the certificate holder is your customer's company.

Cost: a 1-page COI on Document Extract mini is 4 credits; a 300-page spec book parsed on auto as a text PDF is billed at most at mini rates: 300 × 2 = 600 credits.

Logistics and trade

Documents: bills of lading, commercial invoices, packing lists, delivery notes, customs forms; often scanned or photographed at a dock.

Features: shipment record creation, matching packing lists against orders, freight invoice audit.

Endpoints and schema:

  • Commercial and freight invoices: Invoice Extract, adding fields such as incoterms, hsCodes[], originCountry.
  • Bills of lading and packing lists: Document Extract with shipper, consignee, references, packages[] with count, weight and description.

Checks: package counts and weights match between documents; references match the shipment; totals add up.

Cost: phone photos (JPG/PNG) need pro or above; two photos of a bill of lading on Document Extract pro are 2 × 8 = 16 credits.

Insurance and claims

Documents: claim forms, repair estimates, medical or repair invoices, loss run reports (often spreadsheets), policy documents.

Features: claim intake prefill, estimate review, loss run imports for underwriting.

Endpoints and schema:

  • Claim forms and estimates: Document Extract with claimant, policy number, incident date, line items with amounts.
  • Loss runs: Document Extract with claims[] of claim number, date, status, paid, reserved.
  • Policy questions: Document Ask, for example "What is the deductible for water damage?"

Checks: incident date inside the policy period; estimate line items sum to the total; loss run totals match the summary row.

Cost: a 4-page repair estimate on Document Extract mini is 4 × 4 = 16 credits.

Legal and contract management

Documents: contracts, NDAs, amendments, court filings.

Features: contract repositories with searchable text, key-term extraction, renewal alerts, clause Q&A.

Endpoints: Document Parse for the full text (with includePages: true so you can cite page numbers), Document Extract for key terms (parties, dates, renewal, governing law, liability cap), Document Ask for clause questions. For assistants that answer across many contracts, see RAG with PDFs.

Checks: extracted renewal and notice dates consistent with each other; parties match the counterparty record.

Cost: a 15-page contract parsed on mini is 15 × 2 = 30 credits; extracting its key terms on mini adds 15 × 4 = 60 credits.

Research, education and edtech

Documents and data: academic papers, theses, reading lists, grant calls.

Features: literature search inside the product, citation suggestions in writing tools, reading lists from a DOI list, funding discovery.

Endpoints: Academic Search across Semantic Scholar, PubMed, arXiv, Google Scholar, ERIC, Europe PMC, OpenAlex and Crossref (2 credits per request); Academic Fetch by DOI, arXiv or PubMed ID; Academic Parse to turn an open-access paper into Markdown (billed per page like Document Parse); Find Citations (2 credits per sentence); Search Grants for US, EU and UK funding.

Cost: a search returning results from several providers is 2 credits; parsing a 12-page paper on mini is 12 × 2 = 24 credits.

More: literature review use case.

HR and recruiting

Documents: resumes, certificates, right-to-work documents, signed offer letters.

Endpoints and schema: Document Extract for resumes with fullName, email, phone, currentTitle, experience[] (employer, title, startDate, endDate), education[], skills[]. Identity Extract for ID documents.

Checks: dates in order; required certificates present and not expired.

Cost: a 2-page resume on Document Extract mini is 2 × 4 = 8 credits.

Implementation example: prefill an onboarding form

The TypeScript SDK call behind the KYC prefill above:

import { createClient, isPDFVectorUserError } from "@pdfvector/client";

const client = createClient({ apiKey: process.env.PDFVECTOR_API_KEY });

const idSchema = {
  type: "object",
  properties: {
    documentType: { type: "string", enum: ["passport", "driver_license", "national_id", "residence_permit", "other"] },
    fullName: { type: "string" },
    dateOfBirth: { type: "string", description: "YYYY-MM-DD" },
    documentNumber: { type: "string" },
    issuingCountry: { type: "string", description: "ISO 3166-1 alpha-2 code" },
    expiryDate: { type: ["string", "null"], description: "YYYY-MM-DD" },
  },
  required: ["documentType", "fullName", "documentNumber"],
};

export async function prefillFromId(tenantId: string, uploadId: string, fileUrl: string) {
  try {
    const result = await client.identity.extract(
      {
        url: fileUrl,
        prompt: "Extract the holder's details as printed on the document. Dates as YYYY-MM-DD. Use null for fields that are not printed.",
        schema: idSchema,
        model: "auto",
      },
      { context: { documentId: `${tenantId}:${uploadId}` } },
    );
    const id = result.data as { expiryDate: string | null };
    const expired = id.expiryDate !== null && id.expiryDate < new Date().toISOString().slice(0, 10);
    return { fields: result.data, warnings: expired ? ["Document has expired"] : [], credits: result.credits };
  } catch (error) {
    if (isPDFVectorUserError(error)) {
      // For example an unreadable photo or a password-protected PDF: ask the user to upload again.
      return { fields: null, warnings: [error.suggestion], credits: 0 };
    }
    throw error;
  }
}

Passing tenantId:uploadId as the documentId ties every request's credits to a customer, which you need if you price document features per tenant or per usage.

Product decisions that matter more than the API

  • Pricing the feature. Per-page credits make cost predictable per document. Decide whether document extraction is included in a plan tier, metered, or capped per tenant, and record credits from each response to back it.
  • Defaults per document type. Start with auto. For types with strong arithmetic checks (invoices, statements), you can use nano or mini and re-run only failures on pro or max.
  • Review UI. Show the document next to the extracted fields and highlight the ones that failed validation. PDF Vector does not return coordinates, so link to the page (from includePages output) rather than to a box on it.
  • Data residency. The shared instance runs in the US. If your customers need data processed in the UK, EU, Japan, Australia or Asia Pacific, Enterprise dedicated instances cover those regions.

For the backend side (queues, retries, callbacks for long files, multi-tenant attribution), see Document Processing Architecture for SaaS.

FAQ

Which endpoint should a vertical SaaS product start with?

Document Extract with a schema that mirrors your form or table. Move invoices, bank statements and ID documents to their specialised Extract endpoints.

Can a document API replace identity verification?

No. It reads the data printed on an ID. Verifying authenticity, liveness and records needs a dedicated verification provider.

How do I handle documents longer than 30 pages?

Use the auto or max tier, which accept up to 2,000 pages and 500 MB. nano, mini and pro stop at 30 pages and 40 MB.

How do I charge customers for document features?

Record the credits value from each response per tenant (send a tenant-prefixed documentId), then include usage in plans, meter it, or cap it.

Do customers' photos and scans work?

Scanned PDFs work from mini up (nano rejects them); image files (PNG, JPG, TIFF, BMP, HEIF) need pro, max or auto.