Overview
Buy a gift card from about 450 US brands (DoorDash, Uber, Airbnb, Sephora ...) and more countries; the card is issued to the agent's owner (registered STB agent key with gift cards turned on required). This call prices one card for a $0.05 USDC fee on Base and returns the exact USDC total, a pay_url and a claim token. Find product ids and amounts with GET /x402/giftcards/catalog/?country=USA.
Protocol
x402 (POST)
Price
$0.05
Payment Asset
USD Coin
Payment Network
eip155:8453
Category
uncategorized
Provider
SpendTheBits
Indexed
2026-09-26 04:20:04
Health
Status
healthy
Latency (p50)
669ms
Uptime (30d)
100.0%
Reliability Score
90/100
Last Checked
2026-10-31 07:11:30
Last Healthy
2026-10-31 07:11:30
Consecutive Failures
0
Input Schema
{
"body": {
"amount": 10,
"brand": "DoorDash",
"country": "USA",
"product_id": "108188684"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Output Schema
{
"example": {
"brand": "DoorDash",
"card_url": "https://x402.spendthebits.com/@stb/cards/usa/amazon-com/10/",
"claim_token": "ct_…",
"currency": "USD",
"delivery": "The card appears in the owner's STB app (Gift cards → My orders).",
"face_value": "10.00",
"includes": {
"bridge_fee_ceiling_usdc": "0.014879",
"card_usdc": "11.222121",
"service_fee_usdc": "0.350000"
},
"order_id": "8a3f5b0e-2c4d-4e1f-9b7a-1d2e3f4a5b6c",
"pay_by": 1789934400,
"pay_to": "0x9f272C290Dce7598134B5BAA11AA846DF1eAF4b1",
"pay_url": "https://x402.spendthebits.com/x402/giftcards/orders/8a3f5b0e-2c4d-4e1f-9b7a-1d2e3f4a5b6c/pay/",
"pricing_note": "The card provider's price includes its own spread, which is a larger share of small cards. Compare total_usdc with face_value before paying.",
"redeemable_in": "USA",
"run": {
"confirmation": "agent",
"final": false,
"money": "none",
"next": "pay",
"open": true,
"poll_after_seconds": null
},
"spend_controls_hint": "Set your client's per-payment cap to at least $12 (e.g. @x402/fetch spendControls.maxAmountPerPayment).",
"status": "awaiting_payment",
"status_url": "https://x402.spendthebits.com/x402/giftcards/orders/8a3f5b0e-2c4d-4e1f-9b7a-1d2e3f4a5b6c/",
"total_usdc": "11.587000",
"typical_minutes": 5,
"valid_until": null,
"what_to_expect": "A card usually takes about 5 minutes after payment. Poll status_url with the claim token in the X-Claim-Token header; do not pay again."
},
"type": "json"
}