Table

RetailTransactionPaymentTransHistory

Archived payment transactions

Holds archived payment lines from retail transactions. Each row records a payment taken at a store register, such as the payment method, amounts, currency, receipt and shift details. It also holds card, gift card and loyalty card references, and details of linked refund payments. No key is defined in the metadata.

Table name
RetailTransactionPaymentTransHistory
Module
Commerce transactions and orders
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (72)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
amountCurPayment amount in the transaction currency.Real
AmountCur
NoNone
amountMSTPayment amount in the accounting currency.Real
AmountMST
NoNone
amountTenderedAmount handed over by the customer for this payment.Real
RetailAmountTendered
NoNone
authenticationCodeCode used to authenticate the payment.String (20)
RetailAuthenticationCode
NoNone
AuthorizedAmountAuthorized amount in the transaction currency.Real
AmountCur
NoNone
businessDateBusiness date of the transaction.Date
RetailBusinessDate
NoNone
cardOrAccountCard number or account that the payment was made with.String (30)
RetailCardOrAccount
NoNone
CardPaymentAccountIdIdentifier of the card payment account.String (80)
RetailCardPaymentAccountId
NoNone
cardTypeIdIdentifier of the card type used.String
RetailCardTypeId
NoNone
CashDocId_RUOrder number of the cash document, used for Russia.String (20)
RCashDocId
NoNone
changeLineShows whether this line is a change line (Yes or No).Enum
RetailChangeLine
NoYes (enum)
NoNone
ChannelRecord ID reference to the channel; the metadata names no related table.low confidenceInt64
RefRecId
NoNone
counterCounter value of the payment line.low confidenceInteger
RetailCounter
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CreditCardProcessorStatusStatus returned for the card payment, such as approved, declined, settled or timed out.Enum
CreditCardProcessorStatus (enum)
NoNone
creditVoucherIdNumber of the credit memo used in the payment.String (30)
RetailCreditVoucherId
NoNone
currencyCurrency code of the payment.String (3)
CurrencyCode
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionRecord ID of the default financial dimension values set for the line.Int64
LedgerDefaultDimensionValueSet
NoNone
exchRateExchange rate applied to the payment.Real
ExchRate
NoNone
exchRateMSTExchange rate linked to the accounting currency; the metadata does not say more.low confidenceReal
ExchRate
NoNone
giftCardIdNumber of the gift card used for the payment.String (30)
RetailGiftCardId
NoNone
IsCaptureFailedShows whether capturing the payment failed (Yes or No).Enum
NoYes (enum)
NoNone
IsCustomerAccountFloorLimitUsedShows whether the customer account floor limit was used while the real-time service was unavailable (Yes or No).Enum
IsCustomerAccountFloorLimitUsed
NoYes (enum)
NoNone
IsLinkedRefundShows whether the payment is a linked refund (Yes or No).Enum
NoYes (enum)
NoNone
IsPaymentCapturedShows whether the payment has been captured (Yes or No).Enum
RetailPaymentStatus
NoYes (enum)
NoNone
IsPaymentDataArchivedYes or No flag about archiving of payment data; no label is given.low confidenceEnum
NoYes (enum)
NoNone
IsPaymentDataCompressedYes or No flag about compression of payment data; no label is given.low confidenceEnum
NoYes (enum)
NoNone
isPrepaymentShows whether the payment is a prepayment (Yes or No).Enum
NoYesId
NoYes (enum)
NoNone
lineNumLine number of the payment within its transaction.Real
LineNum
NoNone
LinkedPaymentCurrencyCurrency code of the payment that the refund is linked to.String (3)
CurrencyCode
NoNone
LinkedPaymentLineNumberLine number of the payment that the refund is linked to.Real
LineNum
NoNone
LinkedPaymentRefRecIdRecord ID reference to the linked payment; the metadata names no related table.low confidenceInt64
RefRecId
NoNone
LinkedPaymentStoreStore number of the payment that the refund is linked to.String
RetailStoreId
NoNone
LinkedPaymentTerminalIdRegister number of the payment that the refund is linked to.String
RetailTerminalId
NoNone
LinkedPaymentTransactionIdTransaction number of the payment that the refund is linked to.String (44)
RetailTransactionId
NoNone
loyaltyCardIdNumber of the loyalty card linked to the payment.String (30)
RetailLoyaltyCardNumber
NoNone
managerKeyLiveShows whether the manager's key was live (Yes or No).Enum
RetailManagerKeyLive
NoYes (enum)
NoNone
messageNumMessage number stored with the payment line.low confidenceInteger
RetailMessageNum
NoNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
OriginNumber of the location the record came from.String (50)
RetailConnDistributionLocationId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
paymentAuthorizationLong text token for the payment authorization.String (-1)
RetailPaymentAuthorizationToken
NoNone
PaymentCaptureTokenLong text capture token of the linked payment.String (-1)
RetailPaymentCaptureToken
NoNone
paymentCardTokenLong text token for the payment card authorization.String (-1)
RetailPaymentAuthorizationToken
NoNone
PaymentRefRecIdRecord ID reference to a payment record; the metadata names no related table.low confidenceInt64
RefRecId
NoNone
qtyQuantity on the payment line.low confidenceReal
Qty
NoNone
receiptIdNumber of the receipt for the transaction.String (18)
RetailReceiptId
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RefundableAmountAmount in the transaction currency tied to the linked payment; the label is unclear.low confidenceReal
AmountCur
NoNone
replicatedShows whether the row has been replicated (Yes or No).Enum
RetailReplicated
NoYes (enum)
NoNone
replicationCounterFromOriginReplication counter value taken from the originating location.Integer
RetailReplicationCounter
NoNone
shiftIdentifier of the shift in which the payment was taken.String
RetailShiftId
NoNone
shiftDateDate of the shift.Date
RetailShiftDate
NoNone
sigCapDataCaptured signature data, stored as long text.String (-1)
RetailSigCapData
NoNone
staffID of the operator who handled the transaction.String (25)
RetailStaffId
NoNone
statementCodeCode of the statement the payment belongs to.String (25)
RetailStatementCode
NoNone
statementIdNumber of the statement the payment belongs to.String (20)
RetailStatementId
NoNone
storeNumber of the store where the payment was made.String
RetailStoreId
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
SysRowVersionNumberRow version number kept by the system for the record.Int64
SysRowVersionNumber
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
tenderTypePayment method used, by its identifier.String
RetailTenderTypeId
NoNone
terminalNumber of the register where the payment was made.String
RetailTerminalId
NoNone
transactionIdNumber that identifies the retail transaction.String (44)
RetailTransactionId
NoNone
transactionStatusStatus of the entry, such as voided, posted, concluded, cancelled or on hold.Enum
RetailTransEntryStatus
RetailEntryStatus (enum)
NoNone
transDateDate of the transaction.Date
TransDate
NoNone
transTimeTime of the transaction.Time
RetailTransTime
NoNone
VoidStatusVoid state of the payment: none, payment voided, force voided or force void reconciled.Enum
RetailTenderVoidStatus (enum)
NoNone

Indexes (2)

Get this data out

No public entity reads from RetailTransactionPaymentTransHistory. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk