Skip to main content

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

FieldTypeRequiredDescription
companyIdString (UUID)YesTarget company ID
amountNumberYesDebit amount (> 0)
descriptionStringNoTransaction remarks
bookingIdStringNoAssociated 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"
}