Catalog
Fletch Pay catalog
GET /api/fletch-pay/catalog
Returns supported card amounts, the live provider, and verified settlement rails.
curl https://fletch-bank.pages.dev/api/fletch-pay/catalog
Order
Fletch Pay order
POST /api/fletch-pay/order
Creates a prepaid card order and returns the order ID plus exact funding instructions.
curl -X POST https://fletch-bank.pages.dev/api/fletch-pay/order \
-H "Content-Type: application/json" \
-d '{
"provider": "mpc",
"amount": 25,
"fundingAsset": "BTC:Mainnet",
"email": "ops@example.com"
}'
Link
Fletch Link order
POST /api/fletch-link/order
Creates a crypto checkout link and returns a shareable checkout URL.
curl -X POST https://fletch-bank.pages.dev/api/fletch-link/order \
-H "Content-Type: application/json" \
-d '{
"tickerTo": "USDC",
"networkTo": "Base",
"address": "0xabc...",
"amount": 100,
"memo": "API credits",
"name": "Fletch checkout"
}'
Bridge
Fletch Bridge order
POST /api/fletch-bridge/order
Creates a bridge route and returns funding instructions plus provider IDs.
curl -X POST https://fletch-bank.pages.dev/api/fletch-bridge/order \
-H "Content-Type: application/json" \
-d '{
"tickerFrom": "USDC",
"networkFrom": "Base",
"tickerTo": "USDC",
"networkTo": "ERC20",
"amount": 100,
"address": "0xabc..."
}'
Swap
Fletch Swap quote
POST /api/fletch-swap/quote
Checks whether a treasury conversion pair is live and provider-backed.
curl -X POST https://fletch-bank.pages.dev/api/fletch-swap/quote \
-H "Content-Type: application/json" \
-d '{
"fromAsset": "USDC",
"fromNetwork": "Base",
"toAsset": "BTC",
"toNetwork": "Mainnet",
"amountFrom": 100,
"destinationAddress": "bc1..."
}'
Status
Recovery endpoints
GET status routes
Recover state using the order or route ID returned during creation.
/api/fletch-pay/status?orderId=fletch_pay_123456
/api/fletch-bridge/status?orderId=fletch_bridge_123456__789012