Skip to main content
POST
Verify 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 verification outcome.

isValid
boolean
required
invalidReason
string

A stable code; present when isValid is false.

invalidMessage
string

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

payer
string