Data entity

RetailTransactionPaymentLineEntity

Holds the payment lines of retail transactions, one row per payment. It records the payment method, amount, tendered amount, currency and exchange rate. It also covers cards, gift cards, credit memos and linked refund payments. Country-specific extension data is joined in.

Entity name
RetailTransactionPaymentLineEntity
Public entity name
RetailTransactionPaymentLine
OData collection
RetailTransactionPaymentLines
Category
Not set
Module
Transactions and orders
Read-only
No
Data management enabled
Yes
Configuration key
Retail
Keys
Terminal, TransactionNumber, LineNumber, OperatingUnitNumber
Staging table
RetailTransactionPaymentLineStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/RetailTransactionPaymentLines
Dataverse virtual table
mserp_retailtransactionpaymentlineentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.
Data management
Enabled: you can use it in import and export projects.

Data sources

  • RetailTransactionPaymentTrans · root
  • RetailChannelTable · OuterJoin to RetailTransactionPaymentTrans · read-only
  • OMOperatingUnit · OuterJoin to RetailChannelTable · read-only
  • RetailDirectSalesChannel · Derived to RetailChannelTable
  • RetailOnlineChannelTable · Derived to RetailChannelTable
  • RetailMCRChannelTable · Derived to RetailChannelTable
  • RetailStoreTable · Derived to RetailChannelTable
  • RetailTransactionPaymentTransExt · OuterJoin to RetailTransactionPaymentTrans

Fields (36)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
AmountInTenderedCurrencyPayment amount in the transaction currency.Real
AmountCur
NoYesRetailTransactionPaymentTrans.amountCur
AmountInAccountingCurrencyPayment amount in the accounting currency.Real
AmountMST
NoYesRetailTransactionPaymentTrans.amountMST
AmountTenderedAmount handed over by the customer for this payment.Real
RetailAmountTendered
NoYesRetailTransactionPaymentTrans.amountTendered
CardOrAccountCard number or account used for the payment.String (30)
RetailCardOrAccount
NoNo (private)RetailTransactionPaymentTrans.cardOrAccount
CardTypeIdType of card used. Points to the card type record.String
RetailCardTypeId
NoYesRetailTenderTypeCardTable.cardTypeIdRetailTransactionPaymentTrans.cardTypeId
IsChangeLineYes/No flag showing whether the line is a change line.Enum
RetailChangeLine
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionPaymentTrans.changeLine
ChannelThe retail channel of the transaction. Points to the channel record.Int64
RefRecId
NoNo (private)RetailChannelTable.RecIdRetailTransactionPaymentTrans.Channel
CreditVoucherIdCredit memo used for the payment. Points to the credit memo record.String (30)
RetailCreditVoucherId
NoYesRetailCreditVoucherTable.entryIdRetailTransactionPaymentTrans.creditVoucherId
CurrencyCodeCurrency code of the payment. Points to the currency record.String (3)
CurrencyCode
NoYesCurrency.CurrencyCodeRetailTransactionPaymentTrans.currency
ExchangeRateInTenderedCurrencyExchange rate applied to the payment.Real
ExchRate
NoYesRetailTransactionPaymentTrans.exchRate
ExchangeRateInAccountingCurrencyExchange rate to the accounting currency.Real
ExchRate
NoYesRetailTransactionPaymentTrans.exchRateMST
GiftCardIdGift card used for the payment. Points to the gift card record.String (30)
RetailGiftCardId
NoYesRetailGiftCardTable.entryIdRetailTransactionPaymentTrans.giftCardId
IsPrepaymentYes/No flag showing whether the payment is a prepayment.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionPaymentTrans.isPrepayment
LineNumberLine number within the transaction.Real
LineNum
NoYesRetailTransactionPaymentTrans.lineNum
LoyaltyCardIdLoyalty card number linked to the payment. Points to the loyalty card record.String (30)
RetailLoyaltyCardNumber
NoYesRetailLoyaltyCard.CardNumberRetailTransactionPaymentTrans.loyaltyCardId
QuantityQuantity on the payment line.Real
Qty
NoYesRetailTransactionPaymentTrans.qty
ReceiptIdReceipt number printed for the transaction.String (18)
RetailReceiptId
NoYesRetailTransactionPaymentTrans.receiptId
TenderTypePayment method used, such as cash or card.String
RetailTenderTypeId
NoYesRetailTenderTypeTable.tenderTypeIdRetailTransactionPaymentTrans.tenderType
TerminalRegister (POS terminal) where the payment was taken.String
RetailTerminalId
NoYesRetailTerminalTable.terminalIdRetailTransactionPaymentTrans.terminal
TransactionNumberNumber of the retail transaction the payment belongs to.String (44)
RetailTransactionId
NoYesRetailTransactionTable.transactionIdRetailTransactionPaymentTrans.transactionId
TransactionStatusStatus of the entry, such as voided, posted, concluded or on hold.Enum
RetailTransEntryStatus
RetailEntryStatus
  • None 0
  • Voided 1
  • Posted 2
  • Concluded 3
  • Cancelled 4
  • OnHold 5
  • Training 6
  • PendingInvoice 7
  • CreatingOrder 8
NoYesRetailTransactionPaymentTrans.transactionStatus
RetailChannelTableOMOperatingUnitIDOperating unit that the channel is based on. It is the key of the record.Int64
RefRecId
NoNo (private)OMOperatingUnit.RecIdRetailChannelTable.OMOperatingUnitID
OperatingUnitNumberThe number that identifies the operating unit.String (30)
OMOperatingUnitNumber
YesYesOMOperatingUnit.OMOperatingUnitNumber
CardNumberCard number taken from the payment line, shown as text. The metadata gives no further detail on how it is filled.low confidenceString (30)NoYesvirtual
AccountNumberAccount number linked to the payment line, shown as text. The metadata gives no further detail on how it is filled.low confidenceString (30)NoYesvirtual
VoidStatusVoid state of the payment: none, payment voided, force voided or force void reconciled.Enum
RetailTenderVoidStatus
  • None 0
  • NormalVoid 1
  • ForceVoided 2
  • ForceVoidReconciled 3
NoYesRetailTransactionPaymentTrans.VoidStatus
StaffID of the operator who handled the payment.String (25)
RetailStaffId
NoYesRetailTransactionPaymentTrans.staff
AmountTenderedAdjustmentTendered amount for the payment line. The label does not explain the adjustment.low confidenceReal
RetailAmountTendered
NoYesRetailTransactionPaymentTransExt.AmountTenderedAdjustment
IsLinkedRefundYes/No flag showing whether the line is a refund linked to an earlier payment.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionPaymentTrans.IsLinkedRefund
LinkedPaymentStoreStore of the earlier payment that this refund is linked to.String
RetailStoreId
NoYesRetailTransactionPaymentTrans.LinkedPaymentStore
LinkedPaymentTerminalRegister of the earlier payment that this refund is linked to.String
RetailTerminalId
NoYesRetailTransactionPaymentTrans.LinkedPaymentTerminalId
LinkedPaymentTransactionNumberTransaction number of the earlier payment that this refund is linked to.String (44)
RetailTransactionId
NoYesRetailTransactionPaymentTrans.LinkedPaymentTransactionId
LinkedPaymentLineNumberLine number of the earlier payment that this refund is linked to.Real
LineNum
NoYesRetailTransactionPaymentTrans.lineNumRetailTransactionPaymentTrans.LinkedPaymentLineNumber
LinkedPaymentCurrencyCurrency of the earlier payment that this refund is linked to.String (3)
CurrencyCode
NoYesRetailTransactionPaymentTrans.LinkedPaymentCurrency
RefundableAmountAmount that can still be refunded on the linked payment, in the transaction currency.Real
AmountCur
NoYesRetailTransactionPaymentTrans.RefundableAmount
PaymentCaptureTokenLong text token for capturing the linked payment.String (-1)
RetailPaymentCaptureToken
NoYesRetailTransactionPaymentTrans.PaymentCaptureToken

Foreign keys (11)

Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.

Need help with RetailTransactionPaymentLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk