Skip to content

@mbanq/core-sdk-js v0.50.0


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

Function: GetChargesByLoanAccountId()

GetChargesByLoanAccountId(loanIdForCharge): Command<{ loanIdForCharge: number; }, object[]>

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

Get charges for a loan account

This endpoint retrieves all charges associated with a specified loan account. It provides information about each charge applied to the loan account, including details such as the amount, description, currency, and status.

Parameters

loanIdForCharge

number

The ID of the loan account

Returns

Command<{ loanIdForCharge: number; }, object[]>

Command object for getting charges by loan account ID

Example

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

const command = GetChargesByLoanAccountId(101);
const result = await client.request(command);

console.log(result[0].name); // 'Loan charge'
console.log(result[0].amount); // 4206.18
console.log(result[0].paid); // false

Released under the MIT License.