A Power Automate flow sends each new email to parserkit for $0.02 a page, 50 pages free, and gets the invoice back with every total checked. An email with a 1-page PDF is back in about 14 seconds.

Emails and PDFs to JSON in Power Automate

Export each new Outlook email as an .eml of up to 25 MiB and post it with the premium HTTP action. The 60 second wait sits well under the action's 120 second timeout, and the flow gets the invoice fields back as checked JSON.

IntegrationsUpdated

Power Automate

Set it up in Power Automate

  1. Trigger on new mail

    Start the cloud flow with Office 365 Outlook, When a new email arrives (V3), on the mailbox or folder that gets invoices.

  2. Export the email

    Add Export email (V2) with the trigger's Message Id. Its output is the whole message as an EML file, attachments included.

  3. Post it with HTTP

    Add the HTTP action: Method POST, URI https://api.parserkit.com/v1/parse?wait=60, a header Authorization with Bearer and your parserkit API key, and this body, with the Export email output in the file part.

    HTTP action body
    {
      "$content-type": "multipart/form-data",
      "$multipart": [
        {
          "headers": { "Content-Disposition": "form-data; name=\"preset\"" },
          "body": "invoice"
        },
        {
          "headers": {
            "Content-Disposition": "form-data; name=\"file\"; filename=\"email.eml\"",
            "Content-Type": "message/rfc822"
          },
          "body": "<Body from Export email (V2)>"
        }
      ]
    }
  4. Turn off the asynchronous pattern

    In the HTTP action's Settings, under Networking, turn Asynchronous pattern Off. parserkit's job GET answers 200 while a job is still running, so the built-in polling would stop too early.

  5. Read the result

    The response body holds the fields under data and the check status in verification_status. Post verified invoices on, and send the rest to a person.

Example

An invoice email posted as .eml

Below is a real run: an .eml email with BRC-1197.pdf attached, sent as multipart with the preset part first and the file as message/rfc822, the way the HTTP action sends it. It came back verified in about 14 seconds, with BRC-1197.pdf listed under documents with source attachment.

POSTapi.parserkit.com/v1/parse?wait=60

curl
curl "https://api.parserkit.com/v1/parse?wait=60" \
  -H "Authorization: Bearer $PARSERKIT_API_KEY" \
  -F preset=invoice \
  -F "file=@invoice-bellwether-1197.eml;type=message/rfc822"
response.jsonverified
{
  "id": "job_vhnnh74zilblnld1a2nm",
  "status": "succeeded",
  "source": "api",
  "preset": "invoice",
  "file": {
    "name": "invoice-bellwether-1197.eml",
    "bytes": 38514,
    "kind": "eml"
  },
  "pages": 1,
  "digital_pages": 1,
  "ocr_pages": 0,
  "repaired_fields": 0,
  "cost_usd": 0.02,
  "verification_status": "verified",
  "duplicate": null,
  "outputs": [
    {
      "name": "output.json",
      "bytes": 12077
    },
    {
      "name": "output.xlsx",
      "bytes": 9322
    },
    {
      "name": "output.csv",
      "bytes": 630
    },
    {
      "name": "quickbooks.csv",
      "bytes": 648
    },
    {
      "name": "xero.csv",
      "bytes": 1459
    }
  ],
  "webhook_status": null,
  "error": null,
  "created_at": "2026-11-07T09:32:39.927Z",
  "finished_at": "2026-11-07T09:32:54.151Z",
  "data": {
    "invoice_number": "BRC-1197",
    "issue_date": "2026-11-06",
    "due_date": "2026-12-06",
    "currency": "USD",
    "vendor": {
      "name": "Bellwether Ridge Candle Co."
    },
    "customer": {
      "name": "Juniper & Ash General Store"
    },
    "line_items": [
      {
        "description": "Soy candle 8 oz, Balsam Fir",
        "quantity": 24,
        "unit_price": 9.5,
        "total": 228
      },
      {
        "description": "Soy candle 8 oz, Maple Smoke",
        "quantity": 12,
        "unit_price": 9.5,
        "total": 114
      }
    ],
    "subtotal": 679.5,
    "shipping": 32.5,
    "grand_total": 712,
    "amount_paid": 200,
    "amount_due": 512
  },
  "verification": {
    "status": "verified",
    "math_balanced": true,
    "coverage": {
      "values": 36,
      "checked": 36
    },
    "checks": [
      {
        "kind": "line_total",
        "path": "line_items[0].total",
        "status": "pass",
        "expected": 228,
        "actual": 228,
        "difference": 0,
        "message": "quantity x unit price"
      },
      {
        "kind": "sum",
        "path": "grand_total",
        "status": "pass",
        "expected": 712,
        "actual": 712,
        "difference": 0,
        "message": "the line totals + shipping"
      },
      {
        "kind": "balance",
        "path": "amount_due",
        "status": "pass",
        "expected": 512,
        "actual": 512,
        "difference": 0,
        "message": "grand total less the amount paid"
      }
    ]
  },
  "warnings": [],
  "documents": [
    {
      "index": 0,
      "name": "BRC-1197.pdf",
      "source": "attachment",
      "kind": "pdf",
      "pages": 1
    }
  ]
}

