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 descriptionType / EDT / enumMandatoryReferencesIn public entities
ChannelThe retail channel of the transaction. Points to the channel record.Int64
RefRecId
NoRetailChannelTable.RecIdRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more
storeStore where the payment was taken.String
RetailStoreId
NoRetailStoreTable.StoreNumberRetailTransactionPaymentLineV2EntityRetailTransactionAuditablePaymentLineEntityRetailTransactionPaymentTransBIEntity
terminalRegister (POS terminal) where the payment was taken.String
RetailTerminalId
NoRetailTerminalTable.terminalIdRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more
transactionIdNumber of the retail transaction the payment belongs to.String (44)
RetailTransactionId
NoRetailTransactionTable.transactionIdRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more
lineNumLine number within the transaction.Real
LineNum
NoRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more
amountCurPayment amount in the transaction currency.Real
AmountCur
NoRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more
amountMSTPayment amount in the accounting currency.Real
AmountMST
NoRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more
amountTenderedAmount handed over by the customer for this payment.Real
RetailAmountTendered
NoRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more
authenticationCodeCode returned to authenticate the payment.String (20)
RetailAuthenticationCode
NoRetailTransactionPaymentTransBIEntity
AuthorizedAmountAuthorised amount in the transaction currency.Real
AmountCur
NoRetailTransactionPaymentTransBIEntity
businessDateBusiness date of the transaction.Date
RetailBusinessDate
NoRetailTransactionAuditablePaymentLineEntityRetailTransactionPaymentTransBIEntity
cardOrAccountCard number or account used for the payment.String (30)
RetailCardOrAccount
NoRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more
CardPaymentAccountIdIdentifier of the card payment account.String (80)
RetailCardPaymentAccountId
NoRetailTransactionAuditablePaymentLineEntityRetailTransactionPaymentTransBIEntity
cardTypeIdType of card used. Points to the card type record.String
RetailCardTypeId
NoRetailTenderTypeCardTable.cardTypeIdRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more
CashDocId_RUCash document number, used for Russia. Relates to the cash transaction.String (20)
RCashDocId
NoRetailTransactionPaymentTransBIEntity
changeLineYes/No flag showing whether the line is a change line.Enum
RetailChangeLine
NoYes (enum)
NoRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more
counterCounter value for the line.low confidenceInteger
RetailCounter
NoRetailTransactionPaymentTransBIEntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoRetailTransactionPaymentTransBIEntity
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoRetailTransactionPaymentTransBIEntity
CreditCardProcessorStatusResult from the card processor, such as approved, declined, error, settled, pending or timed out.Enum
CreditCardProcessorStatus (enum)
NoRetailTransactionPaymentTransBIEntity
creditVoucherIdCredit memo used for the payment. Points to the credit memo record.String (30)
RetailCreditVoucherId
NoRetailCreditVoucherTable.entryIdRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity
currencyCurrency code of the payment. Points to the currency record.String (3)
CurrencyCode
NoCurrency.CurrencyCodeRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoRetailTransactionPaymentTransBIEntity
DefaultDimensionSet of financial dimension values for the line.Int64
LedgerDefaultDimensionValueSet
NoDimensionAttributeValueSet.RecIdRetailTransactionAuditablePaymentLineEntityRetailTransactionPaymentTransBIEntity
exchRateExchange rate applied to the payment.Real
ExchRate
NoRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more
exchRateMSTExchange rate to the accounting currency.Real
ExchRate
NoRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity
giftCardIdGift card used for the payment. Points to the gift card record.String (30)
RetailGiftCardId
NoRetailGiftCardTable.entryIdRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity
IsCaptureFailedYes/No flag showing whether capturing the payment failed.Enum
NoYes (enum)
NoRetailTransactionPaymentTransBIEntity
IsCustomerAccountFloorLimitUsedYes/No flag showing whether the customer account floor limit was used while the real-time service was down.Enum
IsCustomerAccountFloorLimitUsed
NoYes (enum)
NoRetailTransactionPaymentTransBIEntity
IsLinkedRefundYes/No flag showing whether the line is a refund linked to an earlier payment.Enum
NoYes (enum)
NoRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity
IsPaymentCapturedYes/No flag showing whether the payment has been captured.Enum
RetailPaymentStatus
NoYes (enum)
NoRetailTransactionPaymentLineV2EntityRetailTransactionPaymentTransBIEntity
IsPaymentDataArchivedYes/No flag. The name suggests the payment data has been archived. No label is given.low confidenceEnum
NoYes (enum)
NoRetailTransactionPaymentTransBIEntity
IsPaymentDataCompressedYes/No flag. The name suggests the payment data has been compressed. No label is given.low confidenceEnum
NoYes (enum)
NoRetailTransactionPaymentTransBIEntity
isPrepaymentYes/No flag showing whether the payment is a prepayment.Enum
NoYesId
NoYes (enum)
NoRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity
LinkedPaymentCurrencyCurrency of the earlier payment that this refund is linked to.String (3)
CurrencyCode
NoRetailTransactionPaymentTrans.currencyRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity
LinkedPaymentLineNumberLine number of the earlier payment that this refund is linked to.Real
LineNum
NoRetailTransactionPaymentTrans.lineNumRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity
LinkedPaymentRefRecIdReference to the linked payment by system record ID.Int64
RefRecId
NoRetailTransactionPaymentTransBIEntity
LinkedPaymentStoreStore of the earlier payment that this refund is linked to.String
RetailStoreId
NoRetailTransactionPaymentTrans.storeRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity
LinkedPaymentTerminalIdRegister of the earlier payment that this refund is linked to.String
RetailTerminalId
NoRetailTransactionPaymentTrans.terminalRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity
LinkedPaymentTransactionIdTransaction number of the earlier payment that this refund is linked to.String (44)
RetailTransactionId
NoRetailTransactionPaymentTrans.transactionIdRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity
loyaltyCardIdLoyalty card number linked to the payment. Points to the loyalty card record.String (30)
RetailLoyaltyCardNumber
NoRetailLoyaltyCard.CardNumberRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity
managerKeyLiveYes/No flag for the manager key setting on the line.low confidenceEnum
RetailManagerKeyLive
NoYes (enum)
NoRetailTransactionPaymentTransBIEntity
messageNumMessage number linked to the line.low confidenceInteger
RetailMessageNum
NoRetailTransactionPaymentTransBIEntity
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoRetailTransactionPaymentTransBIEntity
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoRetailTransactionPaymentTransBIEntity
OriginNumber of the location the record came from.String (50)
RetailConnDistributionLocationId
NoRetailTransactionPaymentTransBIEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
paymentAuthorizationLong text token that authorises the payment.String (-1)
RetailPaymentAuthorizationToken
NoRetailTransactionPaymentTransBIEntity
PaymentCaptureTokenLong text token for capturing the linked payment.String (-1)
RetailPaymentCaptureToken
NoRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity
paymentCardTokenLong text token for the card payment authorisation.String (-1)
RetailPaymentAuthorizationToken
NoRetailTransactionPaymentTransBIEntity
PaymentRefRecIdReference to a related record by system record ID. The target table is not stated.low confidenceInt64
RefRecId
NoRetailTransactionPaymentTransBIEntity
qtyQuantity on the payment line.Real
Qty
NoRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity
receiptIdReceipt number printed for the transaction.String (18)
RetailReceiptId
NoRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoRetailTransactionPaymentTransBIEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RefundableAmountAmount that can still be refunded on the linked payment, in the transaction currency.Real
AmountCur
NoRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionPaymentTransBIEntity
replicatedYes/No flag showing whether the record has been replicated.Enum
RetailReplicated
NoYes (enum)
NoRetailTransactionPaymentTransBIEntity
replicationCounterFromOriginCounter used to track replication of the record from its origin location.Integer
RetailReplicationCounter
NoRetailTransactionPaymentTransBIEntity
shiftShift in which the payment was taken.String
RetailShiftId
NoRetailTransactionPaymentTransBIEntity
shiftDateDate of the shift. Relates to the work shift record.Date
RetailShiftDate
NoRetailTransactionPaymentTransBIEntity
sigCapDataSignature data captured for the payment.String (-1)
RetailSigCapData
NoRetailTransactionPaymentTransBIEntity
staffID of the operator who handled the payment.String (25)
RetailStaffId
NoRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more
statementCodeCode of the statement line that includes the payment.String (25)
RetailStatementCode
NoRetailTransactionAuditablePaymentLineEntityRetailTransactionPaymentTransBIEntity
statementIdStatement the payment belongs to.String (20)
RetailStatementId
NoRetailStatementTable.statementIdRetailTransactionAuditablePaymentLineEntityRetailTransactionPaymentTransBIEntity
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
tenderTypePayment method used, such as cash or card.String
RetailTenderTypeId
NoRetailTenderTypeTable.tenderTypeIdRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more
transactionStatusStatus of the entry, such as voided, posted, concluded or on hold.Enum
RetailTransEntryStatus
RetailEntryStatus (enum)
NoRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more
transDateDate of the payment.Date
TransDate
NoRetailTransactionAuditablePaymentLineEntityRetailTransactionPaymentTransBIEntity
transTimeTime of the payment.Time
RetailTransTime
NoRetailTransactionAuditablePaymentLineEntityRetailTransactionPaymentTransBIEntity
VoidStatusVoid state of the payment: none, payment voided, force voided or force void reconciled.Enum
RetailTenderVoidStatus (enum)
NoRetailTransactionPaymentLineV2EntityRetailTransactionPaymentLineEntityRetailTransactionAuditablePaymentLineEntityand 1 more

