Skip to main content
POST
Settle a payment on chain

Body

application/json
paymentPayload
object
required

The buyer-signed payload. For exact/stellar, payload.transaction is a base64 Stellar transaction XDR.

paymentRequirements
object
required
x402Version
integer
Example:

2

Response

The settlement result.

success
boolean
transaction
string

Settled transaction hash

network
string
payer
string
amount
string

Actual settled amount, present for upto

errorReason
string

Machine code, present when success is false

errorMessage
string

Human reason, present when success is false

extra
object