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 scenario
Log into Make (make.com). Click Create a new scenario.
- 3
Add a trigger
Add Gmail → Watch Emails to watch for emails with attachments in your AP inbox, or Google Drive → Watch Files in a Folder for a shared invoice folder.
Sign up — get a free API keyNeed your API key first?20 free documents/month — no credit card - 4
Add HTTP → Make a Request
After the trigger, add an HTTP module. Configure every field exactly as shown below:
URL: https://docuparseapi.com/api/v1/extract Method: POST Headers: Authorization: Bearer YOUR_API_KEY Body type: Multipart/form-data Fields: Key: file Value: [map from trigger attachment Data field] Content-type: application/octet-stream Parse response: Yes (toggle ON)
- 5
Add Tools → Sleep
Set the delay to 10 seconds.
- 6
Add HTTP → Make a request (GET)
Fetch the finished result:
URL: https://docuparseapi.com/api/v1/documents/{{document_id from the first HTTP module}} Method: GET Headers: Authorization: Bearer YOUR_API_KEY Parse response: Yes - 7
Add a Router and map to your destination
After the GET module, add a Router. Route 1 filter: data.status = completed → add Google Sheets → Add a Row and map the fields from the GET module. Route 2 filter: data.status = failed → send a Slack or email alert. On Starter and Pro you can replace Sleep + GET with a Make Custom webhook trigger that receives the finished result.
Google Sheets column mappings (GET module): Vendor → data.merchant Invoice # → data.invoice_id Date → data.date Due Date → data.due_date Total → data.total Tax → data.tax Currency → data.currency
Full working example
HTTP Module 1 (submit):
URL: https://docuparseapi.com/api/v1/extract
Method: POST
Headers: Authorization: Bearer YOUR_API_KEY
Body: Multipart/form-data
Key: file
Value: [attachment binary data]
Parse: Yes
Tools → Sleep:
Delay: 10 seconds
HTTP Module 2 (get result):
URL: https://docuparseapi.com/api/v1/documents/{{document_id from module 1}}
Method: GET
Headers: Authorization: Bearer YOUR_API_KEY
Parse: Yes
Router — Success route filter:
data.status = completed
Router — Error route filter:
data.status = failed
Google Sheets — Add a Row (from the GET module):
Vendor → data.merchant
Invoice # → data.invoice_id
Date → data.date
Total → data.total
Tax → data.tax
Currency → data.currency
On Starter and Pro you can replace Sleep + GET with a Make Custom webhook trigger that receives the finished result.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.