Directory / Finance & market data
Pay a Bitrefill invoice in USDC via x402 to buy gift cards, eSIMs…
Pay a Bitrefill invoice in USDC via x402 to buy gift cards, eSIMs & mobile top-ups across 180+ countries.
not checked yetBasePOSTx402 v2
- Price per call
- $1000.00
- Endpoint
- https://api.bitrefill.com/x402/invoice/pay
- Provider
- api.bitrefill.com
- Paid calls (30 days)
- 41
- Unique payers (30 days)
- 22
- Last paid call
- 3 days ago
- Health check
- pending
- Pays to
- 0x480CD46E6faDe651a0437DeaddA53D5c8e7D846A
- Listed here since
- 2026-11-23 (source: bazaar)
Input
{
"body": {
"invoice_id": "c2b27180-610e-4132-af77-ad42fc0ac444"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Example output
{
"example": {
"accepted": true,
"message": "Payment accepted; poll invoice/status for fulfillment outcome and redemption codes.",
"next_step": {
"url": "/x402/invoice/status?invoice_id=c2b27180-610e-4132-af77-ad42fc0ac444"
}
},
"type": "json"
}
Call it from an agent
import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY);
const paidFetch = wrapFetchWithPayment(fetch, account);
const res = await paidFetch("https://api.bitrefill.com/x402/invoice/pay", { method: "POST" });
console.log(await res.json()); // costs $1000.00 in USDC on Base
Machine-readable: /api/tools/3dfd07ebb2af. Listings are informational; check a provider before sending large amounts.