POST
/
wallet
/
debit
Debit Wallet
curl --request POST \
  --url https://nini.monieswitch.com/wallet/debit \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 500,
  "metadata": {
    "Key": "value"
  },
  "narration": "Testing",
  "pin": "2811",
  "walletId": "16c8c17b-8a66-4f8b-b195-269e92f831ae"
}'
{
  "data": {
    "amount": 500,
    "charge": 0,
    "createdAt": "2023-12-07T17:30:56.512Z",
    "metadata": {
      "Key": "value"
    },
    "narration": "Testing",
    "reference": "hfzbnkcWGfDtC95PFbYD9G1Iiw2YMpAR69Yr",
    "status": "SUCCESS",
    "totalAmount": 500,
    "transactionId": "83cfedbc-ff9e-4b27-8aa1-a97a3363c93f",
    "walletId": "16c8c17b-8a66-4f8b-b195-269e92f831ae"
  },
  "message": "Wallet successfully debitted.",
  "status": true
}

Headers

Authorization
string
required

Set value to 'Bearer {{MERCHANT_SECRET_KEY}}'

Body

application/json

Response

200 - application/json

Debit Wallet

The response is of type object.