Table

RetailGiftCardTransactions

Gift card transactions

Records gift card operations such as issue, redeem, add to, refund, adjust, void and close. Each record links to a gift card, channel, register and retail transaction. It can also link to a sales order, an order line and an invoice account.

Table name
RetailGiftCardTransactions
Module
Commerce payments
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (21)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
amountAmount of the gift card operation (in accounting currency).Real
AmountMST
YesRetailGiftCardTransactionsV2EntityRetailGiftCardTransactionsEntity
cardNumberNumber of the gift card.String (30)
RetailGiftCardId
YesRetailGiftCardTable.entryIdRetailGiftCardTransactionsV2EntityRetailGiftCardTransactionsEntity
ChannelRetail channel where the operation took place.Int64
RetailChannelRecId
NoRetailChannelTable.RecIdRetailGiftCardTransactionsV2EntityRetailGiftCardTransactionsEntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
MCRInventTransIdLot ID that links the record to a sales order line.String (20)
TradeInventTransId
NoSalesLine.InventTransIdNone
MCRInvoiceAccountCustomer account used for invoicing.String (20)
CustInvoiceAccount
NoCustTable.AccountNumRetailGiftCardTransactionsV2EntityRetailGiftCardTransactionsEntity
MCRSalesIdSales order that the operation relates to.String (20)
SalesIdBase
NoSalesTable.SalesIdNone
operationKind of gift card operation, for example issue, redeem, refund, void or close.Enum
RetailGiftCardOperation (enum)
YesRetailGiftCardTransactionsV2EntityRetailGiftCardTransactionsEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
receiptIdReceipt number linked to the operation.String (18)
RetailReceiptId
NoRetailGiftCardTransactionsV2EntityRetailGiftCardTransactionsEntity
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
staffIdID of the operator who did the operation.String (25)
RetailStaffId
NoRetailGiftCardTransactionsV2EntityRetailGiftCardTransactionsEntity
StoreIdStore where the operation took place.String
RetailStoreId
NoNone
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
terminalIdRegister where the operation took place.String
RetailTerminalId
NoRetailTerminalTable.terminalIdRetailGiftCardTransactionsV2EntityRetailGiftCardTransactionsEntity
transactionIdRetail transaction number of the operation.String (44)
RetailTransactionId
NoRetailGiftCardTransactionsV2EntityRetailGiftCardTransactionsEntity
transDateDate of the operation.Date
RetailtransDate
NoRetailGiftCardTransactionsV2EntityRetailGiftCardTransactionsEntity
transTimeTime of day of the operation.Time
RetailTransTime
NoNone

Indexes (3)

Relations (7)

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

  • cardNumber → RetailGiftCardTable

    Join on cardNumber = RetailGiftCardTable.entryId

    Many RetailGiftCardTransactions records → exactly one RetailGiftCardTable record

  • MCRCustTable → CustTable

    Join on MCRInvoiceAccount = CustTable.AccountNum

    Many RetailGiftCardTransactions records → exactly one CustTable record

  • MCRSalesLine → SalesLine

    Join on MCRInventTransId = SalesLine.InventTransId

    Many RetailGiftCardTransactions records → zero or one SalesLine record

  • MCRSalesTable → SalesTable

    Join on MCRSalesId = SalesTable.SalesId

    Many RetailGiftCardTransactions records → zero or one SalesTable record

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailGiftCardTransactions records → exactly one RetailChannelTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on terminalId = RetailTerminalTable.terminalId

    Many RetailGiftCardTransactions records → exactly one RetailTerminalTable record

  • RetailTransactionTable → RetailTransactionTable

    Join on transactionId = RetailTransactionTable.transactionId

    Many RetailGiftCardTransactions records → zero or one RetailTransactionTable record

Get this data out

Tables are not exposed directly. These public entities read from RetailGiftCardTransactions; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk