COUPON_USAGE

0 rows


Description

Coupon usage information

Columns

Column Type Size Nulls Auto Default Children Parents Comments
ACTIVE_HUB_KEY int identity 4 null

The Hub record ID

COMPANY_ID Unknown 0 null
COMPANIES.COMPANY_ID Defined in XML R
COUPON_USAGE_ID int 4 null

Coupon usage ID

COUPON_ID int 4 null
COUPONS.COUPON_ID Defined in XML R

Coupon ID

CUSTOMER_ID Unknown 0 null
CUSTOMERS.CUSTOMER_ID Defined in XML R
TRANSACTION_ID int 4 null
TRANSACTIONS.TRANSACTION_ID Defined in XML R

ID of the transaction where the coupon was applied

RECEIPT_DETAIL_ID int 4 null
RECEIPT_DETAILS.RECEIPT_DETAIL_ID Defined in XML R

ID of the receipt detail where the coupon was applied

IS_REFUNDED varchar 5 null

Whether the transaction was subsequently refunded (Yes/No)

ROW_VERSION binary 8 null

System timestamp (for internal use)

LAST_SYNC_TIME datetime 16,3 (getdate())

Date and time Hub record was last modified

ACTIVE_HUB_PROCESS_ID bigint 8 null

The Hub sync process ID

ORG_ID int 4 null

Your organization’s unique identifier in the Active Net system

Indexes

Constraint Name Type Sort Column(s)
COUPON_USAGE_ACTIVE_HUB_KEY_PK Primary key Asc ACTIVE_HUB_KEY
COUPON_USAGE_COUPON_ID_IX Performance Asc COUPON_ID
COUPON_USAGE_COUPON_USAGE_ID_ORG_ID_UQ Must be unique Asc/Asc COUPON_USAGE_ID + ORG_ID
COUPON_USAGE_RECEIPT_DETAIL_ID_IX Performance Asc RECEIPT_DETAIL_ID
COUPON_USAGE_ROW_VERSION_IX Performance Asc ROW_VERSION
COUPON_USAGE_TRANSACTION_ID_IX Performance Asc TRANSACTION_ID

Relationships