Skip to main content
POST
Settle a payment

Authorizations

Authorization
string
header
required

An API key whose SHA-256 digest is listed in API_KEY_SHA256.

Body

application/json
x402Version
integer
required
Example:

2

paymentPayload
object
required

An x402 version 2 payment payload. For exact on Stellar, payload is { transaction }.

paymentRequirements
object
required

An x402 version 2 payment option.

Response

The settlement outcome.

success
boolean
required
transaction
string
required

The settlement transaction hash; empty when nothing was broadcast.

network
string
required
errorReason
string

A stable code; present when success is false.

errorMessage
string

A non-empty human-readable reason; present when success is false.

payer
string