Skip to main content

Headers

  • Swich-API-Key: Your secret key
  • Content-Type: application/json

Body (ChargeMobileWalletRequest)

{
  "token": "tok_mwallet_9xK3PQrA",
  "mobileNumber": "+923001234567",
  "amount": 1500.0,
  "billReference": "INV-98127",
  "description": "Wallet charge for order ORD-98127",
  "last6CNICDigits": "123456"
}

Pending Response (200)

{
  "trxnRef": "trx_7ZP8X2",
  "status": "PENDING",
  "message": "Awaiting wallet OTP confirmation"
}

Error Response (422)

{
  "code": "insufficient_funds",
  "message": "Wallet has insufficient balance",
  "details": null
}