v1

latestOpenAPI 3.0.3Apache 2.02026-07-24153058.9 KB
debit

Debit amount from a sub merchant account

API for debiting an amount from a specified submerchant account by Main merchant.

post/api/v1/accounts/{accountId}/debit

Path parameters

accountIdinteger required

The ID of the account to debit.

Request body

amountnumber float required
notesstring

Example request

{
  "amount": 100.5,
  "notes": "Fee collection"
}

Response

OK.

Example response

{
  "debit": {
    "accountId": 23422,
    "balance": 900.5
  },
  "credit": {
    "accountId": 32423,
    "balance": 190.5
  }
}