Automation

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

Connect DocuParse API to thousands of apps through Zapier, without writing code. Every invoice extracted, every field routed, automatically.

By Othmane M., founder of DocuParse API · Last reviewed: 2026-10-20

The guide

  1. 1

    Get your API key

    Sign up at docuparseapi.com/signup. Go to Dashboard → API Keys → Create new key.

  2. 2

    Create a new Zap

    Log into Zapier. Click Create Zap.

  3. 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
    Sign up — get a free API key
  4. 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. 5

    Add Delay by Zapier → Delay For

    1 minute.

  6. 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. 7

    Add Filter by Zapier

    Only continue if status exactly matches completed.

  8. 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

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: 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

FieldDescription
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, price, line_total, vat_rate

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, PNG or CSV
FILE_TOO_LARGE_AUTHENTICATEDThe file is too largeCompress the image or split the PDF
TOO_MANY_PAGESMore than 20 pagesSplit the PDF into parts of up to 20 pages
EXTRACTION_FAILEDDocument could not be parsedTry 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.

Sign up — get a free API key