Skip to main content
POST
Pay with x402 Session

Tham số đường dẫn

string
bắt buộc
ID phiên để thanh toán (ví dụ: sess_xyz789).

Nội dung yêu cầu

string
bắt buộc
URL hỗ trợ x402 cần thanh toán.

Ví dụ

Ủy quyền

X-API-Key
string
header
bắt buộc

API key authentication. Keys are prefixed with awx_.

Tham số đường dẫn

id
string
bắt buộc

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

Nội dung

application/json
target_url
string<uri>
bắt buộc

The x402-enabled URL to pay for.

Phản hồi

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.

Tùy chọn có sẵn:
completed,
pending,
failed
payment_signature
string

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