Skip to content

@mbanq/core-sdk-js v0.50.0


@mbanq/core-sdk-js / commands / DeleteFixedDepositAccount

Function: DeleteFixedDepositAccount()

DeleteFixedDepositAccount(accountId): Command<{ accountId: number; }, { clientId: number; id: string; officeId: number; resourceId: string; savingsId: string; }>

Defined in: src/commands/rest/fixedDepositAccount.ts:214

Deletes a specific Fixed Deposit Account by its unique identifier.

This API allows you to delete a Fixed Deposit Account. The account can only be deleted if it is not activated.

Pre-check: The account can only be deleted if the Fixed Deposit account is not activated.

Parameters

accountId

number

The ID associated with the fixed deposit account

Returns

Command<{ accountId: number; }, { clientId: number; id: string; officeId: number; resourceId: string; savingsId: string; }>

A Command that when executed returns the deletion response

Example

typescript
const deleteFDCmd = DeleteFixedDepositAccount(13400);
const result = await deleteFDCmd.execute(config);
console.log('Deleted account:', result.savingsId);

Released under the MIT License.