Skip to content
Fourohtwo

x402.spendthebits.com/x402/giftcards/quote/

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.

BaseAnswering
POSThttps://x402.spendthebits.com/x402/giftcards/quote/

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://x402.spendthebits.com/x402/giftcards/quote/", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"amount":10,"brand":"DoorDash","country":"USA","product_id":"108188684"}),
});
console.log(await res.json());

Example input

{
  "amount": 10,
  "brand": "DoorDash",
  "country": "USA",
  "product_id": "108188684"
}

More from SpendTheBitsProvider status