POST
/
subaccount
/
credit
Credit Subaccount
curl --request POST \
  --url https://nini.monieswitch.com/subaccount/credit \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 50,
  "metadata": {
    "userId": "testing123"
  },
  "narration": "Testing crediting",
  "subaccountId": "a1a34e28-3318-4730-85d0-9b5851a86de7"
}'
{
  "data": {
    "accountName": "OWealth",
    "accountNumber": "3666741528",
    "amount": 50,
    "category": "SUBACCOUNT",
    "charge": 0,
    "destinationInstitutionCode": "999270",
    "merchantId": "f8cfbb4e-fc53-4f0f-a7b9-c07ef6b6e4b8",
    "metadata": {
      "userId": "testing123"
    },
    "mode": "SANDBOX",
    "narration": "Testing crediting",
    "paidAt": "2024-02-28T18:25:28+01:00",
    "senderAccountName": "Henry Balo",
    "senderAccountNumber": "4443355297",
    "senderBankName": "Xpress Wallet",
    "settledAmount": 50,
    "status": "SUCCESS",
    "totalAmount": 50,
    "transactionId": "852fdc3f-e2e2-4c61-897e-461b08c67930",
    "transactionReference": "wg1t0VFyJHHwOW0mAnfEBeS6NF4JI7Gg4OdO",
    "walletId": "2b3d1ec6-64f8-4cf0-b819-278c7da52e63"
  },
  "message": "Account successful credited",
  "status": true
}

Headers

Authorization
string
required

Set value to 'Bearer {{MERCHANT_SECRET_KEY}}'

Body

application/json

Response

200 - application/json

Credit Subaccount

The response is of type object.