Skip to content

@mbanq/core-sdk-js v0.50.0


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

Function: ApproveCreditAccount() ​

ApproveCreditAccount(creditAccountId, data): Command<{ creditAccountId: number; data: { approvedOnDate: string; dateFormat: string; locale: string; }; }, { clientId: number; id: number; officeId: number; resourceId: number; }>

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

Approve a credit account

Approves a pending credit account application, activating it for use. This command processes the approval and sets the approval date.

Parameters ​

creditAccountId ​

number

The unique identifier of the credit account to approve

data ​

approvedOnDate ​

string = ...

dateFormat ​

string = ...

locale ​

string = ...

Returns ​

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

Command object that executes the API request and returns approval confirmation

Example ​

typescript
const command = ApproveCreditAccount(123, {
  approvedOnDate: '01 January 2024',
  dateFormat: 'dd MMMM yyyy',
  locale: 'en'
});
const result = await client.request(command);

Released under the MIT License.