Generate a checkout URL to prepay for Tusky services using fiat currency (credit card). The user is redirected to a payment page. On successful payment, the equivalent SUI amount is credited to the managed wallet.
Request Body
Amount in USD to pay (e.g., 50).
URL to redirect to after payment completes.
Response
URL to redirect the user to for payment.
Payment session ID for tracking.
ISO 8601 timestamp when the checkout URL expires (typically 30 minutes).
Example
curl -X POST https://api.tusky.io/v2/billing/fiat-checkout \
-H "Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"amount": 50, "returnUrl": "https://app.tusky.io/billing/success"}'
Response
{
"checkoutUrl": "https://checkout.tusky.io/pay/session_abc123",
"sessionId": "session_abc123",
"expiresAt": "2026-03-07T15:00:00Z"
}