Skip to main content

Table

purchases

Each row represents a commerce purchase with amounts, tax, discounts, success/failure, user, and product context.

Redshift
All tables

purchases

Each row represents a commerce purchase with amounts, tax, discounts, success/failure, user, and product context.

Full schema

View all columns and table relationships (SchemaSpy)

Status group

No, this table does not include a statusgroup column.

Column details

ColumnType
analyticsversionint4
companyidvarchar(36)
idvarchar(36)
amountchargednumeric(14,2)
amountdiscountednumeric(14,2)
amountdisputednumeric(14,2)
amounttaxednumeric(14,2)
amountnetnumeric(14,2)
attemptint4
couponvarchar(255)
createdattimestamp
failurecodevarchar(255)
failuremessagevarchar(255)
giftrecipientemailvarchar(255)
groupidvarchar(32)
infovarchar(255)
orderidvarchar(36)
processedbool
processeddisputenumeric(14,2)
processeddisputedpurchasenumeric(12,4)
processedexpansionnumeric(14,2)
processedexpansionpurchasenumeric(12,4)
processednewnumeric(14,2)
processednewpurchasenumeric(12,4)
processedrefundnumeric(14,2)
processedrefundedpurchasenumeric(12,4)
purchaserevenuetypevarchar(16)
purchaseidvarchar(36)
courseidvarchar(36)
purchasetypevarchar(32)
quantityint4
referrervarchar(64)
referrertypevarchar(64)
sourcevarchar(64)
successbool
typevarchar(16)
useridvarchar(36)
variationvarchar(64)
updatedattimestamp
isbulkpurchasebool

Column names and types come from the Redshift analytics schema. SchemaSpy is authoritative for nullability, defaults, keys, and relationships.

Sample query

select
  t.analyticsversion,
  t.amountcharged,
  t.amountdiscounted,
  t.amountdisputed,
  t.amounttaxed
from purchases as t
limit 100