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.
Sign up — get a free API keyNeed your API key first?20 free documents/month — no credit card - 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
Add Delay by Zapier → Delay For
1 minute.
- 6
Add Webhooks by Zapier → GET
Fetch the finished result:
URL: https://docuparseapi.com/api/v1/documents/{{document_id from the POST step}} Headers: Authorization: Bearer YOUR_API_KEY - 7
Add Filter by Zapier
Only continue if status exactly matches completed.
- 8
Use the extracted data
Add your final action. Zapier exposes the GET step's fields with double-underscore notation. Webhooks by Zapier is a premium Zapier app; check that your Zapier plan includes it.
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
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: Delay by Zapier → Delay For
1 minute
Action 3: Webhooks by Zapier → GET
URL: https://docuparseapi.com/api/v1/documents/{{document_id from Action 1}}
Headers:
Authorization: Bearer YOUR_API_KEY
Action 4: Filter by Zapier
Only continue if status exactly matches completed
Action 5: Google Sheets → Create Spreadsheet Row
Vendor: data__merchant
Invoice #: data__invoice_id
Date: data__date
Total: data__total
Currency: data__currency
Webhooks by Zapier is a premium Zapier app; check that your Zapier plan includes it.
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
| Field | Description |
|---|---|
merchant | The vendor or store name |
total | The final charged amount including tax |
subtotal | The pre-tax amount |
tax | The tax amount charged |
date | Invoice or transaction date (ISO 8601) |
due_date | Payment due date, or null if not present |
invoice_id | Invoice number or receipt ID from the document |
currency | ISO 4217 currency code (USD, EUR, GBP, etc.) |
payment_method | Card type, cash, or other payment method |
line_items | Array of items with description, quantity, price, line_total, vat_rate |
Common errors and fixes
MISSING_API_KEY | Authorization header missing | Add header: Authorization: Bearer YOUR_KEY |
INVALID_API_KEY | Key not recognised | Check key in dashboard — regenerate if needed |
LIMIT_EXCEEDED | Monthly document limit reached | Upgrade at docuparseapi.com/pricing |
UNSUPPORTED_FILE_TYPE | File format not supported | Use PDF, JPG, PNG or CSV |
FILE_TOO_LARGE_AUTHENTICATED | The file is too large | Compress the image or split the PDF |
TOO_MANY_PAGES | More than 20 pages | Split the PDF into parts of up to 20 pages |
EXTRACTION_FAILED | Document could not be parsed | Try a cleaner scan or different file |
Ready to start?
20 documents a month free, with full API access. No credit card. Webhooks on Starter and Pro.