Skip to content
Reading documents 3 min read · LogicSpoke PDF

Extract structured data from expense reports via API

TL;DR: sys_expense_report extracts employee name, reporting period, itemized expense rows (date, category, description, amount), total, and approver — one API call into your reimbursement pipeline.

Expense reports are a step further along than a single receipt — they bundle multiple expenses across a reporting period into one document for approval. sys_expense_report extracts the whole thing as one structured record.

What gets extracted

Field Type Notes
employeeName string
reportingPeriod {from, to}
expenses array of {date, category, description, amount} Itemized rows
totalAmount number
currency string
approverName string

The API call

curl -X POST "https://api.logicspoke.com/pdf/v1/pdf/parse/sync" \
     -H "Authorization: Bearer YOUR_API_KEY" \
     -F "[email protected]" \
     -F "schemaId=sys_expense_report"

Response:

{
  "success": true,
  "parseId": "parse_vwx234",
  "data": {
    "employeeName": "David Miller",
    "reportingPeriod": { "from": "2026-06-01", "to": "2026-06-15" },
    "expenses": [
      { "date": "2026-06-05", "category": "Travel", "description": "Taxi to airport", "amount": 45.00 }
    ],
    "totalAmount": 45.00,
    "currency": "USD",
    "approverName": null
  },
  "usage": { "pages": 1, "creditsUsed": 2 }
}

Note: unlike the finance-category schemas (sys_invoice, sys_receipt, sys_bank_statement), sys_expense_report is categorized as general-purpose, not finance — PII redaction is not applied automatically here. Pass redact=true explicitly if the report contains information you want stripped before it reaches the AI model.

Questions

Can this reconcile expenses against attached receipts?

Not automatically — extracting the expense report and extracting each attached receipt (via sys_receipt) are separate parse calls. Cross-checking totals between them is validation logic you build, similar to the invoice total-reconciliation pattern in the invoice automation guide.

Why doesn't this auto-redact like the invoice/receipt schemas do?

It's categorized as a general-purpose HR/ops document rather than finance in the schema catalog — this is a categorization detail in how the schema is tagged, not a judgment that expense data is less sensitive. If you need redaction for compliance reasons, pass redact=true explicitly.

What if the approver hasn't signed off yet?

approverName comes back empty/null if the document doesn't show one — the field reflects what's actually printed on the report at the time of parsing.

Try it on a real expense report.

Starter credits included on signup. No card required.