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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
UsageIdUnique ID (GUID) of the coupon usage. | GuidRetailCouponUsageId | No | RetailCouponUsageEntity | |
RetailChannelIdID of the retail channel where the coupon was used. | String (15)RetailChannelId | No | RetailCouponUsageEntity | |
CouponCodeIdIdentifier of the coupon code that was used. | String (60)RetailCouponCodeId | Yes | RetailCouponCodeTable.CouponCodeId | RetailCouponUsageEntity |
CustomerAccountCustomer account number linked to the usage. | String (20)CustAccount | No | RetailCouponUsageEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ReceiptIdReceipt number linked to the usage. | String (18)RetailReceiptId | No | RetailCouponUsageEntity | |
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 | |
ReplicationCounterFromOriginCounter used to track replication of the record from its originating source. | IntegerRetailReplicationCounter | No | None | |
SalesIdSales order number linked to the usage. | String (20)SalesIdBase | Yes | RetailCouponUsageEntity | |
StatusStatus of the transaction: completed, cancelled, returned or not applied. | EnumRetailCouponUsageStatus (enum) | No | RetailCouponUsageEntity | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TransactionIdNumber of the retail transaction in which the coupon was used. | String (44)RetailTransactionId | No | RetailCouponUsageEntity |
Indexes (3)
RetailCouponUsageIdxPrimary indexReplacement keyUnique, alternate key.
RetailCouponCodeIdxCouponCodeId,Status,CustomerAccount,RetailChannelIdNot unique.
RetailCouponTransactionIdxNot unique.
Relations (1)
Each relation joins RetailCouponUsage to another table on the fields shown.
RetailCouponCodeTableRelationship→RetailCouponCodeTableJoin on
CouponCodeId = RetailCouponCodeTable.CouponCodeIdCardinality 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.
RetailCouponUsageEntity· 8 fields from this table
Need help with RetailCouponUsage in a report, an integration or a migration? Talk to Dr Dynamics.