Overview
Admin wallet operations allow administrators to directly deposit or withdraw funds from driver, passenger, and company wallets. All operations requireAdminPolicy authorization and are logged for audit purposes.
Driver Wallets
Deposit to Driver Wallet
Deposit funds into a driver’s wallet.Path Parameters
Driver identifier
Body Parameters
Deposit amount (must be positive)
Currency code (e.g., SAR, USD, EGP) or currency ID
External transfer reference number
Admin notes about the deposit
Response
Operation status
Status message in Arabic
Wallet identifier
Updated wallet balance after deposit
Withdraw from Driver Wallet
Withdraw funds from a driver’s wallet.Path Parameters
Driver identifier
Body Parameters
Withdrawal amount (must be positive and not exceed balance)
Currency code (e.g., SAR, USD, EGP) or currency ID
External transfer reference number
Admin notes about the withdrawal
Response
Operation status
Status message in Arabic
Wallet identifier
Updated wallet balance after withdrawal
Passenger Wallets
Deposit to Passenger Wallet
Deposit funds into a passenger’s wallet.Path Parameters
Passenger identifier
Body Parameters
Deposit amount (must be positive)
Currency code (e.g., SAR, USD, EGP) or currency ID
External transfer reference number
Admin notes about the deposit
Response
Operation status
Status message in Arabic
Wallet identifier
Updated wallet balance after deposit
Passenger wallet deposits trigger a notification to the passenger about the credit.
Company Wallets
Deposit to Company Wallet
Deposit funds into a company’s wallet.Path Parameters
Company identifier
Body Parameters
Deposit amount (must be positive)
Currency code (e.g., SAR, USD, EGP) or currency ID
External transfer reference number
Admin notes about the deposit
Response
Operation status
Status message in Arabic
Updated wallet balance after deposit
Withdraw from Company Wallet
Withdraw funds from a company’s wallet.Path Parameters
Company identifier
Body Parameters
Withdrawal amount (must be positive and not exceed balance)
Currency code (e.g., SAR, USD, EGP) or currency ID
External transfer reference number
Admin notes about the withdrawal
Response
Operation status
Status message in Arabic
Updated wallet balance after withdrawal
Wallet Transaction History
To view wallet transaction history for drivers, passengers, or companies, use the wallet query endpoints:- Get driver wallets:
GET /api/admin/wallets/drivers/{driverId} - Get passenger wallets:
GET /api/admin/wallets/passengers/{passengerId} - Get company wallets:
GET /api/admin/wallets/companies/{companyId} - Get company wallet transactions:
GET /api/admin/wallets/companies/{companyId}/transactions
All wallet operations create transaction records that include:
- Transaction type (deposit/withdraw)
- Amount and currency
- Balance before and after
- Admin who performed the operation
- Transfer reference
- Timestamp
- Notes