Skip to content

@mbanq/core-sdk-js v0.50.0


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

Function: CreateCreditAccountPayment()

CreateCreditAccountPayment(creditAccountId, data): Command<{ creditAccountId: number; data: { amount: number; currentAccountId: number; locale: string; }; }, { resourceId: number; }>

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

Create a payment for a credit account

Processes a payment to reduce the outstanding balance on a credit account. The payment is made from an internal account (savings/checking) to the credit account. This operation supports partial payments and full payments.

Parameters

creditAccountId

number

The unique identifier of the credit account to make payment on

data

amount

number = ...

currentAccountId

number = ...

locale

string = ...

Returns

Command<{ creditAccountId: number; data: { amount: number; currentAccountId: number; locale: string; }; }, { resourceId: number; }>

Command object that executes the API request and returns payment processing result

Example

typescript
const command = CreateCreditAccountPayment(388, {
  currentAccountId: 123,
  amount: 500,
  locale: 'en'
});
const result = await client.request(command);

Released under the MIT License.