Introducing the Pocketsflow startup program: Win $100K if you are a startupWin $100K if you are a startup

SellInvoices

Invoices without the busywork.

Every purchase generates a professional invoice automatically. Buyers download when they need it; you can view, download, or resend from the dashboard.

Pocketsflow orders list where invoices are available per sale
Tied to every orderOpen a sale and grab the invoice: no manual PDF crafting.
  • Auto generated

    A detailed invoice is created for every paid transaction.

  • Buyer self serve

    Customers view and download invoices without emailing you.

  • Resend anytime

    Creators can download or resend invoices from the dashboard.

import { createHmac, timingSafeEqual } from "node:crypto";

export async function POST(req: Request) {
  const raw = await req.text();
  const signature = req.headers.get("X-Pocketsflow-Signature") ?? "";
  const expected = createHmac("sha256", process.env.POCKETSFLOW_WEBHOOK_SECRET!)
    .update(raw)
    .digest("hex");

  if (!timingSafeEqual(Buffer.from(signature), Buffer.from(expected))) {
    return new Response("invalid signature", { status: 401 });
  }

  const event = req.headers.get("X-Pocketsflow-Event");
  const payload = JSON.parse(raw);

  switch (event) {
    case "invoice.payment_succeeded":
      await markPaid(payload.invoice.id);
      break;
    case "invoice.payment_failed":
      await remindCustomer(payload.customer.email);
      break;
  }

  return new Response("ok");
}

Read every invoice from the API.

Create a checkout, attach a product, and let Pocketsflow handle the transaction lifecycle: payment, tax, delivery, and the receipt.

Every resource is an HTTPS endpoint under one base URL with Bearer API keys. Live and test keys are scoped to their own data; the OpenAPI spec is served at /docs.json.

npm install pocketsflow

How it works.

  1. Sale completes

    Payment clears on checkout: no invoice form to fill out.

  2. Invoice is created

    Pocketsflow issues a professional invoice as Merchant of Record.

  3. Buyer downloads

    They view or download from their purchase records whenever needed.

  4. You stay in control

    Open any order to download or resend the invoice to the buyer.

Common questions.

Do I create invoices manually?

No. Every paid sale generates an invoice automatically.

Can buyers get a copy later?

Yes. They can view and download invoices from their purchase records, and you can resend from the dashboard.

Are invoices tax compliant?

Pocketsflow issues invoices as Merchant of Record with the tax treatment handled on the order.

Where do I find invoices as a creator?

From your orders and sales history: open a transaction to view, download, or resend.

Start accepting payments today.

Start accepting payments without building the infrastructure around them.