Indexes (15)

Relations (17)

Each relation joins RetailTransactionPaymentTrans to another table on the fields shown.

  • Currency → Currency

    Join on currency = Currency.CurrencyCode

    Many RetailTransactionPaymentTrans records → exactly one Currency record

  • DimensionAttributeValueSet → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many RetailTransactionPaymentTrans records → zero or one DimensionAttributeValueSet record

  • RCashTrans → RCashTrans

    Join on CashDocId_RU = RCashTrans.DocId

    Zero or one RetailTransactionPaymentTrans record → zero or one RCashTrans record

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailTransactionPaymentTrans records → zero or one RetailChannelTable record

  • RetailCreditVoucherTable → RetailCreditVoucherTable

    Join on creditVoucherId = RetailCreditVoucherTable.entryId

    Many RetailTransactionPaymentTrans records → zero or one RetailCreditVoucherTable record

  • RetailGiftCardTable → RetailGiftCardTable

    Join on giftCardId = RetailGiftCardTable.entryId

    Many RetailTransactionPaymentTrans records → zero or one RetailGiftCardTable record

  • RetailLoyaltyCard → RetailLoyaltyCard

    Join on loyaltyCardId = RetailLoyaltyCard.CardNumber

    Many RetailTransactionPaymentTrans records → exactly one RetailLoyaltyCard record

  • RetailStatementLine → RetailStatementLine

    Join on statementCode = RetailStatementLine.statementCode, currency = RetailStatementLine.currency, cardTypeId = RetailStatementLine.cardTypeId, tenderType = RetailStatementLine.tenderTypeId, statementId = RetailStatementLine.statementId

    Many RetailTransactionPaymentTrans records → zero or one RetailStatementLine record

  • RetailStatementTable → RetailStatementTable

    Join on statementId = RetailStatementTable.statementId

    Many RetailTransactionPaymentTrans records → zero or one RetailStatementTable record

  • RetailStatementTrans → RetailStatementTrans

    Join on statementCode = RetailStatementTrans.statementCode, currency = RetailStatementTrans.currency, cardTypeId = RetailStatementTrans.cardTypeId, tenderType = RetailStatementTrans.tenderTypeId, statementId = RetailStatementTrans.statementId

    Many RetailTransactionPaymentTrans records → zero or one RetailStatementTrans record

  • RetailStoreTable → RetailStoreTable

    Join on store = RetailStoreTable.StoreNumber

    Many RetailTransactionPaymentTrans records → exactly one RetailStoreTable record

  • RetailStoreWorkShiftTable → RetailStoreWorkShiftTable

    Join on shiftDate = RetailStoreWorkShiftTable.shiftDate

    Many RetailTransactionPaymentTrans records → zero or one RetailStoreWorkShiftTable record

  • RetailTenderTypeCardTable → RetailTenderTypeCardTable

    Join on cardTypeId = RetailTenderTypeCardTable.cardTypeId

    Many RetailTransactionPaymentTrans records → exactly one RetailTenderTypeCardTable record

  • RetailTenderTypeTable → RetailTenderTypeTable

    Join on tenderType = RetailTenderTypeTable.tenderTypeId

    Many RetailTransactionPaymentTrans records → exactly one RetailTenderTypeTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on terminal = RetailTerminalTable.terminalId

    Many RetailTransactionPaymentTrans records → exactly one RetailTerminalTable record

  • RetailTransactionTable → RetailTransactionTable

    Join on Channel = RetailTransactionTable.Channel, store = RetailTransactionTable.store, terminal = RetailTransactionTable.terminal, transactionId = RetailTransactionTable.transactionId

    Many RetailTransactionPaymentTrans records → zero or one RetailTransactionTable record

  • LinkedPayment → RetailTransactionPaymentTrans

    Join on Channel = RetailTransactionPaymentTrans.Channel, LinkedPaymentStore = RetailTransactionPaymentTrans.store, LinkedPaymentTerminalId = RetailTransactionPaymentTrans.terminal, LinkedPaymentTransactionId = RetailTransactionPaymentTrans.transactionId, LinkedPaymentLineNumber = RetailTransactionPaymentTrans.lineNum, LinkedPaymentCurrency = RetailTransactionPaymentTrans.currency

    Many 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.

Need help with RetailTransactionPaymentTrans in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk