Skip to content

@mbanq/core-sdk-js v0.50.0


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

Function: WaiveChargeFromAccount()

WaiveChargeFromAccount(params): Command<{ params: { accountId: number; chargeId: number; }; }, { clientId: number; id: number; officeId: number; resourceId: number; savingsId: number; }>

Defined in: src/commands/rest/charge.ts:224

Waive a charge from a savings account

This endpoint allows you to waive (remove or cancel) an added charge from a specified account. This is typically used to reverse fees, penalties, or other charges that were applied to an account, either due to errors or as a goodwill gesture.

Parameters

params

accountId

number = ...

chargeId

number = ...

Returns

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

Command object for waiving a charge from an account

Example

typescript
import { WaiveChargeFromAccount } from '@mbanq/core-sdk';

const command = WaiveChargeFromAccount({ accountId: 101, chargeId: 10 });
const result = await client.request(command);

console.log(result.resourceId); // 3
console.log(result.savingsId); // 47

Released under the MIT License.