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· rootRetailChannelTable· OuterJoin toRetailTransactionPaymentTrans· read-onlyOMOperatingUnit· OuterJoin toRetailChannelTable· read-onlyRetailDirectSalesChannel· Derived toRetailChannelTableRetailOnlineChannelTable· Derived toRetailChannelTableRetailMCRChannelTable· Derived toRetailChannelTableRetailStoreTable· Derived toRetailChannelTableRetailTransactionPaymentTransExt· OuterJoin toRetailTransactionPaymentTrans
Fields (36)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
AmountInTenderedCurrencyPayment amount in the transaction currency. | RealAmountCur | No | Yes | RetailTransactionPaymentTrans.amountCur | |
AmountInAccountingCurrencyPayment amount in the accounting currency. | RealAmountMST | No | Yes | RetailTransactionPaymentTrans.amountMST | |
AmountTenderedAmount handed over by the customer for this payment. | RealRetailAmountTendered | No | Yes | RetailTransactionPaymentTrans.amountTendered | |
CardOrAccountCard number or account used for the payment. | String (30)RetailCardOrAccount | No | No (private) | RetailTransactionPaymentTrans.cardOrAccount | |
CardTypeIdType of card used. Points to the card type record. | StringRetailCardTypeId | No | Yes | RetailTenderTypeCardTable.cardTypeId | RetailTransactionPaymentTrans.cardTypeId |
IsChangeLineYes/No flag showing whether the line is a change line. | EnumRetailChangeLine
| No | Yes | RetailTransactionPaymentTrans.changeLine | |
ChannelThe retail channel of the transaction. Points to the channel record. | Int64RefRecId | No | No (private) | RetailChannelTable.RecId | RetailTransactionPaymentTrans.Channel |
CreditVoucherIdCredit memo used for the payment. Points to the credit memo record. | String (30)RetailCreditVoucherId | No | Yes | RetailCreditVoucherTable.entryId | RetailTransactionPaymentTrans.creditVoucherId |
CurrencyCodeCurrency code of the payment. Points to the currency record. | String (3)CurrencyCode | No | Yes | Currency.CurrencyCode | RetailTransactionPaymentTrans.currency |
ExchangeRateInTenderedCurrencyExchange rate applied to the payment. | RealExchRate | No | Yes | RetailTransactionPaymentTrans.exchRate | |
ExchangeRateInAccountingCurrencyExchange rate to the accounting currency. | RealExchRate | No | Yes | RetailTransactionPaymentTrans.exchRateMST | |
GiftCardIdGift card used for the payment. Points to the gift card record. | String (30)RetailGiftCardId | No | Yes | RetailGiftCardTable.entryId | RetailTransactionPaymentTrans.giftCardId |
IsPrepaymentYes/No flag showing whether the payment is a prepayment. | EnumNoYesId
| No | Yes | RetailTransactionPaymentTrans.isPrepayment | |
LineNumberLine number within the transaction. | RealLineNum | No | Yes | RetailTransactionPaymentTrans.lineNum | |
LoyaltyCardIdLoyalty card number linked to the payment. Points to the loyalty card record. | String (30)RetailLoyaltyCardNumber | No | Yes | RetailLoyaltyCard.CardNumber | RetailTransactionPaymentTrans.loyaltyCardId |
QuantityQuantity on the payment line. | RealQty | No | Yes | RetailTransactionPaymentTrans.qty | |
ReceiptIdReceipt number printed for the transaction. | String (18)RetailReceiptId | No | Yes | RetailTransactionPaymentTrans.receiptId | |
TenderTypePayment method used, such as cash or card. | StringRetailTenderTypeId | No | Yes | RetailTenderTypeTable.tenderTypeId | RetailTransactionPaymentTrans.tenderType |
TerminalRegister (POS terminal) where the payment was taken. | StringRetailTerminalId | No | Yes | RetailTerminalTable.terminalId | RetailTransactionPaymentTrans.terminal |
TransactionNumberNumber of the retail transaction the payment belongs to. | String (44)RetailTransactionId | No | Yes | RetailTransactionTable.transactionId | RetailTransactionPaymentTrans.transactionId |
TransactionStatusStatus of the entry, such as voided, posted, concluded or on hold. | EnumRetailTransEntryStatus
| No | Yes | RetailTransactionPaymentTrans.transactionStatus | |
RetailChannelTableOMOperatingUnitIDOperating unit that the channel is based on. It is the key of the record. | Int64RefRecId | No | No (private) | OMOperatingUnit.RecId | RetailChannelTable.OMOperatingUnitID |
OperatingUnitNumberThe number that identifies the operating unit. | String (30)OMOperatingUnitNumber | Yes | Yes | OMOperatingUnit.OMOperatingUnitNumber | |
CardNumberCard number taken from the payment line, shown as text. The metadata gives no further detail on how it is filled.low confidence | String (30) | No | Yes | virtual | |
AccountNumberAccount number linked to the payment line, shown as text. The metadata gives no further detail on how it is filled.low confidence | String (30) | No | Yes | virtual | |
VoidStatusVoid state of the payment: none, payment voided, force voided or force void reconciled. | Enum
| No | Yes | RetailTransactionPaymentTrans.VoidStatus | |
StaffID of the operator who handled the payment. | String (25)RetailStaffId | No | Yes | RetailTransactionPaymentTrans.staff | |
AmountTenderedAdjustmentTendered amount for the payment line. The label does not explain the adjustment.low confidence | RealRetailAmountTendered | No | Yes | RetailTransactionPaymentTransExt.AmountTenderedAdjustment | |
IsLinkedRefundYes/No flag showing whether the line is a refund linked to an earlier payment. | Enum
| No | Yes | RetailTransactionPaymentTrans.IsLinkedRefund | |
LinkedPaymentStoreStore of the earlier payment that this refund is linked to. | StringRetailStoreId | No | Yes | RetailTransactionPaymentTrans.LinkedPaymentStore | |
LinkedPaymentTerminalRegister of the earlier payment that this refund is linked to. | StringRetailTerminalId | No | Yes | RetailTransactionPaymentTrans.LinkedPaymentTerminalId | |
LinkedPaymentTransactionNumberTransaction number of the earlier payment that this refund is linked to. | String (44)RetailTransactionId | No | Yes | RetailTransactionPaymentTrans.LinkedPaymentTransactionId | |
LinkedPaymentLineNumberLine number of the earlier payment that this refund is linked to. | RealLineNum | No | Yes | RetailTransactionPaymentTrans.lineNum | RetailTransactionPaymentTrans.LinkedPaymentLineNumber |
LinkedPaymentCurrencyCurrency of the earlier payment that this refund is linked to. | String (3)CurrencyCode | No | Yes | RetailTransactionPaymentTrans.LinkedPaymentCurrency | |
RefundableAmountAmount that can still be refunded on the linked payment, in the transaction currency. | RealAmountCur | No | Yes | RetailTransactionPaymentTrans.RefundableAmount | |
PaymentCaptureTokenLong text token for capturing the linked payment. | String (-1)RetailPaymentCaptureToken | No | Yes | RetailTransactionPaymentTrans.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.
CardTypeId→RetailTenderTypeCardTable.cardTypeId(key of RetailTenderTypeCardTable)Many RetailTransactionPaymentTrans records → exactly one RetailTenderTypeCardTable record
RetailTenderTypeCardTable details: see RetailTenderTypeCardEntity, RetailChannelEntity
Channel→RetailChannelTable.RecId(key of RetailChannelTable)Many RetailTransactionPaymentTrans records → zero or one RetailChannelTable record
RetailChannelTable details: see RetailChannelEntity, RetailCallCenterEntity, RetailOnlineChannelEntity
CreditVoucherId→RetailCreditVoucherTable.entryId(key of RetailCreditVoucherTable)Many RetailTransactionPaymentTrans records → zero or one RetailCreditVoucherTable record
RetailCreditVoucherTable details: see RetailCreditMemoEntity
CurrencyCode→Currency.CurrencyCode(key of Currency)Many RetailTransactionPaymentTrans records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
GiftCardId→RetailGiftCardTable.entryId(key of RetailGiftCardTable)Many RetailTransactionPaymentTrans records → zero or one RetailGiftCardTable record
RetailGiftCardTable details: see RetailGiftCardEntity, MCRContinuityCustomerPaymentEntity, MCRCustomerCreditPaymentEntity
LoyaltyCardId→RetailLoyaltyCard.CardNumber(key of RetailLoyaltyCard)Many RetailTransactionPaymentTrans records → exactly one RetailLoyaltyCard record
RetailLoyaltyCard details: see RetailLoyaltyCardEntity, RetailLoyaltyCardRewardPointAdjustmentEntity, RetailLoyaltyCardTierEntity
TenderType→RetailTenderTypeTable.tenderTypeId(key of RetailTenderTypeTable)Many RetailTransactionPaymentTrans records → exactly one RetailTenderTypeTable record
RetailTenderTypeTable details: see RetailTenderTypeEntity, RetailTenderDiscountEntity
Terminal→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailTransactionPaymentTrans records → exactly one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
TransactionNumber→RetailTransactionTable.transactionId(key of RetailTransactionTable)Join on all of:
TransactionNumber=RetailTransactionTable.transactionId,Channel=RetailTransactionTable.Channel,store(table field, not in this entity) =RetailTransactionTable.store,Terminal=RetailTransactionTable.terminalMany RetailTransactionPaymentTrans records → zero or one RetailTransactionTable record
RetailTransactionTable details: see RetailTransactionEntity, RetailTransactionTableBIEntity, RetailTransactionTableCDREntity
RetailChannelTableOMOperatingUnitID→OMOperatingUnit.RecId(key of OMOperatingUnit)Zero or one RetailChannelTable record → exactly one OMOperatingUnit record
OMOperatingUnit details: see ACOCostCenterTypeEntity, OMOperatingUnitEntity, AssetPackingSlipEntity
LinkedPaymentLineNumber→RetailTransactionPaymentTrans.lineNum(key of RetailTransactionPaymentTrans)Join on all of:
LinkedPaymentLineNumber=RetailTransactionPaymentTrans.lineNum,Channel=RetailTransactionPaymentTrans.Channel,LinkedPaymentStore=RetailTransactionPaymentTrans.store,LinkedPaymentTerminal=RetailTransactionPaymentTrans.terminal,LinkedPaymentTransactionNumber=RetailTransactionPaymentTrans.transactionId,LinkedPaymentCurrency=RetailTransactionPaymentTrans.currencyMany RetailTransactionPaymentTrans records → exactly one RetailTransactionPaymentTrans record
RetailTransactionPaymentTrans details: see RetailTransactionPaymentLineV2Entity, RetailTransactionPaymentTransBIEntity, RetailTransactionAuditablePaymentLineEntity
Need help with RetailTransactionPaymentLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.