Skip to main content
POST
Generate a dual payment challenge

Authorizations

Authorization
string
header
required

Your Prudra API key. Get one at dashboard.prudra.com/settings/api-keys

Body

application/json
walletId
string
required
hostname
string
required
price
string
required
description
string | null
intent
enum<string>
default:charge
Available options:
charge,
session
acceptX402
boolean
default:true
acceptMPP
boolean
default:true

Response

Challenge generated

mpp
string | null

WWW-Authenticate MPP challenge string

x402
string | null

X-PAYMENT-REQUIREMENTS base64 value