Wallet
Create a hosted top-up checkout session
Creates a hosted Stripe checkout session and returns the session id and redirect URL. This is the funding path advertised by the WALLET_INSUFFICIENT_FUNDS 402 and by GET /v1/wallet/balance (topup.stripe): an agent creates the session and hands url to its human owner to pay.
post/v1/wallet/topup/sessions
Request body
Example request
{
"amount": 25,
"success_redirect": "https://app.monid.ai/wallet?topup=success",
"cancel_redirect": "https://app.monid.ai/wallet?topup=cancelled"
}Response
Checkout session created
Example response
{
"paymentProcessor": "STRIPE",
"sessionId": "cs_test_...",
"url": "https://checkout.stripe.com/c/pay/..."
}Changes
Changed in 1 of the 22 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○