Table
RetailTransactionPaymentTrans
Payment transactions
Holds payment lines of retail transactions. It is keyed by channel, store, register, transaction number and line number. Each line has the payment method, amounts, currency, card or gift card details and the statement it belongs to. Linked refund fields point back to another payment line in the same table.
- Table name
RetailTransactionPaymentTrans- Module
Commerce transactions and orders- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
transactionLineIdx- Replacement key
transactionLineIdx- Key fields
Channel, store, terminal, transactionId, lineNum- Model
Foundation
Fields (71)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ChannelThe retail channel of the transaction. Points to the channel record. | Int64RefRecId | No | RetailChannelTable.RecId | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more |
storeStore where the payment was taken. | StringRetailStoreId | No | RetailStoreTable.StoreNumber | RetailTransactionPaymentLineV2EntityRetailTransactionAuditablePaymentLineEntityRetailTransactionPaymentTransBIEntity |
terminalRegister (POS terminal) where the payment was taken. | StringRetailTerminalId | No | RetailTerminalTable.terminalId | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more |
transactionIdNumber of the retail transaction the payment belongs to. | String (44)RetailTransactionId | No | RetailTransactionTable.transactionId | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more |
lineNumLine number within the transaction. | RealLineNum | No | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more | |
amountCurPayment amount in the transaction currency. | RealAmountCur | No | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more | |
amountMSTPayment amount in the accounting currency. | RealAmountMST | No | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more | |
amountTenderedAmount handed over by the customer for this payment. | RealRetailAmountTendered | No | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more | |
authenticationCodeCode returned to authenticate the payment. | String (20)RetailAuthenticationCode | No | RetailTransactionPaymentTransBIEntity | |
AuthorizedAmountAuthorised amount in the transaction currency. | RealAmountCur | No | RetailTransactionPaymentTransBIEntity | |
businessDateBusiness date of the transaction. | DateRetailBusinessDate | No | RetailTransactionAuditablePaymentLineEntityRetailTransactionPaymentTransBIEntity | |
cardOrAccountCard number or account used for the payment. | String (30)RetailCardOrAccount | No | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more | |
CardPaymentAccountIdIdentifier of the card payment account. | String (80)RetailCardPaymentAccountId | No | RetailTransactionAuditablePaymentLineEntityRetailTransactionPaymentTransBIEntity | |
cardTypeIdType of card used. Points to the card type record. | StringRetailCardTypeId | No | RetailTenderTypeCardTable.cardTypeId | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more |
CashDocId_RUCash document number, used for Russia. Relates to the cash transaction. | String (20)RCashDocId | No | RetailTransactionPaymentTransBIEntity | |
changeLineYes/No flag showing whether the line is a change line. | EnumRetailChangeLineNoYes (enum) | No | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more | |
counterCounter value for the line.low confidence | IntegerRetailCounter | No | RetailTransactionPaymentTransBIEntity | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | RetailTransactionPaymentTransBIEntity | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | RetailTransactionPaymentTransBIEntity | |
CreditCardProcessorStatusResult from the card processor, such as approved, declined, error, settled, pending or timed out. | EnumCreditCardProcessorStatus (enum) | No | RetailTransactionPaymentTransBIEntity | |
creditVoucherIdCredit memo used for the payment. Points to the credit memo record. | String (30)RetailCreditVoucherId | No | RetailCreditVoucherTable.entryId | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity |
currencyCurrency code of the payment. Points to the currency record. | String (3)CurrencyCode | No | Currency.CurrencyCode | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | RetailTransactionPaymentTransBIEntity | |
DefaultDimensionSet of financial dimension values for the line. | Int64LedgerDefaultDimensionValueSet | No | DimensionAttributeValueSet.RecId | RetailTransactionAuditablePaymentLineEntityRetailTransactionPaymentTransBIEntity |
exchRateExchange rate applied to the payment. | RealExchRate | No | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more | |
exchRateMSTExchange rate to the accounting currency. | RealExchRate | No | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity | |
giftCardIdGift card used for the payment. Points to the gift card record. | String (30)RetailGiftCardId | No | RetailGiftCardTable.entryId | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity |
IsCaptureFailedYes/No flag showing whether capturing the payment failed. | EnumNoYes (enum) | No | RetailTransactionPaymentTransBIEntity | |
IsCustomerAccountFloorLimitUsedYes/No flag showing whether the customer account floor limit was used while the real-time service was down. | EnumIsCustomerAccountFloorLimitUsedNoYes (enum) | No | RetailTransactionPaymentTransBIEntity | |
IsLinkedRefundYes/No flag showing whether the line is a refund linked to an earlier payment. | EnumNoYes (enum) | No | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity | |
IsPaymentCapturedYes/No flag showing whether the payment has been captured. | EnumRetailPaymentStatusNoYes (enum) | No | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentTransBIEntity | |
IsPaymentDataArchivedYes/No flag. The name suggests the payment data has been archived. No label is given.low confidence | EnumNoYes (enum) | No | RetailTransactionPaymentTransBIEntity | |
IsPaymentDataCompressedYes/No flag. The name suggests the payment data has been compressed. No label is given.low confidence | EnumNoYes (enum) | No | RetailTransactionPaymentTransBIEntity | |
isPrepaymentYes/No flag showing whether the payment is a prepayment. | EnumNoYesIdNoYes (enum) | No | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity | |
LinkedPaymentCurrencyCurrency of the earlier payment that this refund is linked to. | String (3)CurrencyCode | No | RetailTransactionPaymentTrans.currency | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity |
LinkedPaymentLineNumberLine number of the earlier payment that this refund is linked to. | RealLineNum | No | RetailTransactionPaymentTrans.lineNum | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity |
LinkedPaymentRefRecIdReference to the linked payment by system record ID. | Int64RefRecId | No | RetailTransactionPaymentTransBIEntity | |
LinkedPaymentStoreStore of the earlier payment that this refund is linked to. | StringRetailStoreId | No | RetailTransactionPaymentTrans.store | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity |
LinkedPaymentTerminalIdRegister of the earlier payment that this refund is linked to. | StringRetailTerminalId | No | RetailTransactionPaymentTrans.terminal | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity |
LinkedPaymentTransactionIdTransaction number of the earlier payment that this refund is linked to. | String (44)RetailTransactionId | No | RetailTransactionPaymentTrans.transactionId | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity |
loyaltyCardIdLoyalty card number linked to the payment. Points to the loyalty card record. | String (30)RetailLoyaltyCardNumber | No | RetailLoyaltyCard.CardNumber | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity |
managerKeyLiveYes/No flag for the manager key setting on the line.low confidence | EnumRetailManagerKeyLiveNoYes (enum) | No | RetailTransactionPaymentTransBIEntity | |
messageNumMessage number linked to the line.low confidence | IntegerRetailMessageNum | No | RetailTransactionPaymentTransBIEntity | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | RetailTransactionPaymentTransBIEntity | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | RetailTransactionPaymentTransBIEntity | |
OriginNumber of the location the record came from. | String (50)RetailConnDistributionLocationId | No | RetailTransactionPaymentTransBIEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
paymentAuthorizationLong text token that authorises the payment. | String (-1)RetailPaymentAuthorizationToken | No | RetailTransactionPaymentTransBIEntity | |
PaymentCaptureTokenLong text token for capturing the linked payment. | String (-1)RetailPaymentCaptureToken | No | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity | |
paymentCardTokenLong text token for the card payment authorisation. | String (-1)RetailPaymentAuthorizationToken | No | RetailTransactionPaymentTransBIEntity | |
PaymentRefRecIdReference to a related record by system record ID. The target table is not stated.low confidence | Int64RefRecId | No | RetailTransactionPaymentTransBIEntity | |
qtyQuantity on the payment line. | RealQty | No | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity | |
receiptIdReceipt number printed for the transaction. | String (18)RetailReceiptId | No | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | RetailTransactionPaymentTransBIEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RefundableAmountAmount that can still be refunded on the linked payment, in the transaction currency. | RealAmountCur | No | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity | |
replicatedYes/No flag showing whether the record has been replicated. | EnumRetailReplicatedNoYes (enum) | No | RetailTransactionPaymentTransBIEntity | |
replicationCounterFromOriginCounter used to track replication of the record from its origin location. | IntegerRetailReplicationCounter | No | RetailTransactionPaymentTransBIEntity | |
shiftShift in which the payment was taken. | StringRetailShiftId | No | RetailTransactionPaymentTransBIEntity | |
shiftDateDate of the shift. Relates to the work shift record. | DateRetailShiftDate | No | RetailTransactionPaymentTransBIEntity | |
sigCapDataSignature data captured for the payment. | String (-1)RetailSigCapData | No | RetailTransactionPaymentTransBIEntity | |
staffID of the operator who handled the payment. | String (25)RetailStaffId | No | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more | |
statementCodeCode of the statement line that includes the payment. | String (25)RetailStatementCode | No | RetailTransactionAuditablePaymentLineEntityRetailTransactionPaymentTransBIEntity | |
statementIdStatement the payment belongs to. | String (20)RetailStatementId | No | RetailStatementTable.statementId | RetailTransactionAuditablePaymentLineEntityRetailTransactionPaymentTransBIEntity |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
tenderTypePayment method used, such as cash or card. | StringRetailTenderTypeId | No | RetailTenderTypeTable.tenderTypeId | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more |
transactionStatusStatus of the entry, such as voided, posted, concluded or on hold. | EnumRetailTransEntryStatusRetailEntryStatus (enum) | No | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more | |
transDateDate of the payment. | DateTransDate | No | RetailTransactionAuditablePaymentLineEntityRetailTransactionPaymentTransBIEntity | |
transTimeTime of the payment. | TimeRetailTransTime | No | RetailTransactionAuditablePaymentLineEntityRetailTransactionPaymentTransBIEntity | |
VoidStatusVoid state of the payment: none, payment voided, force voided or force void reconciled. | EnumRetailTenderVoidStatus (enum) | No | RetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more |
Indexes (15)
transactionLineIdxPrimary indexReplacement keyChannel,store,terminal,transactionId,lineNumUnique, alternate key.
statementTenderCardCurIdxstore,tenderType,cardTypeId,currency,statementCodeNot unique.
transactionIdIdxNot unique.
LocationIdxOrigin,replicationCounterFromOriginNot unique.
CashDocIdIdx_RUNot unique.
DimensionGroupIdxstore,terminal,statementId,transactionId,DefaultDimensionNot unique.
statementIdxNot unique.
CustomerBalanceStoreDateTimeIdxstore,transDate,transTime,RecIdNot unique.
CustomerBalanceStoreReplicationCounterIdxstore,replicationCounterFromOriginNot unique.
BusinessDateIdxIsPaymentDataArchived,tenderType,businessDateNot unique.
CardOrAccountTransactionStatusIdxcardOrAccount,transactionStatus,amountTendered,tenderTypeNot unique.
TransDate_IsPaymentDataArchivedIdxIsPaymentDataArchived,tenderType,transDate,RecIdNot unique.
CustomerBalanceChannelIdDateTimeIdxChannel,transDate,transTime,RecIdNot unique.
CustomerBalanceChannelIdReplicationCounterIdxChannel,replicationCounterFromOriginNot unique.
ColumnStoreIdxstore,DataAreaId,Partition,terminal,transactionId,amountTendered,amountMST,amountCur,qty,tenderType,RecId,Channel,staffNot unique.
Relations (17)
Each relation joins RetailTransactionPaymentTrans to another table on the fields shown.
Currency→CurrencyJoin on
currency = Currency.CurrencyCodeMany RetailTransactionPaymentTrans records → exactly one Currency record
DimensionAttributeValueSet→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany RetailTransactionPaymentTrans records → zero or one DimensionAttributeValueSet record
RCashTrans→RCashTransJoin on
CashDocId_RU = RCashTrans.DocIdZero or one RetailTransactionPaymentTrans record → zero or one RCashTrans record
RetailChannelTable→RetailChannelTableJoin on
Channel = RetailChannelTable.RecIdMany RetailTransactionPaymentTrans records → zero or one RetailChannelTable record
RetailCreditVoucherTable→RetailCreditVoucherTableJoin on
creditVoucherId = RetailCreditVoucherTable.entryIdMany RetailTransactionPaymentTrans records → zero or one RetailCreditVoucherTable record
RetailGiftCardTable→RetailGiftCardTableJoin on
giftCardId = RetailGiftCardTable.entryIdMany RetailTransactionPaymentTrans records → zero or one RetailGiftCardTable record
RetailLoyaltyCard→RetailLoyaltyCardJoin on
loyaltyCardId = RetailLoyaltyCard.CardNumberMany RetailTransactionPaymentTrans records → exactly one RetailLoyaltyCard record
RetailStatementLine→RetailStatementLineJoin on
statementCode = RetailStatementLine.statementCode,currency = RetailStatementLine.currency,cardTypeId = RetailStatementLine.cardTypeId,tenderType = RetailStatementLine.tenderTypeId,statementId = RetailStatementLine.statementIdMany RetailTransactionPaymentTrans records → zero or one RetailStatementLine record
RetailStatementTable→RetailStatementTableJoin on
statementId = RetailStatementTable.statementIdMany RetailTransactionPaymentTrans records → zero or one RetailStatementTable record
RetailStatementTrans→RetailStatementTransJoin on
statementCode = RetailStatementTrans.statementCode,currency = RetailStatementTrans.currency,cardTypeId = RetailStatementTrans.cardTypeId,tenderType = RetailStatementTrans.tenderTypeId,statementId = RetailStatementTrans.statementIdMany RetailTransactionPaymentTrans records → zero or one RetailStatementTrans record
RetailStoreTable→RetailStoreTableJoin on
store = RetailStoreTable.StoreNumberMany RetailTransactionPaymentTrans records → exactly one RetailStoreTable record
RetailStoreWorkShiftTable→RetailStoreWorkShiftTableJoin on
shiftDate = RetailStoreWorkShiftTable.shiftDateMany RetailTransactionPaymentTrans records → zero or one RetailStoreWorkShiftTable record
RetailTenderTypeCardTable→RetailTenderTypeCardTableJoin on
cardTypeId = RetailTenderTypeCardTable.cardTypeIdMany RetailTransactionPaymentTrans records → exactly one RetailTenderTypeCardTable record
RetailTenderTypeTable→RetailTenderTypeTableJoin on
tenderType = RetailTenderTypeTable.tenderTypeIdMany RetailTransactionPaymentTrans records → exactly one RetailTenderTypeTable record
RetailTerminalTable→RetailTerminalTableJoin on
terminal = RetailTerminalTable.terminalIdMany RetailTransactionPaymentTrans records → exactly one RetailTerminalTable record
RetailTransactionTable→RetailTransactionTableJoin on
Channel = RetailTransactionTable.Channel,store = RetailTransactionTable.store,terminal = RetailTransactionTable.terminal,transactionId = RetailTransactionTable.transactionIdMany RetailTransactionPaymentTrans records → zero or one RetailTransactionTable record
LinkedPayment→RetailTransactionPaymentTransJoin on
Channel = RetailTransactionPaymentTrans.Channel,LinkedPaymentStore = RetailTransactionPaymentTrans.store,LinkedPaymentTerminalId = RetailTransactionPaymentTrans.terminal,LinkedPaymentTransactionId = RetailTransactionPaymentTrans.transactionId,LinkedPaymentLineNumber = RetailTransactionPaymentTrans.lineNum,LinkedPaymentCurrency = RetailTransactionPaymentTrans.currencyMany RetailTransactionPaymentTrans records → exactly one RetailTransactionPaymentTrans record
Get this data out
Tables are not exposed directly. These public entities read from RetailTransactionPaymentTrans; use one of them in Power BI, Power Platform or a data management project.
RetailTransactionPaymentLineV2Entity· 33 fields from this tableRetailTransactionPaymentLineEntity· 31 fields from this tableRetailTransactionAuditablePaymentLineEntity· 24 fields from this tableRetailTransactionPaymentTransBIEntity· 67 fields from this table
Need help with RetailTransactionPaymentTrans in a report, an integration or a migration? Talk to Dr Dynamics.