Skip to main content
POST
Pay with x402 Session

Parámetros de ruta

string
requerido
ID de la sesión para el pago (por ejemplo, sess_xyz789).

Cuerpo de la solicitud

string
requerido
La URL habilitada para x402 a pagar.

Ejemplo

Autorizaciones

X-API-Key
string
header
requerido

API key authentication. Keys are prefixed with awx_.

Parámetros de ruta

id
string
requerido

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

Cuerpo

application/json
target_url
string<uri>
requerido

The x402-enabled URL to pay for.

Respuesta

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.

Opciones disponibles:
completed,
pending,
failed
payment_signature
string

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