post
https://api.cloud.mbanq.com/v1/savingsaccounts/?command=block
Use this API to block or unblock an active savings account for a client, either fully or only for credits (incoming money) or debits (outgoing money).
All actions use the same endpoint and are selected with the command query parameter.
| Command | Description | Request Body |
|---|---|---|
block | Blocks all activity on the account. | blockReasonCodeId (optional), note (optional) |
unblock | Removes a full account block. | reason (optional) |
blockcredit | Blocks credits (deposits / incoming transfers) to the account. | None |
unblockcredit | Removes a credit block from the account. | None |
blockdebit | Blocks debits (withdrawals / outgoing transfers) from the account. | None |
unblockdebit | Removes a debit block from the account. | None |
The command value is case-insensitive (e.g. BLOCK and block are equivalent).
Prerequisites
- The account must be in
Activestatus. - The account must not be a sub-account.
- The client owning the account must be active.
blockcreditandblockdebitfail if the account is already fully blocked (sub-statusBLOCK).unblockcreditrequires credits to be blocked (sub-statusBLOCK_CREDITorBLOCK);unblockdebitrequires debits to be blocked (sub-statusBLOCK_DEBITorBLOCK).
Sub-Status Transitions
| Command | Current Sub-Status | New Sub-Status |
|---|---|---|
block | Any | BLOCK |
unblock | BLOCK | NONE |
blockcredit | NONE | BLOCK_CREDIT |
unblockcredit | BLOCK_CREDIT | NONE |
blockdebit | NONE | BLOCK_DEBIT |
unblockdebit | BLOCK_DEBIT | NONE |
Example Requests
POST /v1/savingsaccounts/{accountId}?command=blockPOST /v1/savingsaccounts/{accountId}?command=unblockPOST /v1/savingsaccounts/{accountId}?command=blockcreditPOST /v1/savingsaccounts/{accountId}?command=unblockcreditPOST /v1/savingsaccounts/{accountId}?command=blockdebitPOST /v1/savingsaccounts/{accountId}?command=unblockdebit
Effects of Blocking
block: The account sub-status changes toBLOCK. All cards linked to the account are suspended and their status changes toSUSPENDED.unblock: The account sub-status is cleared. Cards that were suspended because of the account block are re-activated. If areasonis provided, it is saved as an account note.
For the supported values for Account Status, see: Account Status
For detailed account features, see: Accounts Features
| Function | Webhook |
|---|---|
| Block Account | Block Account |

