# 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. ## Docs (free) - Human docs with copy-paste examples: https://mpp-biz.fmf-x402.workers.dev/docs - OpenAPI 3.1: https://mpp-biz.fmf-x402.workers.dev/openapi.json - This file: https://mpp-biz.fmf-x402.workers.dev/llms.txt - MCP server (Streamable HTTP): https://mpp-biz.fmf-x402.workers.dev/mcp - Health: https://mpp-biz.fmf-x402.workers.dev/health - Attribution counters (no PII): https://mpp-biz.fmf-x402.workers.dev/stats/refs ## How to pay No account and no API key. Unpaid calls receive HTTP 402 with an MPP challenge on Tempo (USDC.e or pathUSD). Official clients pay the challenge and retry automatically. POST JSON (or GET with query params) to any paid route and pay the MPP 402 challenge on Tempo (USDC.e or pathUSD). Bad input or an upstream failure returns 402 with an error and you are not charged. Optional ?ref=channel or header X-FMF-Ref attributes the call for our coverage map (ignored by the tool). ## Quick start mppx CLI (creates/uses a Tempo account in your keychain): ```bash npx mppx https://mpp-biz.fmf-x402.workers.dev/barcode/svg -X POST -H 'content-type: application/json' -d '{"type":"ean13","text":"590123412345"}' ``` TypeScript (mppx). After Mppx.create(), global fetch handles 402: ```ts 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 (pympp): ```python # 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()) ``` An unpaid curl shows the 402 (you are not charged): ```bash curl -i -X POST https://mpp-biz.fmf-x402.workers.dev/barcode/svg -H 'content-type: application/json' -d '{"type":"ean13","text":"590123412345"}' ``` ## MCP Add this to Cursor / Claude Desktop / VS Code MCP settings (Streamable HTTP): ```json { "mcpServers": { "fmf-mpp-biz": { "url": "https://mpp-biz.fmf-x402.workers.dev/mcp" } } } ``` `tools/list` is free. `tools/call` requires an MPP Payment credential in the Authorization header (or just call the HTTP route with mppx). The wrapper does not settle payment on its own and stores nothing. ## Routes - POST https://mpp-biz.fmf-x402.workers.dev/invoice/pdf ($0.01) Invoice 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. Example: `npx mppx https://mpp-biz.fmf-x402.workers.dev/invoice/pdf -X POST -H 'content-type: application/json' -d '{"number":"INV-1042","date":"2026-11-24","due_date":"2026-12-08","currency":"USDC","seller":{"name":"Acme Labs","email":"billing@acme.example"},"buyer":{"name":"Client Co"},"items":[{"description":"Smart contract audit","quantity":1,"unit_price":2500},{"description":"Gas reimbursement","quantity":3,"unit_price":12.5}],"tax_rate":13,"tax_label":"HST 13%","crypto":{"network":"base","token":"USDC","address":"0xB2070a4A874E7141E551890a3642bF7B24a1a148"}}'` - POST https://mpp-biz.fmf-x402.workers.dev/receipt/pdf ($0.01) Receipt 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). Example: `npx mppx https://mpp-biz.fmf-x402.workers.dev/receipt/pdf -X POST -H 'content-type: application/json' -d '{"number":"R-1042","date":"2026-11-24","due_date":"2026-12-08","currency":"USDC","seller":{"name":"Acme Labs","email":"billing@acme.example"},"buyer":{"name":"Client Co"},"items":[{"description":"Smart contract audit","quantity":1,"unit_price":2500},{"description":"Gas reimbursement","quantity":3,"unit_price":12.5}],"tax_rate":13,"tax_label":"HST 13%","crypto":{"network":"base","token":"USDC","address":"0xB2070a4A874E7141E551890a3642bF7B24a1a148"},"amount_paid":2867.38,"paid":{"tx_hash":"0x5c50...e1","date":"2026-11-24"}}'` - POST https://mpp-biz.fmf-x402.workers.dev/crypto/pay-uri ($0.001) Crypto 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. Example: `npx mppx https://mpp-biz.fmf-x402.workers.dev/crypto/pay-uri -X POST -H 'content-type: application/json' -d '{"network":"base","token":"USDC","address":"0xB2070a4A874E7141E551890a3642bF7B24a1a148","amount":"25.50"}'` - POST https://mpp-biz.fmf-x402.workers.dev/phone/validate ($0.001) Phone 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. Example: `npx mppx https://mpp-biz.fmf-x402.workers.dev/phone/validate -X POST -H 'content-type: application/json' -d '{"phones":["+1 416 555 0123","(213) 373-4253","+44 20 7946 0958"],"country":"US"}'` - POST https://mpp-biz.fmf-x402.workers.dev/phone/extract ($0.001) Find & 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. Example: `npx mppx https://mpp-biz.fmf-x402.workers.dev/phone/extract -X POST -H 'content-type: application/json' -d '{"text":"Call +1 (650) 253-0000 or our London office on 020 7946 0958","country":"GB"}'` - POST https://mpp-biz.fmf-x402.workers.dev/barcode/svg ($0.002) Barcode 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. Example: `npx mppx https://mpp-biz.fmf-x402.workers.dev/barcode/svg -X POST -H 'content-type: application/json' -d '{"type":"ean13","text":"590123412345"}'` ## 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 - [Doc Tools](https://mpp-docs.fmf-x402.workers.dev/docs?ref=cross-biz): Pay-per-call PDF, Office, OCR, speech-to-text, voice memo and meeting notes - [Web & Data](https://mpp-agent-data.fmf-x402.workers.dev/docs?ref=cross-biz): Pay-per-call scrape, extract, SEC filings, weather and FX - [Utility Tools](https://mpp-tools.fmf-x402.workers.dev/docs?ref=cross-biz): Tempo chain, attestation, QR, DNS, email, IP, geo, timezone, tech detect, math - [AI Tools](https://mpp-ai.fmf-x402.workers.dev/docs?ref=cross-biz): Pay-per-call chat, translation, embeddings and rerank, no API key - [Browser](https://mpp-browser.fmf-x402.workers.dev/docs?ref=cross-biz): Pay-per-call headless Chrome screenshots, JS render and page-to-PDF - [Research](https://mpp-research.fmf-x402.workers.dev/docs?ref=cross-biz): Papers, FDA drug labels, recalls, clinical trials and LEI - [EVM Decoder](https://mpp-chain.fmf-x402.workers.dev/docs?ref=cross-biz): Pay-per-call calldata and event-log decoder, selectors, verified ABIs, no RPC - [Deepgram-compatible STT](https://mpp-stt.fmf-x402.workers.dev/docs?ref=cross-biz): Drop-in /deepgram/transcribe and /v1/listen speech-to-text at $0.008, no API key - [Compat APIs](https://mpp-compat.fmf-x402.workers.dev/docs?ref=cross-biz): OpenWeather-, Mapbox- and EDGAR-compatible routes at a third of the price (MPP + x402) - [Domain & Web Checks](https://mpp-domain.fmf-x402.workers.dev/docs?ref=cross-biz): RDAP WHOIS, domain age and availability, HTTP status, security headers, SPF/DMARC (MPP + x402) - [Dev & Data Utils](https://mpp-utils.fmf-x402.workers.dev/docs?ref=cross-biz): IBAN, GTIN, ISIN, crypto address, JWT, hash, cron, RRULE, semver, CSV at $0.001 (MPP + x402) - [MTG Sim](https://mtg-sim.fmf-x402.workers.dev/docs?ref=cross-biz): Magic: The Gathering deck check, draw odds, land count and goldfish simulator - [Control-plane](https://controlplane-x402.fmf-x402.workers.dev/docs?ref=cross-biz): Who controls this contract? MPP + x402 snapshots and Tempo token data - [Crypto Tax Calculator](https://mpp-cryptotax.fmf-x402.workers.dev/docs?ref=cross-biz): Crypto capital gains, cost basis (FIFO/HIFO/ACB), Form 8949 boxes G-L, Canada Schedule 3, tax-loss harvesting - [Pokémon TCG Sim](https://pokemon-tcg-sim.fmf-x402.workers.dev/docs?ref=cross-biz): Pokémon TCG simulator: goldfish, prize and draw sims, free Standard/Expanded deck check - [Yu-Gi-Oh Sim](https://yugioh-sim.fmf-x402.workers.dev/docs?ref=cross-biz): Yu-Gi-Oh! simulator: goldfish, combo and hand-trap odds, free TCG/OCG/GOAT banlist deck check - [Lorcana Sim](https://lorcana-sim.fmf-x402.workers.dev/docs?ref=cross-biz): Disney Lorcana simulator: goldfish, ink and draw sims, free Core/Infinity deck check - [One Piece Sim](https://onepiece-sim.fmf-x402.workers.dev/docs?ref=cross-biz): One Piece Card Game simulator: goldfish, DON!! curve, Life and draw odds, free deck check - [Hearthstone Sim](https://hearthstone-sim.fmf-x402.workers.dev/docs?ref=cross-biz): Hearthstone simulator: mulligan odds, curve goldfish, draw odds, free deck check - [Chess Sim](https://chess-sim.fmf-x402.workers.dev/docs?ref=cross-biz): Chess tools: forced-mate finder, best move, legal moves, free opening names and position check - [Dota 2 Sim](https://dota2-sim.fmf-x402.workers.dev/docs?ref=cross-biz): Dota 2 simulator: right-click duel sim, build stats, EHP and DPS calculator - [CS2 Sim](https://cs2-sim.fmf-x402.workers.dev/docs?ref=cross-biz): CS2 economy simulator: loss bonus, buy or eco, half simulation ## Attribution Append `?ref=your-channel` or send header `X-FMF-Ref: your-channel` on any request (including unpaid 402s and /docs). We count hits and paid successes per channel so we can see what actually drives calls. The parameter is ignored by the tool.