POST
/
subaccount
/
debit
Debit Subaccount
curl --request POST \
  --url https://nini.monieswitch.com/subaccount/debit \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 50,
  "metadata": {
    "userId": "testing123"
  },
  "narration": "Testing crediting",
  "subaccountId": "a1a34e28-3318-4730-85d0-9b5851a86de7"
}'
{
  "data": {
    "amount": 100,
    "category": "SUBACCOUNT",
    "charge": 20,
    "merchantId": "4552cfb5-cd04-4d33-9b8b-db18ea08af28",
    "metadata": {
      "userId": "testing123"
    },
    "mode": "SANDBOX",
    "narration": "Testing crediting",
    "paidAt": "2024-03-06T10:35:31+01:00",
    "settledAmount": 100,
    "status": "SUCCESS",
    "subaccountId": "7232d5b3-7411-4c11-87cd-8f82831e3c5f",
    "subaccountName": "Testing",
    "subaccountNumber": "4717868061",
    "totalAmount": 100,
    "transactionId": "fc79c937-4486-4c12-934c-f72221e99c1f",
    "transactionReference": "mekm7yQO7kEwDQo88rXSVqldcdLsi9axxJe8",
    "walletAccountName": "James002",
    "walletAccountNumber": "4466123095",
    "walletBankCode": "999270",
    "walletBankName": "Xpress Wallet",
    "walletId": "a7a3df2f-2b43-4ae7-bdc6-0ba6f5cf03c1"
  },
  "message": "Account successful debited",
  "status": true
}

Headers

Authorization
string
required

Set value to 'Bearer {{MERCHANT_SECRET_KEY}}'

Body

application/json

Response

200
application/json

Debit Subaccount

The response is of type object.