TESTNET / MOCK: Base Sepolia test USDC only. Codes are mocks, not real Amazon gift cards.
Gift by Crypto - Agent Edition
An HTTP API built for AI agents. An agent finds it (CDP x402 Bazaar or OpenAPI), calls it, receives HTTP 402 Payment Required with a USDC quote, pays on Base Sepolia with x402 v2, and gets a mock Amazon.co.jp eGift code back in the same request.
Prices
| Face value | Price | Endpoint |
|---|---|---|
| JPY 1,000 | 6.67 USDC | POST https://gift-by-crypto-agent.kitano787.workers.dev/v1/egift/amazon-jp/1000 |
| JPY 5,000 | 33.34 USDC | POST https://gift-by-crypto-agent.kitano787.workers.dev/v1/egift/amazon-jp/5000 |
| JPY 10,000 | 66.67 USDC | POST https://gift-by-crypto-agent.kitano787.workers.dev/v1/egift/amazon-jp/10000 |
Demo rate 1 USDC = JPY 150. Test USDC only (0x036CbD53842c5426634e7929541eC2318f3dCF7e on eip155:84532).
How it works
- POST to an endpoint with no body.
- Read the 402 quote from the
PAYMENT-REQUIREDheader. - Sign an EIP-3009 USDC authorization and retry with
PAYMENT-SIGNATURE. - The server settles through the Coinbase CDP facilitator and returns the code with the settlement tx hash (
tx, also inPAYMENT-RESPONSE).
Read the docs for curl examples and a real 402 response.
日本語
AI エージェント向けの API です。エージェントがこの API を見つけて呼び出すと、HTTP 402 で USDC の見積もりが返ります。Base Sepolia(テストネット)で x402 v2 により支払うと、同じリクエストで Amazon.co.jp ギフトカードのモックコードを受け取れます。
テストネット・モックです。本物のギフトカードは販売・発行していません。支払いはテスト用 USDC のみです。