Skip to main content
POST
Pay with x402 Session

Path Parameters

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

Request Body

string
required
The x402-enabled URL to pay for.

Example

Authorizations

X-API-Key
string
header
required

API key authentication. Keys are prefixed with awx_.

Path Parameters

id
string
required

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

Body

application/json
target_url
string<uri>
required

The x402-enabled URL to pay for.

Response

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.

Available options:
completed,
pending,
failed
payment_signature
string

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