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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
amountCurPayment amount in the transaction currency. | RealAmountCur | No | None | |
amountMSTPayment amount in the accounting currency. | RealAmountMST | No | None | |
amountTenderedAmount handed over by the customer for this payment. | RealRetailAmountTendered | No | None | |
authenticationCodeCode used to authenticate the payment. | String (20)RetailAuthenticationCode | No | None | |
AuthorizedAmountAuthorized amount in the transaction currency. | RealAmountCur | No | None | |
businessDateBusiness date of the transaction. | DateRetailBusinessDate | No | None | |
cardOrAccountCard number or account that the payment was made with. | String (30)RetailCardOrAccount | No | None | |
CardPaymentAccountIdIdentifier of the card payment account. | String (80)RetailCardPaymentAccountId | No | None | |
cardTypeIdIdentifier of the card type used. | StringRetailCardTypeId | No | None | |
CashDocId_RUOrder number of the cash document, used for Russia. | String (20)RCashDocId | No | None | |
changeLineShows whether this line is a change line (Yes or No). | EnumRetailChangeLineNoYes (enum) | No | None | |
ChannelRecord ID reference to the channel; the metadata names no related table.low confidence | Int64RefRecId | No | None | |
counterCounter value of the payment line.low confidence | IntegerRetailCounter | No | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CreditCardProcessorStatusStatus returned for the card payment, such as approved, declined, settled or timed out. | EnumCreditCardProcessorStatus (enum) | No | None | |
creditVoucherIdNumber of the credit memo used in the payment. | String (30)RetailCreditVoucherId | No | None | |
currencyCurrency code of the payment. | String (3)CurrencyCode | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultDimensionRecord ID of the default financial dimension values set for the line. | Int64LedgerDefaultDimensionValueSet | No | None | |
exchRateExchange rate applied to the payment. | RealExchRate | No | None | |
exchRateMSTExchange rate linked to the accounting currency; the metadata does not say more.low confidence | RealExchRate | No | None | |
giftCardIdNumber of the gift card used for the payment. | String (30)RetailGiftCardId | No | None | |
IsCaptureFailedShows whether capturing the payment failed (Yes or No). | EnumNoYes (enum) | No | None | |
IsCustomerAccountFloorLimitUsedShows whether the customer account floor limit was used while the real-time service was unavailable (Yes or No). | EnumIsCustomerAccountFloorLimitUsedNoYes (enum) | No | None | |
IsLinkedRefundShows whether the payment is a linked refund (Yes or No). | EnumNoYes (enum) | No | None | |
IsPaymentCapturedShows whether the payment has been captured (Yes or No). | EnumRetailPaymentStatusNoYes (enum) | No | None | |
IsPaymentDataArchivedYes or No flag about archiving of payment data; no label is given.low confidence | EnumNoYes (enum) | No | None | |
IsPaymentDataCompressedYes or No flag about compression of payment data; no label is given.low confidence | EnumNoYes (enum) | No | None | |
isPrepaymentShows whether the payment is a prepayment (Yes or No). | EnumNoYesIdNoYes (enum) | No | None | |
lineNumLine number of the payment within its transaction. | RealLineNum | No | None | |
LinkedPaymentCurrencyCurrency code of the payment that the refund is linked to. | String (3)CurrencyCode | No | None | |
LinkedPaymentLineNumberLine number of the payment that the refund is linked to. | RealLineNum | No | None | |
LinkedPaymentRefRecIdRecord ID reference to the linked payment; the metadata names no related table.low confidence | Int64RefRecId | No | None | |
LinkedPaymentStoreStore number of the payment that the refund is linked to. | StringRetailStoreId | No | None | |
LinkedPaymentTerminalIdRegister number of the payment that the refund is linked to. | StringRetailTerminalId | No | None | |
LinkedPaymentTransactionIdTransaction number of the payment that the refund is linked to. | String (44)RetailTransactionId | No | None | |
loyaltyCardIdNumber of the loyalty card linked to the payment. | String (30)RetailLoyaltyCardNumber | No | None | |
managerKeyLiveShows whether the manager's key was live (Yes or No). | EnumRetailManagerKeyLiveNoYes (enum) | No | None | |
messageNumMessage number stored with the payment line.low confidence | IntegerRetailMessageNum | No | None | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
OriginNumber of the location the record came from. | String (50)RetailConnDistributionLocationId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
paymentAuthorizationLong text token for the payment authorization. | String (-1)RetailPaymentAuthorizationToken | No | None | |
PaymentCaptureTokenLong text capture token of the linked payment. | String (-1)RetailPaymentCaptureToken | No | None | |
paymentCardTokenLong text token for the payment card authorization. | String (-1)RetailPaymentAuthorizationToken | No | None | |
PaymentRefRecIdRecord ID reference to a payment record; the metadata names no related table.low confidence | Int64RefRecId | No | None | |
qtyQuantity on the payment line.low confidence | RealQty | No | None | |
receiptIdNumber of the receipt for the transaction. | String (18)RetailReceiptId | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RefundableAmountAmount in the transaction currency tied to the linked payment; the label is unclear.low confidence | RealAmountCur | No | None | |
replicatedShows whether the row has been replicated (Yes or No). | EnumRetailReplicatedNoYes (enum) | No | None | |
replicationCounterFromOriginReplication counter value taken from the originating location. | IntegerRetailReplicationCounter | No | None | |
shiftIdentifier of the shift in which the payment was taken. | StringRetailShiftId | No | None | |
shiftDateDate of the shift. | DateRetailShiftDate | No | None | |
sigCapDataCaptured signature data, stored as long text. | String (-1)RetailSigCapData | No | None | |
staffID of the operator who handled the transaction. | String (25)RetailStaffId | No | None | |
statementCodeCode of the statement the payment belongs to. | String (25)RetailStatementCode | No | None | |
statementIdNumber of the statement the payment belongs to. | String (20)RetailStatementId | No | None | |
storeNumber of the store where the payment was made. | StringRetailStoreId | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
SysRowVersionNumberRow version number kept by the system for the record. | Int64SysRowVersionNumber | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
tenderTypePayment method used, by its identifier. | StringRetailTenderTypeId | No | None | |
terminalNumber of the register where the payment was made. | StringRetailTerminalId | No | None | |
transactionIdNumber that identifies the retail transaction. | String (44)RetailTransactionId | No | None | |
transactionStatusStatus of the entry, such as voided, posted, concluded, cancelled or on hold. | EnumRetailTransEntryStatusRetailEntryStatus (enum) | No | None | |
transDateDate of the transaction. | DateTransDate | No | None | |
transTimeTime of the transaction. | TimeRetailTransTime | No | None | |
VoidStatusVoid state of the payment: none, payment voided, force voided or force void reconciled. | EnumRetailTenderVoidStatus (enum) | No | None |
Indexes (2)
transactionLineIdxChannel,store,terminal,transactionId,lineNum,DataAreaId,PartitionUnique, alternate key.
transactionIdxChannel,store,terminal,transactionId,DataAreaId,PartitionNot unique.
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.