Wallet
The Wallet object
idstringoptionalPublic identifier of the wallet.
subject_uuidstringoptionalUUID of the model that owns the wallet.
subject_typestringoptionalModel class that owns the wallet.
subjectobjectoptionalLoaded wallet owner, when included.
namestringoptionalWallet name.
descriptionstringoptionalWallet description.
typestringoptionalWallet type.
balanceintegeroptionalWallet balance in the smallest currency unit.
formatted_balancestringoptionalHuman-readable wallet balance.
currencycurrencyoptionalWallet currency code.
statusstringoptionalWallet status.
is_frozenbooleanoptionalWhether wallet activity is frozen.
metaobjectoptionalArbitrary metadata stored with the wallet.
created_attimestampoptionalTime the wallet was created.
updated_attimestampoptionalTime the wallet was last updated.
{
"id": "wallet_2Tn8Qk1",
"subject_uuid": "9c6292e4-9d7b-4ab4-94a1-3f4a11c1cf25",
"subject_type": "Fleetbase\\Models\\User",
"subject": null,
"name": "Default wallet",
"description": null,
"type": "default",
"balance": 5000,
"formatted_balance": "50.00",
"currency": "USD",
"status": "active",
"is_frozen": false,
"meta": {},
"created_at": "2026-05-07T09:30:00Z",
"updated_at": "2026-05-07T09:30:00Z"
}/v1/walletGet Wallet
Retrieves the authenticated subject's wallet. Pass a currency to choose the wallet currency when Fleetbase needs to provision one.
currencycurrencyoptionalThree-letter currency code for monetary values.
/v1/walletcurl https://api.fleetbase.io/v1/wallet?currency=USD \
-H "Authorization: Bearer flb_live_…"/v1/wallet/balanceGet Wallet Balance
Returns the authenticated subject's wallet balance. Fleetbase provisions a wallet automatically when one does not already exist.
currencycurrencyoptionalThree-letter currency code for monetary values.
/v1/wallet/balancecurl https://api.fleetbase.io/v1/wallet/balance?currency=USD \
-H "Authorization: Bearer flb_live_…"/v1/wallet/transactionsList Wallet Transactions
Lists transactions for the authenticated subject's wallet. Results can be filtered by transaction type, direction, status, and creation date range.
typeenumoptionalClassification used to group or process the resource. One of customer, vendor, driver.
directionenumoptionalDirection value for this wallet request. One of credit, debit.
statusenumoptionalLifecycle status to apply to the resource. One of active, inactive.
date_fromtimestampoptionalDate from value for this wallet request.
date_totimestampoptionalDate to value for this wallet request.
limitstringoptionalLimit value for this wallet request.
/v1/wallet/transactionscurl https://api.fleetbase.io/v1/wallet/transactions?type=&direction=&status=&date_from=&date_to=&limit=25 \
-H "Authorization: Bearer flb_live_…"/v1/wallet/topupTop Up Wallet
Tops up the authenticated subject's wallet through a configured payment gateway. Amounts are submitted in the smallest currency unit.
gatewaystringrequiredPublic ID or UUID of the payment gateway to charge.
amountintegerrequiredTop-up amount in the smallest currency unit. Must be at least 100.
payment_method_tokenstringoptionalGateway payment method token, such as a Stripe pm_ token.
customer_idstringoptionalCustomer ID from the payment gateway.
descriptionstringoptionalDescription stored with the top-up payment. Maximum length is 500 characters.
/v1/wallet/topupcurl -X POST https://api.fleetbase.io/v1/wallet/topup \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"gateway": "{{gateway_id}}",
"amount": 1000,
"payment_method_token": "{{payment_method_token}}",
"customer_id": "{{gateway_customer_id}}",
"description": "Wallet top-up"
}'