Real response from . Trimmed to 2 of 5 line items and 3 of 8 checks, with addresses, bounding boxes, the document's own fields and file links left out.

The HTTP action, set up for parserkit

Fields and settings of the premium HTTP action in this flow.

The HTTP action, set up for parserkit
SettingValue
MethodPOST
URIhttps://api.parserkit.com/v1/parse?wait=60
HeadersAuthorization: Bearer and your parserkit API key
Body$multipart: a preset part, then the .eml as message/rfc822
Asynchronous patternOff
LicenseA plan with premium connectors

Sources: Microsoft: HTTP action, Microsoft: Power Automate licensing FAQ

You need a premium license

The HTTP connector is a premium connector in Power Automate. If you're on the free plan or one of the Microsoft 365 license plans, you only get standard connectors, while most other license plans and trials include premium connectors. Check that your plan reaches the HTTP action before you build the flow.

Why send the whole email

Export email (V2) hands the HTTP action the whole message as one .eml file, attachments included, up to 25 MiB. An .eml, .msg or .zip file can hold several documents, and we list each one under documents with its source: file, attachment, body or zip_entry. With one document, as in our run, data and verification hold its fields and checks. With more, both are null: read each document's own data, and verification_status is the worst of them.

When the job outlasts the wait

POST /v1/parse waits up to 60 seconds, well under Power Automate's 120 seconds (2 minutes) outbound synchronous request timeout. If the job is still running then, it answers 202 with Location /v1/jobs/{id} (a path) and Retry-After 2. With the Asynchronous pattern Off, the action stops checking that Location header and your flow handles the 202 itself. GET /v1/jobs/{id} answers 200 with the job as it is then, even while it is queued or running, so loop on it until the status changes.

  • Loop on GET https://api.parserkit.com/v1/jobs/{id}?wait=60, which holds each answer up to 60 seconds while the job runs, until status is no longer queued or running.
  • 2 jobs run at once until you add credit, 12 after; a third gets 429 with Retry-After. Codes are in errors and limits.

FAQ

Common questions

Is the HTTP action premium in Power Automate?

Yes. As Microsoft puts it, "The Premium HTTP connection is built into Microsoft Power Apps and Microsoft Power Automate." The free plan and Microsoft 365 licenses only reach standard connectors, though most other plans and trials give you access to premium connectors.

Can I send just the PDF attachment instead of the whole email?

Yes, put the PDF in the file part instead of the .eml. Sending the .eml from Export email (V2) just lets you pass the whole message (up to 25 MiB) at once, and any documents in an .eml, .msg or .zip are listed under documents with source file, attachment, body or zip_entry.

Why turn off the Asynchronous pattern?

When Asynchronous pattern is on, the HTTP action polls the location header from a 202 response "until the receiver stops processing and returns a 200 OK success response or other non-202 response". On parserkit, POST /v1/parse returns 202 after 60 seconds with Location /v1/jobs/{id} (a path) and Retry-After 2, and GET /v1/jobs/{id} returns 200 while the job is still queued or running. Turn Asynchronous pattern to Off under Settings, Networking, and if you get a 202, call GET /v1/jobs/{id}?wait=60, which waits up to 60 seconds for the job to finish, and repeat while it is queued or running.

What does it cost?

Your first 50 pages are free, and after that it's $0.02 a page, or $0.01 a page past 5,000 pages in a UTC month, while failed jobs cost 0. You can run 2 jobs at once until you add credit and 12 at once after (an extra job gets 429 RATE_LIMITED with Retry-After).

Start free

Send us your worst scan

Your first $1 is free: 50 pages with every check and export, no card.

Crumpled receipts and a printed bank statement with one line marked in green highlighter, on a dark desk