CREDIT
credit amount to a sub merchant account
API for crediting an amount to a specified submerchant account by Main Merchant.
post/api/v1/accounts/{subMerchantAccountId}/credit
Path parameters
subMerchantAccountIdinteger required
The ID of the sub merchant account to credit.
Request body
Example request
{
"amount": 100.5,
"merchantAccountId": 1233,
"tranRef": "030000000000",
"notes": "discount"
}Response
OK.
Example response
{
"debit": {
"accountId": 23422,
"balance": 900.5
},
"credit": {
"accountId": 32423,
"balance": 190.5
}
}