Business Docs & Data (MPP + x402): invoice/receipt PDFs with crypto QR, payment URIs, phone validation, barcodes - from $0.001

Card-only SaaS jobs, pay-per-call in stablecoins: invoice and receipt PDFs from JSON with a pay-in-crypto QR (EIP-681 USDC on Base/Ethereum/L2s, Solana Pay, bitcoin:) at $0.01; wallet payment-request URIs + QR at $0.001; phone-number validation, line type and formatting for 240+ regions (batch 100) at $0.001; barcodes (EAN/UPC, Code 128, GS1-128, DataMatrix, PDF417, QR, Aztec and more) as SVG at $0.002. Pure compute, nothing stored. Pay with MPP on Tempo (USDC.e/pathUSD) or x402 on Base (USDC). Invalid input returns 402 with the reason and is not charged.

No account and no API key. Pay per successful call with MPP on Tempo (USDC.e or pathUSD). Invalid input or an upstream failure returns 402 and is not charged.

Routes

RoutePriceWhat you get
POST /invoice/pdf$0.01Invoice PDF (with pay-in-crypto QR)
Generate a clean, multi-page invoice PDF from JSON: seller/buyer blocks, line items with per-line tax, discount, shipping, totals and amount due; optional pay-with-crypto block with a scannable QR (EIP-681 for USDC/USDT/ETH on Base, Ethereum, Arbitrum, Optimism, Polygon; Solana Pay; bitcoin:) prefilled with the amount due. Returns application/pdf (format=json for base64 + totals). Nothing stored.
POST /receipt/pdf$0.01Receipt PDF (PAID stamp, tx hash)
Generate a receipt PDF with a PAID stamp, totals, amount paid and balance, plus an on-chain payment record (tx hash, date, explorer link) and the crypto payment details. Same JSON as /invoice/pdf. Returns application/pdf (format=json for base64).
POST /crypto/pay-uri$0.001Crypto payment request URI + QR (EIP-681, Solana Pay, BIP-21)
Build a wallet-scannable payment request: EIP-681 (ERC-20 transfer with exact base-unit amount, or native value) for Base/Ethereum/Arbitrum/Optimism/Polygon or any chain_id + token_address, Solana Pay (USDC SPL), or BIP-21 bitcoin:. Returns the URI, an SVG QR and the base-unit amount.
POST /phone/validate$0.001Phone number validation & formatting (batch 100)
Validate and normalize phone numbers for 240+ regions using Google libphonenumber metadata: valid/possible, E.164, country, calling code, line type (mobile, fixed_line, toll_free, voip, premium_rate...), international/national/RFC 3966 formats, extension. Up to 100 per call for the same price. No carrier or live-line lookup (no HLR); nothing stored.
POST /phone/extract$0.001Find & normalize phone numbers in text
Extract every phone number from free text (emails, pages, OCR output) with positions, validity, E.164, country, line type and formats.
POST /barcode/svg$0.002Barcode generator (EAN/UPC, Code 128, GS1-128, DataMatrix, PDF417, QR, Aztec...)
Render barcodes as crisp SVG with check digits computed and validated: Code 128, EAN-13, EAN-8, UPC-A, UPC-E, Code 39, Code 93, ITF-14, Interleaved 2 of 5, GS1-128, GS1 DataMatrix, Data Matrix, PDF417, QR Code, Aztec, ISBN, ISSN, Codabar, MSI, Pharmacode, POSTNET, GS1 Composite, MaxiCode, DotCode, rMQR, Micro QR. GS1 application identifiers supported ((01)...(17)...). Single code returns image/svg+xml; items[] (up to 20) or format=json returns JSON with SVG strings. Invalid data returns 402 with the reason and is not charged.

Copy-paste examples

These call POST /barcode/svg ($0.002) — Barcode generator (EAN/UPC, Code 128, GS1-128, DataMatrix, PDF417, QR, Aztec...). Swap the path for any other route in the table.

mppx CLI

npx mppx https://mpp-biz.fmf-x402.workers.dev/barcode/svg -X POST -H 'content-type: application/json' -d '{"type":"ean13","text":"590123412345"}'

The CLI creates or reuses a Tempo account in your keychain and pays the 402 automatically. See mpp.dev/sdk.

curl (unpaid — shows the 402, not charged)

curl -i -X POST https://mpp-biz.fmf-x402.workers.dev/barcode/svg -H 'content-type: application/json' -d '{"type":"ean13","text":"590123412345"}'

TypeScript SDK (mppx)

import { Mppx, tempo } from 'mppx/client'
import { privateKeyToAccount } from 'viem/accounts'

Mppx.create({
  methods: [tempo({ account: privateKeyToAccount(process.env.TEMPO_PRIVATE_KEY) })],
})

// Global fetch now pays the 402 automatically.
const res = await fetch('https://mpp-biz.fmf-x402.workers.dev/barcode/svg', {
  method: 'POST',  headers: {
    'content-type': 'application/json',
  },
  body: JSON.stringify({"type":"ean13","text":"590123412345"}),
})
console.log(await res.json())

Python SDK (pympp)

# pip install pympp
# Docs: https://mpp.dev/sdk/python
import asyncio
from mpp.client import Mpp
from mpp.methods.tempo import TempoAccount
from mpp.methods.tempo import client as tempo

account = TempoAccount.from_key("0x...")

async def main():
    async with Mpp(methods=[tempo.charge(account=account)]) as mpp:
        response = await mpp.fetch("https://mpp-biz.fmf-x402.workers.dev/barcode/svg", method="POST", json={"type":"ean13","text":"590123412345"})
        print(await response.json())

asyncio.run(main())

MCP config (Cursor, Claude Desktop, VS Code)

{
  "mcpServers": {
    "fmf-mpp-biz": {
      "url": "https://mpp-biz.fmf-x402.workers.dev/mcp"
    }
  }
}

Transport is Streamable HTTP at https://mpp-biz.fmf-x402.workers.dev/mcp. tools/list is free. Paid tools/call needs an MPP Payment header, or just use mppx against the HTTP route.

Sources and licences

No upstream data sources. pdf-lib (MIT), qrcode-generator (MIT), libphonenumber-js (MIT; metadata from Google libphonenumber, Apache-2.0), bwip-js / BWIPP (MIT).

Sister services