Skip to content

@mbanq/core-sdk-js v0.50.0


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

Function: AdjustCreditAccountLimits() ​

AdjustCreditAccountLimits(creditAccountId, data): Command<{ creditAccountId: number; data: { cashLimit: number; creditLimit: number; locale: string; }; }, { clientId: number; id: number; officeId: number; resourceId: number; }>

Defined in: src/commands/rest/creditAccount.ts:689

Adjust credit account limits

Adjusts the credit limit and cash limit for an existing credit account. This command allows increasing or decreasing the available credit and cash advance limits.

Parameters ​

creditAccountId ​

number

The unique identifier of the credit account to adjust limits for

data ​

cashLimit ​

number = ...

creditLimit ​

number = ...

locale ​

string = ...

Returns ​

Command<{ creditAccountId: number; data: { cashLimit: number; creditLimit: number; locale: string; }; }, { clientId: number; id: number; officeId: number; resourceId: number; }>

Command object that executes the API request and returns the adjusted account details

Example ​

typescript
const command = AdjustCreditAccountLimits(123, {
  creditLimit: 75000,
  cashLimit: 15000,
  locale: 'en'
});
const result = await client.request(command);
// result.resourceId contains the credit account ID with adjusted limits

Released under the MIT License.