Skip to main content
POST
x402 Pay
Negociez et completez un paiement x402 pour une URL cible. AgentWallex evalue les politiques de l’agent, signe le paiement via MPC et renvoie les informations de paiement necessaires pour acceder a la ressource payante.

Corps de la requete

string
requis
L’agent dont le portefeuille financera le paiement.
string
requis
L’URL compatible x402 a payer (par ex., https://paid-api.example.com/v1/data).
string
ID de session optionnel pour deduire d’un budget de session existant. Consultez Sessions x402.
string
Identifiant de chaine CAIP-2 pour le reglement du paiement (par ex., eip155:84532). Si omis, la chaine par defaut de l’agent est utilisee.

Reponse

Exemple

Response

Points de terminaison associes

Autorisations

X-API-Key
string
header
requis

API key authentication. Keys are prefixed with awx_.

Corps

application/json
agent_id
string
requis

The agent whose wallet will fund the payment.

target_url
string<uri>
requis

The x402-enabled URL to pay for (e.g., https://paid-api.example.com/v1/data).

session_id
string

Optional session ID to deduct from an existing session budget.

chain
string

CAIP-2 chain identifier for payment settlement (e.g., eip155:84532). If omitted, the agent's default chain is used.

Réponse

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.

Options disponibles:
completed,
pending,
failed
payment_signature
string

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