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)
transactionTypeEnumNoDEBIT, ADJUSTMENT (Default: DEBIT)
descriptionStringYesTransaction remarks / justification
referenceNoStringNoExternal reference or booking reference number
allowNegativeBooleanNoAllow balance to drop below zero (Default: false)

Request Body Example​

{
"companyId": "c478a846-993d-4c8d-bf8d-d77cb3370e01",
"amount": 20160.00,
"transactionType": "DEBIT",
"description": "Hotel Booking Payment - Grand Palace Resort",
"referenceNo": "BK-2026-9988",
"allowNegative": false
}

Response Example (200 OK)​

{
"success": true,
"data": {
"walletId": "wlt_11223344",
"balance": 579840.00,
"transactionId": "txn_88990011"
},
"message": "Company wallet debited successfully"
}