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 valuePriceEndpoint
JPY 1,0006.67 USDCPOST https://gift-by-crypto-agent.kitano787.workers.dev/v1/egift/amazon-jp/1000
JPY 5,00033.34 USDCPOST https://gift-by-crypto-agent.kitano787.workers.dev/v1/egift/amazon-jp/5000
JPY 10,00066.67 USDCPOST 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

  1. POST to an endpoint with no body.
  2. Read the 402 quote from the PAYMENT-REQUIRED header.
  3. Sign an EIP-3009 USDC authorization and retry with PAYMENT-SIGNATURE.
  4. The server settles through the Coinbase CDP facilitator and returns the code with the settlement tx hash (tx, also in PAYMENT-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 のみです。