Invoice Email Template

Professional invoices that get paid faster. Clear line items, prominent due dates, and one-click payment links.

Email Preview

Subject:Invoice #INV-2024-001 — $$79.96 due March 15, 2024

Use with AI Assistants

Copy and paste this prompt into your AI assistant

Claude Code
Claude Code
Cursor
Cursor
Windsurf
Windsurf
Implement an invoice email using the Ark API.

Fetch the template and code examples from: https://arkhq.io/templates/invoice.md

Replace the template variables with the actual values for:
- {{name}}: The recipient's name
- {{email}}: The recipient's email
- Other variables as documented in the template

Then send via Ark API.

The AI will fetch the template from the URL and use it to send your email through Ark.

Why invoice emails improve cash flow

  • Email invoices get paid 2x faster than paper invoices
  • Clear due dates and payment links reduce late payments by 25%
  • Professional formatting builds trust and reduces disputes
  • Automated invoicing saves hours of manual work

Code Examples

Use the HTML template above with these code examples

import Ark from "@arkhq/sdk";

const ark = new Ark({ apiKey: process.env.ARK_API_KEY });

interface LineItem {
  description: string;
  quantity: number;
  unitPrice: number;
  total: number;
}

interface Invoice {
  number: string;
  dueDate: string;
  lineItems: LineItem[];
  total: number;
  paymentLink: string;
}

async function sendInvoice(email: string, name: string, invoice: Invoice) {
  const itemsHtml = invoice.lineItems
    .map(item => `
      <div style="display:flex;justify-content:space-between;margin-bottom:10px;">
        <span>${item.description} × ${item.quantity}</span>
        <span>$${item.total.toFixed(2)}</span>
      </div>
    `)
    .join("");

  await ark.emails.send({
    from: "[email protected]",
    to: email,
    subject: `Invoice #${invoice.number} — $${invoice.total.toFixed(2)} due ${invoice.dueDate}`,
    html: `
      <h1>Invoice #${invoice.number}</h1>
      <p style="color:#666;">Due ${invoice.dueDate}</p>
      <p>Hi ${name},</p>
      <p>Please find your invoice below.</p>
      <div style="background:#f9f9f9;border-radius:8px;padding:20px;margin:20px 0;">
        ${itemsHtml}
        <hr style="border:none;border-top:1px solid #eee;margin:15px 0;">
        <div style="display:flex;justify-content:space-between;font-weight:bold;font-size:18px;">
          <span>Total Due</span>
          <span>$${invoice.total.toFixed(2)}</span>
        </div>
      </div>
      <a href="${invoice.paymentLink}" style="background:#000;color:#fff;padding:12px 30px;text-decoration:none;border-radius:6px;display:inline-block;">Pay Now</a>
    `,
  });
}

Best Practices

  • Include invoice number and due date in subject line
  • Itemize all charges for transparency
  • Provide one-click payment link (Stripe, PayPal, etc.)
  • Show company details for tax/accounting purposes
  • Send payment reminders before and after due date
  • Include clear contact info for billing questions

Frequently Asked Questions

When should I send invoice emails?

Send invoices immediately when charges occur (for usage-based billing) or at the start of a billing cycle (for subscriptions). For one-time services, send upon project completion or milestone.

Should I attach a PDF invoice?

PDF attachments are helpful for accounting purposes. Include both an inline summary and a PDF attachment, or link to a downloadable PDF from the email.

How do I handle overdue invoices?

Send automated reminders: 3 days before due date (friendly), on due date (reminder), 7 days overdue (firm), 30 days overdue (final notice). Adjust tone progressively.

What payment methods should the payment link support?

At minimum: credit card and ACH/bank transfer. Consider PayPal for international customers. Stripe Checkout handles this well with one link.

Related Templates

Learn More

Ready to send emails?

Get started with Ark in under 2 minutes. $2.50 welcome credit included.