Fill IRS tax forms and generate invoices with an API

Fill W-9s, W-8BENs, 1099s and other IRS forms with data from your accounting or payments system, and generate invoices and statements from your own HTML templates.

Start Free Trial

Accounting firms and payment platforms use DocSpring to fill tax forms and produce client documents without retyping figures. Every value is checked against the template's schema before the PDF is generated.

Tax and accounting paperwork you can automate

W-9 and W-8BEN collection

Collect a signed W-9 from every vendor and contractor, or a W-8BEN or W-8BEN-E from foreign payees, and keep the PDF on file.

1099 recipient copies

Generate 1099-NEC recipient copies for every contractor you paid, in batches of up to 50 per request.

IRS authorizations

Fill Form 8821 and Form 2848 so clients can authorize you to see their tax information or represent them before the IRS.

Invoices and statements

Generate invoices, statements and receipts from HTML templates, with line items, totals and your own branding.

Tax returns and schedules

Fill forms like Schedule C and Form 941 from the figures in your accounting system.

Payment reminders and past-due notices

Generate payment reminders and past-due notices from your accounting data, with each customer's balance and unpaid invoices.

Accounting and tax form templates

How it works

Upload your PDF

Upload your PDF

Fillable fields are imported automatically. For a flat or scanned PDF, drag fields onto the page in the template editor.

Set up your fields

Map the fields once

Name each field and set its type. Every template gets a JSON schema, so bad data returns a clear error instead of a wrong document.

Send an API request

Fill it from your app

Send JSON to our API or SDKs and download the finished PDF, or share a hosted form that fills the PDF for you.

Works with your code and your tools

API and SDKs

A REST API with official SDKs in 9 languages: Ruby, Python, JavaScript, TypeScript, PHP, C#, Java, Go and Elixir.

Hosted web forms

Every template gets a web form that you can share as a link or embed on your site. Each submission becomes a filled-out PDF.

E-signatures with Data Requests

Send someone a hosted or embedded form to check their details and sign. Every signed PDF includes an audit trail.

Webhooks and no-code tools

Webhooks tell your app when a PDF is ready. You can also connect Zapier, n8n, Node-RED, Bubble or Parabola, or save PDFs to your own S3 bucket.

Security and compliance

SOC 2 Type II audited

SOC 2 Type II

GDPR Compliant

GDPR Compliant

HIPAA Compliant

HIPAA Compliant

DocSpring has completed a SOC 2 Type II audit and is GDPR and HIPAA compliant. You choose US or EU data residency when you sign up.
We sign Business Associate Agreements (BAAs) on request.

Learn More

Accounting FAQ

Can I fill W-9 and W-8BEN forms automatically?

Yes. Our template library includes the W-9 and W-8BEN, or you can upload your own copy. Send the payee's details as JSON and DocSpring returns the completed form as a PDF.

Can I collect a signed W-9 from a vendor online?

Yes, with Data Requests. The vendor opens a hosted or embedded form, enters their taxpayer details and signs. DocSpring fills the W-9 and adds an audit trail to the signed PDF.

Can I generate 1099-NEC forms in bulk?

Yes, for the copies you send to recipients. A batch request generates up to 50 forms, each with its own payee and amounts. The IRS doesn't accept printouts of Copy A from a downloaded PDF, so file that copy electronically or on the official red-ink form.

What happens when the IRS publishes a new revision of a form?

Upload the new revision to the same template and adjust any fields that moved. If the field names stay the same, your code keeps working.

Can I generate invoices from my own HTML template?

Yes. Write the invoice in HTML and CSS, and use Liquid to loop over line items and show totals. DocSpring renders it to PDF with headless Chrome, so it looks the same as it does in your browser.

Can I fill Form 8821 or Form 2848 for clients?

Yes. Both are fillable IRS PDFs. Map them once, fill them with each client's details, and send the form to the client to sign with a Data Request. The IRS only accepts electronically signed 8821s and 2848s through its online submission tool, so upload the signed PDF there instead of faxing or mailing it.

How are Social Security and taxpayer ID numbers protected?

Submission data is encrypted at rest with AES-256, and DocSpring has completed a SOC 2 Type II audit. You can also set a template to delete submission data and generated PDFs automatically after a set time.

Upload your own tax and accounting forms

Sign up for a free trial and try out DocSpring with your own PDFs.