Skip to main content
POST
Settle an x402 v2 payment (co-sign + submit to Solana)

Body

application/json
paymentPayload
object
required

x402 v2 structured PaymentPayload object. For backward compatibility, a base64-encoded v1 proof string is also accepted.

paymentRequirements
object
required

The payment requirements issued by the resource server in the 402 response

Response

Settlement result — check success to determine outcome

success
boolean
required

Whether the settlement succeeded

Example:

true

transaction
string
required

Solana transaction signature (empty string on failure). REQUIRED per x402 v2.

Example:

"5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW"

network
string
required

CAIP-2 network identifier where settlement occurred. REQUIRED per x402 v2.

Example:

"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1"

errorReason
string

Machine-readable error reason code

Example:

"SETTLEMENT_FAILED"

errorMessage
string

Human-readable error message

Example:

"Transaction simulation failed: insufficient funds"

payer
string

Wallet address of the payer

Example:

"D6j5dis544qzYmSNixwYwBXqcDqgWiFHpi6hebPEQNVu"

extensions
object

Additional extension data

Example: