Invoice Pay
by Bitrefill in Markets & finance
Pay a Bitrefill invoice in USDC via x402 to buy gift cards, eSIMs & mobile top-ups across 180+ countries.
https://api.bitrefill.com/x402/invoice/pay- Price
- $1,000.00
- per call in USDC
- Uptime
- 98.0%
- last 30 days
- Response time
- 214 ms
- 322 ms slowest 5%
- Last check
- Passed
- 2 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://api.bitrefill.com/x402/invoice/pay
Each call costs $1,000.00 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://api.bitrefill.com/x402/invoice/pay
content-type: application/json
{
"invoice_id": "c2b27180-610e-4132-af77-ad42fc0ac444"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
invoice_id | string | Yes | Invoice id to pay via x402 |
Example response
The provider's example. We can't check it without paying.
{
"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"
}
}Call it from code
The curl command shows the payment challenge.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://api.bitrefill.com/x402/invoice/pay' \
-H 'content-type: application/json' \
--data-raw '{"invoice_id":"c2b27180-610e-4132-af77-ad42fc0ac444"}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://api.bitrefill.com/x402/invoice/pay' \
-H 'content-type: application/json' \
--data-raw '{"invoice_id":"c2b27180-610e-4132-af77-ad42fc0ac444"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeWe don't show code that pays this service: it uses a payment scheme other than exact, which needs a different client setup.
Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 182 ms | $1,000.00 |
| 13 h ago | Passed | 402 | 175 ms | $1,000.00 |
| 24 h ago | Passed | 402 | 203 ms | $1,000.00 |
| 34 h ago | Passed | 402 | 161 ms | $1,000.00 |
| 44 h ago | Passed | 402 | 176 ms | $1,000.00 |
Show 10 older checks
| 2 days ago | Passed | 402 | 161 ms | $1,000.00 |
| 3 days ago | Passed | 402 | 217 ms | $1,000.00 |
| 3 days ago | Timed out | - | - | - |
| 6 days ago | Timed out | - | - | - |
| 7 days ago | Passed | 402 | 254 ms | $1,000.00 |
| 7 days ago | Passed | 402 | 238 ms | $1,000.00 |
| 7 days ago | Passed | 402 | 232 ms | $1,000.00 |
| 8 days ago | Passed | 402 | 251 ms | $1,000.00 |
| 8 days ago | Passed | 402 | 231 ms | $1,000.00 |
| 8 days ago | Passed | 402 | 197 ms | $1,000.00 |