Skip to main content
POST
x402 Pay
ターゲットURLに対する1回のx402支払いを交渉して完了します。AgentWallexがエージェントのポリシーを評価し、MPC経由で支払いに署名し、有料リソースにアクセスするために必要な支払い情報を返します。

リクエストボディ

string
必須
支払いに資金を提供するウォレットのエージェント。
string
必須
支払い対象のx402対応URL(例:https://paid-api.example.com/v1/data)。
string
既存のセッション予算から差し引くためのオプションのセッションID。x402セッションを参照してください。
string
支払い決済用のCAIP-2チェーン識別子(例:eip155:84532)。省略した場合、エージェントのデフォルトチェーンが使用されます。

レスポンス

Response

関連エンドポイント

承認

X-API-Key
string
header
必須

API key authentication. Keys are prefixed with awx_.

ボディ

application/json
agent_id
string
必須

The agent whose wallet will fund the payment.

target_url
string<uri>
必須

The x402-enabled URL to pay for (e.g., https://paid-api.example.com/v1/data).

session_id
string

Optional session ID to deduct from an existing session budget.

chain
string

CAIP-2 chain identifier for payment settlement (e.g., eip155:84532). If omitted, the agent's default chain is used.

レスポンス

Payment completed successfully.

Result of an x402 payment negotiation.

ledger_id
string

Internal ledger entry ID for this payment.

amount
string

Payment amount.

fee_amount
string

Platform fee deducted.

fee_rate
string

Fee percentage applied (based on tiered pricing).

token
string

Token used for payment (e.g., USDC).

chain
string

Chain used for settlement.

status
enum<string>

Payment status.

利用可能なオプション:
completed,
pending,
failed
payment_signature
string

The PAYMENT-SIGNATURE value to include in the retry request to the target URL.