Debit Company Wallet API
Overview
Deducts funds from a company wallet for travel bookings or adjustments.
- Endpoint:
/api/wallet/debit - Method:
POST
Request Body Schema
| Field | Type | Required | Description |
|---|---|---|---|
companyId | String (UUID) | Yes | Target company ID |
amount | Number | Yes | Debit amount (> 0) |
description | String | No | Transaction remarks |
bookingId | String | No | Associated booking ID |
Request Body Example
{
"companyId": "comp_12345678",
"amount": 20160.00,
"description": "Hotel Booking Payment - Grand Palace Resort"
}
Response Example (200 OK)
{
"success": true,
"data": {
"walletId": "wlt_11223344",
"balance": 579840.00,
"transactionId": "txn_88990011"
},
"message": "Company wallet debited successfully"
}