Skip to content

Request a wallet top-up

POST
/portal/wallet/{wallet_id}/top_up

Top up a customer’s wallet with credits.

wallet_id
required
Wallet Id
string format: uuid
token
required
Token
string
PortalTopUpRequest
object
credits
required
Any of:
number
> 0

Successful Response

PortalTopUpResponse
object
wallet_id
required
Wallet Id
string format: uuid
credits_added
required
Credits Added
string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
new_balance_cents
required
New Balance Cents
string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
new_credits_balance
required
New Credits Balance
string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/

Wallet is not active or invalid credits

Invalid or expired portal token

Wallet not found

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object