Table

RetailGiftCardTable

Gift card table

Holds one record per gift card, keyed by gift card number. It stores the currency, face value, status, validity dates, balance and reload limits. It also shows whether the card is locked and by which channel, store, register and transaction.

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

Fields (23)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
entryIdNumber of the gift card. It identifies the record.String (30)
RetailGiftCardId
YesRetailGiftCardEntityMCRContinuityCustomerPaymentEntityMCRCustomerCreditPaymentEntityand 3 more
ActiveFromDate and time from which the gift card is active.UtcDateTime
RetailGiftCardActiveFrom
NoRetailGiftCardEntity
currencyCodeCurrency of the gift card.String (3)
CurrencyCode
NoCurrency.CurrencyCodeRetailGiftCardEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
ExpiryDateDate the gift card expires.Date
RetailGiftCardExpireDate
NoRetailGiftCardEntity
FaceValueFace value of the gift card.Real
RetailGiftCardFaceValue
NoRetailGiftCardEntity
MaxBalanceMSTHighest balance the card may hold (in accounting currency).Real
RetailGiftCardMaxBalanceMST
NoRetailGiftCardEntity
MCRGiftCardTypeKind of gift card: email or physical card.Enum
MCRGiftCardType (enum)
NoRetailGiftCardEntity
MinReloadMSTSmallest amount allowed when reloading the card (in accounting currency).Real
RetailGiftCardMinReloadMST
NoRetailGiftCardEntity
NonReloadableYes or no flag that blocks the card from being reloaded.Enum
RetailGiftCardNonReloadable
NoYes (enum)
NoRetailGiftCardEntity
OneTimeRedemptionYes or no flag for a card that can be redeemed only once.Enum
RetailGiftCardOneTimeRedemption
NoYes (enum)
NoRetailGiftCardEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
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
replicationCounterCounter value used to track replication of the record.Integer
RetailReplicationCounter
NoNone
reservedShows whether the gift card is locked (yes or no).Enum
NoYes (enum)
NoRetailGiftCardEntity
reservedByChannelRetail channel that locked the gift card.Int64
RetailChannelRecId
NoRetailChannelTable.RecIdNone
ReservedByStoreIdStore that locked the gift card.String
RetailStoreId
NoNone
reservedByTerminalIdRegister that locked the gift card.String
RetailTerminalId
NoRetailTerminalTable.terminalIdRetailGiftCardEntity
ReservedByTransactionIdRetail transaction that locked the gift card.String (44)
RetailTransactionId
NoRetailGiftCardEntity
StatusStatus of the gift card: active, redeemed or expired, or closed.Enum
RetailGiftCardStatus (enum)
NoRetailGiftCardEntity
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

Indexes (2)

Relations (3)

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

  • Currency → Currency

    Join on currencyCode = Currency.CurrencyCode

    Many RetailGiftCardTable records → exactly one Currency record

  • RetailChannelTable → RetailChannelTable

    Join on reservedByChannel = RetailChannelTable.RecId

    Many RetailGiftCardTable records → zero or one RetailChannelTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on reservedByTerminalId = RetailTerminalTable.terminalId

    Many RetailGiftCardTable records → exactly one RetailTerminalTable record

Get this data out

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

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

Email sales@drdynamics.co.uk