v1

latestOpenAPI 3.0.3Apache 2.02026-07-24153058.9 KB
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

amountnumber float required
merchantAccountIdinteger
tranRefstring
notesstring

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
  }
}