Table

RetailCouponUsage

Coupon Usage

Records each use of a coupon code, with the sales order, transaction, receipt, customer and channel involved. It is keyed by a usage ID and the retail channel ID. The status shows whether the transaction was completed, cancelled, returned or not applied.

Table name
RetailCouponUsage
Module
Commerce customers
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
RetailCouponUsageIdx
Replacement key
RetailCouponUsageIdx
Key fields
UsageId, RetailChannelId
Model
Foundation

Fields (15)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
UsageIdUnique ID (GUID) of the coupon usage.Guid
RetailCouponUsageId
NoRetailCouponUsageEntity
RetailChannelIdID of the retail channel where the coupon was used.String (15)
RetailChannelId
NoRetailCouponUsageEntity
CouponCodeIdIdentifier of the coupon code that was used.String (60)
RetailCouponCodeId
YesRetailCouponCodeTable.CouponCodeIdRetailCouponUsageEntity
CustomerAccountCustomer account number linked to the usage.String (20)
CustAccount
NoRetailCouponUsageEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
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 usage.String (18)
RetailReceiptId
NoRetailCouponUsageEntity
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
ReplicationCounterFromOriginCounter used to track replication of the record from its originating source.Integer
RetailReplicationCounter
NoNone
SalesIdSales order number linked to the usage.String (20)
SalesIdBase
YesRetailCouponUsageEntity
StatusStatus of the transaction: completed, cancelled, returned or not applied.Enum
RetailCouponUsageStatus (enum)
NoRetailCouponUsageEntity
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
TransactionIdNumber of the retail transaction in which the coupon was used.String (44)
RetailTransactionId
NoRetailCouponUsageEntity

Indexes (3)

Relations (1)

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

  • RetailCouponCodeTableRelationship → RetailCouponCodeTable

    Join on CouponCodeId = RetailCouponCodeTable.CouponCodeId

    Cardinality not set in the metadata.

Get this data out

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

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

Email sales@drdynamics.co.uk