Skip to main content
POST
Pay with x402 Session

路径参数

string
必填
用于支付的会话 ID(例如 sess_xyz789)。

请求体

string
必填
要支付的 x402 启用 URL。

示例

授权

X-API-Key
string
header
必填

API key authentication. Keys are prefixed with awx_.

路径参数

id
string
必填

The session ID to pay from (e.g., sess_xyz789).

请求体

application/json
target_url
string<uri>
必填

The x402-enabled URL to pay for.

响应

Session 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.