AI-Receipt Parser for Zapier
What this action does
What this action does: The PDF4me AI-Receipt Parser action uses machine-learning OCR to convert receipt PDFs and images into structured JSON data inside your Zap. Send in a receipt from Gmail, Google Drive, OneDrive, Dropbox, or a form upload and get back merchant name, transaction date, receipt number, line items, subtotal, tax, total, and payment method - plus type-specific fields for hotel, fuel, healthcare, training, and subscription receipts. Downstream steps can write the parsed data to Google Sheets, QuickBooks, Xero, Airtable, or any Zapier-connected app for hands-free expense management.
Authenticating Your API Request
Every PDF4me action in Zapier requires a valid API key. Authenticate once when you add PDF4me as a connected account - Zapier securely stores the key and reuses it across all your PDF4me Zaps automatically.
Important Facts You Should Not Miss

Parameters
⚠️ Parameters marked Required must be provided for the action to run. Optional parameters expand the data groups returned - enable the ones your downstream steps actually need.
| Parameter | Required | What it does | Example |
|---|---|---|---|
| Receipt File | Yes | The source receipt file. Map the file output from a Zapier trigger or previous action - Gmail attachment, Google Drive / OneDrive / Dropbox file, or form upload. Accepts PDF, PNG, JPG, and JPEG. | receipt_2024_03_15.pdf (from Gmail trigger) |
| Receipt Name | Yes | File name including the extension. Used by the AI to identify the receipt format and optimise extraction. Can be mapped dynamically from trigger metadata. Must end in .pdf, .png, .jpg, or .jpeg. | office_supplies_receipt.pdf |
| Receipt Type | No | Optional category hint for the AI. Supported values: meal · supplies · hotel · fuel and energy · transportation · communication · subscriptions · entertainment · training · healthcare · generic. Leaving this blank triggers automatic type detection. | hotel |
| Analyze Items | No | Enable line-item extraction. When true, the analyzeItems array is populated with item name, quantity, unit price, total price, category, description, SKU, brand, size, and colour for each line on the receipt. | true |
| Extract Merchant Info | No | Enable merchant information extraction. When true, the output includes merchantName, merchantAddress, merchantPhone, merchantWebsite, storeNumber, and cashierName from the receipt header. | true |
| Calculate Totals | No | Enable financial totals extraction. When true, the output includes subtotal, taxAmount, totalAmount, paymentMethod, and cardLastFour. Disable to skip financial parsing when you only need metadata. | true |
| Custom Field Keys | No | Optional list of extra field names to extract beyond the standard set. Pass as a JSON array. Useful for domain-specific fields printed on internal or industry receipts not covered by standard extraction. | ["costCenter","projectCode"] |
Output Fields
The action returns structured receipt data. Map any of these fields in subsequent Zap steps.
| Output Field | Description |
|---|---|
receiptType | Detected or specified receipt category (e.g. supplies, hotel, fuel, healthcare, generic) |
transactionDateStr | Transaction date in ISO 8601 format (YYYY-MM-DD) |
transactionTime | Transaction time (HH:MM:SS) when printed on the receipt |
receiptNumber | Receipt or transaction identifier extracted from the document |
merchantName | Name of the merchant - populated when Extract Merchant Info is enabled |
merchantAddress | Full merchant address - populated when Extract Merchant Info is enabled |
merchantPhone / merchantWebsite | Contact details extracted from the receipt header |
storeNumber / cashierName | Store location code and cashier name when visible on the receipt |
subtotal / taxAmount / totalAmount | Financial figures extracted when Calculate Totals is enabled |
paymentMethod / cardLastFour | Payment type (Cash, Credit Card, etc.) and last 4 card digits |
analyzeItems[] | Array of line-item objects (name, qty, unitPrice, totalPrice, SKU, brand) - populated when Analyze Items is enabled |
roomNumber / checkInDate / checkOutDate | Hotel-specific fields - populated when Receipt Type is hotel |
fuelType / fuelQuantity / fuelUnit / vehicleNumber | Fuel-specific fields - populated when Receipt Type is fuel and energy |
healthcareProvider / patientName / insuranceInfo | Healthcare-specific fields - populated when Receipt Type is healthcare |
trainingProvider / courseName | Training-specific fields - populated when Receipt Type is training |
warnings[] | Array of extraction warning messages - flag these for manual review in your Zap |
fallbackUsed | true when a secondary extraction method was used; consider routing to review queue |
rawOcrText | Full OCR text from the receipt - useful for keyword search or audit logging |
jobId / success / message | Processing job ID, boolean success flag, and descriptive result message |
Quick Setup
- Create or open a Zap and add a trigger that supplies a receipt file - Gmail new attachment, Google Drive new file in folder, OneDrive, Dropbox, or Typeform file upload.
- Add an action step → search PDF4me → select AI-Receipt Parser.
- Authenticate with your PDF4me API key if not already connected (enter it in the Zapier account dialog).
- Map Receipt File from the trigger output (the binary file field, not a URL).
- Map Receipt Name - use the filename field from the trigger so the extension is always correct.
- Set Receipt Type if you know the category; otherwise leave blank for automatic detection.
- Enable Analyze Items if you need line-item data; enable Extract Merchant Info and Calculate Totals for expense workflows.
- Add Custom Field Keys as a JSON array if your receipts contain non-standard fields.
- Test the step - Zapier will run a sample and show you all returned output fields.
- Add downstream steps to write merchantName, totalAmount, transactionDateStr, and other fields to Google Sheets, QuickBooks, Xero, or your database.
Workflow Examples
Workflow ExamplesCommon Zapier patterns using AI-Receipt Parser.
Capture receipt attachments from Gmail and write parsed expense rows to a Google Sheet automatically.
- Gmail: New Attachment - filter by subject containing "Receipt" or sender domain.
- PDF4me: AI-Receipt Parser - map File and Filename; enable Extract Merchant Info + Calculate Totals.
- Google Sheets: Append Row - map merchantName, transactionDateStr, totalAmount, paymentMethod, receiptType.
- Gmail: Send Email - notify finance team with a summary row for each processed receipt.
When an employee drops a receipt in a shared Drive folder, parse it and create a QuickBooks expense automatically.
- Google Drive: New File in Folder - watch the shared "Receipts" folder.
- PDF4me: AI-Receipt Parser - enable Analyze Items + Calculate Totals + Extract Merchant Info.
- Zapier Filter: only continue if success = true and totalAmount > 0.
- QuickBooks: Create Expense - map vendor (merchantName), date (transactionDateStr), total (totalAmount).
- Google Drive: Move File to "Processed" subfolder to prevent duplicate parsing.
Detect specialised receipt types and route hotel and fuel receipts to separate tracking sheets automatically.
- Dropbox: New File in Folder - team travel receipts folder.
- PDF4me: AI-Receipt Parser - leave Receipt Type blank for auto-detection; enable all three toggles.
- Zapier Paths: Branch A → hotel → Google Sheets "Travel" tab (roomNumber, checkInDate, totalAmount); Branch B → fuel → "Fleet" tab (fuelType, fuelQuantity, vehicleNumber); Branch C → all others → "General Expenses" tab.
- Slack: Post message to #expenses summarising receipt type, merchant, and total.