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.