Skip to main content
POST
Verify a payment authorization

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 verification result. On a scheme rejection, isValid is false and the machine code is in invalidReason with the human reason in invalidMessage.

isValid
boolean
invalidReason
string

Machine code, present when isValid is false

invalidMessage
string

Human reason, present when isValid is false

payer
string