Skip to content

@mbanq/core-sdk-js v0.50.0


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

Function: GetCreditAccountTransactionById()

GetCreditAccountTransactionById(params): Command<{ params: { creditAccountId: number; transactionId: number; }; }, { accountId: number; accountNo: string; amount: number; bookingDate: [number, number, number]; currency: { code: string; currencyCodeInDigit: number; decimalPlaces: number; displayLabel: string; displaySymbol: string; inMultiplesOf: number; isBaseCurrency: boolean; name: string; nameCode: string; }; date: [number, number, number]; disputable: string; id: number; interestedPostedAsOn: boolean; outstandingChargeAmount: number; paymentDetailData: { cardAuthorizationData: { account?: any; amount: number; amountDetails?: any; authType: string; avsData?: any; card?: any; clearedAmount: number; createdAt: string; currency: string; emv?: any; executionCode: string; executionMessage: string; expiryDate?: any; externalAuthId: string; externalCardId: string; externalOriginalAuthId: string; flag: string; gatewayToken: string; id: number; incremental: boolean; internalId: string; international: boolean; isDFEDenied: boolean; isEcommerce: boolean; isInPersonTapTransaction?: boolean; merchant?: any; network: string; pinCapability: string; releasedAt: string; returnBalance: boolean; riskScore: string; status: string; transaction?: any; transactionType: string; }; id: number; paymentType: { id: number; name: string; }; reference: string; }; reversed: boolean; runningBalance: number; status: string; submittedByUsername: string; submittedOnDate: { date: [number, number, number]; time: { hour: number; minute: number; nano: number; second: number; }; }; subTransactionType: { chargeBack: boolean; code: string; deposit: boolean; escheat: boolean; feeDeduction: boolean; id: number; interestPosting: boolean; interestReceivableAccrued: boolean; isDebit: boolean; isDisputeDenied: boolean; isFeeReversal: boolean; overdraftFee: boolean; refund: boolean; value: string; withdrawal: boolean; writtenoff: boolean; }; transactionType: { chargeBack: boolean; code: string; deposit: boolean; escheat: boolean; feeDeduction: boolean; id: number; interestPosting: boolean; interestReceivableAccrued: boolean; isDebit: boolean; isDisputeDenied: boolean; isFeeReversal: boolean; overdraftFee: boolean; refund: boolean; value: string; withdrawal: boolean; writtenoff: boolean; }; }>

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

Get credit account transaction by ID

Retrieves detailed information for a specific transaction within a credit account using the credit account ID and transaction ID. This endpoint allows you to fetch comprehensive transaction details including transaction type, amount, currency, payment details, status, and balance information.

Parameters

params

creditAccountId

number = ...

transactionId

number = ...

Returns

Command<{ params: { creditAccountId: number; transactionId: number; }; }, { accountId: number; accountNo: string; amount: number; bookingDate: [number, number, number]; currency: { code: string; currencyCodeInDigit: number; decimalPlaces: number; displayLabel: string; displaySymbol: string; inMultiplesOf: number; isBaseCurrency: boolean; name: string; nameCode: string; }; date: [number, number, number]; disputable: string; id: number; interestedPostedAsOn: boolean; outstandingChargeAmount: number; paymentDetailData: { cardAuthorizationData: { account?: any; amount: number; amountDetails?: any; authType: string; avsData?: any; card?: any; clearedAmount: number; createdAt: string; currency: string; emv?: any; executionCode: string; executionMessage: string; expiryDate?: any; externalAuthId: string; externalCardId: string; externalOriginalAuthId: string; flag: string; gatewayToken: string; id: number; incremental: boolean; internalId: string; international: boolean; isDFEDenied: boolean; isEcommerce: boolean; isInPersonTapTransaction?: boolean; merchant?: any; network: string; pinCapability: string; releasedAt: string; returnBalance: boolean; riskScore: string; status: string; transaction?: any; transactionType: string; }; id: number; paymentType: { id: number; name: string; }; reference: string; }; reversed: boolean; runningBalance: number; status: string; submittedByUsername: string; submittedOnDate: { date: [number, number, number]; time: { hour: number; minute: number; nano: number; second: number; }; }; subTransactionType: { chargeBack: boolean; code: string; deposit: boolean; escheat: boolean; feeDeduction: boolean; id: number; interestPosting: boolean; interestReceivableAccrued: boolean; isDebit: boolean; isDisputeDenied: boolean; isFeeReversal: boolean; overdraftFee: boolean; refund: boolean; value: string; withdrawal: boolean; writtenoff: boolean; }; transactionType: { chargeBack: boolean; code: string; deposit: boolean; escheat: boolean; feeDeduction: boolean; id: number; interestPosting: boolean; interestReceivableAccrued: boolean; isDebit: boolean; isDisputeDenied: boolean; isFeeReversal: boolean; overdraftFee: boolean; refund: boolean; value: string; withdrawal: boolean; writtenoff: boolean; }; }>

Command object that executes the API request and returns transaction details

Example

typescript
const command = GetCreditAccountTransactionById(13985, 12345);
const transaction = await client.request(command);

Released under the MIT License.