IntegrationsZapier
Z
Automation

Invoice Parsing with Zapier — Extract Receipt Data and Send It Anywhere

Connect DocuParseAPI to 6,000+ apps without writing code. Every invoice extracted, every field routed, automatically.

Trusted by developers worldwide to automate document workflows.

Get Your Free API KeyView API Docs
Free DocuParseAPI accountZapier accountTrigger source

The guide

1
Get your API key
Sign up at docuparseapi.com/signup. Go to Dashboard → API Keys → Create new key.
2
Create a new Zap
Log into Zapier. Click Create Zap.
3
Choose a trigger
Gmail → New Attachment fires when an email with an attachment arrives. Google Drive → New File in Folder fires when a file is added to a folder. Test the trigger with a real invoice email to confirm the file data is available.
Need your API key first?
20 free documents/month — no credit card
Get Free API Key →
4
Add Webhooks by Zapier → POST
Add an action step. Search for Webhooks by Zapier → POST. Configure as shown below:
URL:          https://docuparseapi.com/api/v1/extract
Payload Type: Form
Data:
  Key:   file
  Value: [Attachment from trigger — File field]
Headers:
  Authorization: Bearer YOUR_API_KEY
5
Use the extracted data
Add your final action. Zapier exposes all response fields with double-underscore notation:
data__merchant      →  Vendor name
data__total         →  Total amount
data__tax           →  Tax amount
data__date          →  Invoice date
data__invoice_id    →  Invoice number
data__currency      →  Currency code

Common destinations: Google Sheets, QuickBooks, Notion, Slack

Full working example

text
Trigger: Gmail → New Attachment

Action 1: Webhooks by Zapier → POST
  URL:          https://docuparseapi.com/api/v1/extract
  Payload Type: Form
  Data Key:     file
  Data Value:   [Attachment from trigger]
  Headers:
    Authorization: Bearer YOUR_API_KEY

Action 2: Google Sheets → Create Spreadsheet Row
  Vendor:    data__merchant
  Invoice #: data__invoice_id
  Date:      data__date
  Total:     data__total
  Currency:  data__currency

Note: If Zapier passes the file as a URL rather than binary,
add a Webhooks GET action before the POST to download it first.

What gets extracted

merchantThe vendor or store name
totalThe final charged amount including tax
subtotalThe pre-tax amount
taxThe tax amount charged
dateInvoice or transaction date (ISO 8601)
due_datePayment due date, or null if not present
invoice_idInvoice number or receipt ID from the document
currencyISO 4217 currency code (USD, EUR, GBP, etc.)
payment_methodCard type, cash, or other payment method
line_itemsArray of items with description, quantity, unit_price, total

Common errors and fixes

MISSING_API_KEYAuthorization header missingAdd header: Authorization: Bearer YOUR_KEY
INVALID_API_KEYKey not recognisedCheck key in dashboard — regenerate if needed
LIMIT_EXCEEDEDMonthly document limit reachedUpgrade at docuparseapi.com/pricing
UNSUPPORTED_FILE_TYPEFile format not supportedUse PDF, JPG, or PNG only
FILE_TOO_LARGE_AUTHENTICATEDFile exceeds 10 MBCompress the file before sending
EXTRACTION_FAILEDDocument could not be parsedTry a cleaner scan or different file

Ready to start?

20 documents free every month. No credit card. Set up in 5 minutes.

Get Your Free API Key