Ticketline Discounts

The Ticketline Discounts dataset provides a ticketline discount log for all stores within a given organization. It includes a wide range of information such as store details, ticket details, discount details, customer details, product details, inventory details, and sales details.

Primary Key: org_id, store_id, ticket_id, ticketline_id, discount_id, discount_title

ColumnDescription
store_idThe unique identifier for each store. Each store is tied to exactly one org_id
org_idThe unique identifier for each retail organization consisting of one or more stores operating with Treez
org_nameThe name of the organization
store_nameThe name of the store where the sale was made
selltreez_urlThe URL of the SellTreez Point of Sale where the sale was made
store_stateThe US state where the store is located, abbreviated (e.g., CA, CO)
store_timezoneThe timezone in which the store operates. This is returned in the Olson format (i.e., America/Los_Angeles)
datalake_store_idThe store identifier used in a legacy Treez data system
date_openThe timestamp indicating when a ticket was opened. This is used to track the start of a transaction. This timestamp is encoded in the store's local time zone
date_closeThe timestamp indicating when a transaction was closed. This is used to track the completion of a transaction. This timestamp is encoded in the store's local time zone
store_tz_offsetThis column represents the timezone offset of the store for the given ticket date. It is calculated as the difference in hours between UTC and the store's timezone at the time of ticket closure
ticket_numberThis is the alphanumeric identifier of a Ticket or Sale in Treez. It is a string value. (e.g., "NDLZEB")
ticket_idThis is the unique identifier of a Ticket or Sale in Treez, used primarily in the SellTreez Ticket API. It is a string value. (e.g., "c25809ca-e7c4-4adc-96b9-12af08482c64")
sale_typeDenotes whether the ticket was a sale or a return (e.g., Sale, Return)
order_channelThe channel through which the order was made (e.g., In Store, Pickup, Delivery, Express)
revenue_sourceThe source of an eCommerce order (e.g., Treez eCommerce, Dutchie, WEEDMAPS, iheartjane)
ticket_cashier_user_idThe store-level unique identifier of the cashier who was logged into the POS system when the ticket was processed
ticket_cashier_mso_idThe organization-level unique identifier of the user who was logged into the POS system when the ticket was processed
ticket_cashier_employee_numberThe employee number on the employee profile for the cashier who was logged into the POS system when the ticket was processed
ticket_cashier_nameThe name of the cashier who was signed into the POS system when the ticket was processed
approver_user_idIf a manager approval was needed on the discount, this is the store-level unique identifier of the user who approved the discount
approver_mso_idIf a manager approval was needed on the discount, this is the organization-level unique identifier of the user who approved the discount
approver_employee_numberIf a manager approval was needed on the discount, this is the employee number of the user who approved the discount
approver_usernameIf a manager approval was needed on the discount, this is the name of the user who approved the discount
ticketline_idThis column represents the unique identifier for the ticket line. Each ticket contains one or more ticket line items tied to a specific product, which may have one or more units sold or returned
discount_idThis column represents the unique identifier for the store-level discount associated with the ticket
discount_typeThe type of discount associated with the ticket line (e.g., Automatic Discount, POS Discount, Rewards, Tier Pricing Discount, Round Down)
discount_methodThe method of discount application (e.g., PERCENT, BOGO, DOLLAR)
discount_titleThe title of the discount applied to the ticket line
discount_noteThe note for the discount applied to the ticket line
discount_reasonThe reason for the discount applied to the ticket line
product_idThis column represents the unique identifier for the product sold on the ticket line
product_typeThis column represents the type of the product from the product profile. (e.g., FLOWER, CARTRIDGE, EDIBLE, PREROLL, EXTRACT, PILL, TINCTURE, TOPICAL, BEVERAGE, MERCH, CBD, PLANT, MISC, NON-INV)
product_subtypeThis column represents the Sub Type or Sub Category of the product. Each Sub Type is tied to a parent Product Type. (e.g., PRE-PACK, GUMMY, 510 THREAD, POD, SAUCE)
product_brandThe brand name from the product profile of the product sold on the ticket line
product_nameThe name from the product profile of the product sold on the ticket line
product_menu_titleThe menu title from the product profile of the product sold on the ticket line
product_sizeThe product size from the product profile of the product sold on the ticket line
product_unit_total_flower_weight_gramsThe total flower grams from the product profile of the product sold on the ticket line, typically used for purchase limit enforcement
product_amountThe amount field from the product profile of the product sold on the ticket line. This field is used in conjunction with the Unit of Measure field
product_unitofmeasureThe unit of measure field from the product profile of the product sold on the ticket line. This field is used in conjunction with the Amount field. (e.g., g, mg, ml, fl-oz, each)
product_size_formattedThis is a calculated field that combines Product Amount and Unit of Measure fields and formats them into rounded amounts and consistent unit of measures. (e.g., 1g, 100mg, 1ml, 1fl-oz, 1 each)
product_classificationThe classification field from the product profile of the product sold on the ticket line. (e.g., SATIVA, INDICA, HYBRID, S/I, I/S)
product_barcode_skusThis column represents the sku numbers associated with the product barcodes on the product profile. If a product has multiple barcode skus, they will be separated by commas
product_external_idsThe External ID(s) associated with the product on the product profile. This is a JSON field
product_unit_priceThe unit price associated with the product on the product profile at the time of the ticket
product_sale_priceThe unit sale price of the product. This is the price at which the product was sold to the customer, inclusive of any discounts
units_soldThe quantity of units of the product that were sold or returned on the associated ticket line
gross_salesThe total sales generated from the sale of the product. This is calculated by multiplying the product unit price by the number of units sold
discountsThis column represents the total amount of discounts applied to the associated ticket line. There may be one or more discounts applied to a ticket line
net_salesThe net sales amount of the associated ticket line. It is calculated as the gross sales amount minus the sum of discounts and the sum of returns
net_sales_effectiveThe effective net sales value based on the gross sales amount of the ticket line minus the discounts applied to the ticket line. The actual net sales value is inclusive of other ticketline discounts that may be stacked. Vendor credits should be based on effective net sales
taxesThe total amount of taxes applied to the ticket line
gross_receiptsThe gross receipts value of the ticket line - including the net sales, taxes, and discounts
cost_with_exciseThe cost of goods sold on the ticket line, where the cost value includes excise tax paid to the distributor
cost_without_exciseThe cost of goods sold on the ticket line, where the cost value does not include any excise tax paid to the distributor
customer_idThe numeric customer ID of the customer associated with the ticket
customer_typeDenotes whether the customer profile associated with the ticket is a medical or recreational customer. (e.g., ADULT, MEDICAL-REGULAR, MEDICAL-MMID)
customer_first_nameThe first name of the customer
customer_last_nameThe last name of the customer
customer_date_of_birthThe date of birth of the customer
customer_age_yearsThe whole number age of the customer in years at the time of the transaction. This is calculated based on the customer's date of birth and the current date
customer_genderThis column represents the gender of the customer. It is a text field and can contain values such as M (Male), F (Female), N (Non-Binary), or U (Unspecified), etc
customer_sourceThe customer source field from the customer profile. (e.g., Friend / Family, Google, Word of Mouth, etc.)
customer_phoneThis column represents the phone number of the customer on the customer profile. It is a numeric type field
customer_emailThe email address on the customer profile
customer_street_addressThe street address of the customer on the customer profile
customer_address_cityThe city of the customer's address on the customer profile
customer_address_stateThe state of the customer's address on the customer profile, abbreviated (e.g., CA, CO)
customer_address_zipThe ZIP code of the customer's address on the customer profile. This is a text value
customer_address_longitudeThe geographical longitude of the customer's address on the customer profile. This is a float value
customer_address_latitudeThe geographical latitude of the customer's address on the customer profile. This is a float value
customer_groupsThis column represents the group(s) that the customer belongs to on the customer profile. If the customer belongs to multiple groups, the groups are separated by commas
customer_opted_inThis column indicates whether the customer has opted in for marketing communications or not based on the customer profile. It is a text field that contains either Y (Yes) or N (No)
customer_medical_idThis column represents a medical customer's state medical ID number on the customer profile
batch_idThe human-readable batch identifier for the batch of inventory from which the ticket line product was sold
inventory_idThe unique identifier for the inventory batch
invoice_line_idThe unique identifier for each line item in an invoice. This ID is used to track individual products or services listed on an invoice
package_idThe unique identifier for the original package of inventory received associated with the inventory batch
inventory_typeThe inventory type of the batch from which the ticket line product was sold. (e.g., ADULT, MEDICAL, ALL)
inventory_barcodesThe barcodes associated with the batch of inventory as defined in Inventory Control
package_manifest_numberThe shipment manifest number associated with the package containing the batch of inventory from which the ticket line product was sold
package_labelThe package label of the package containing the batch of inventory from which the ticket line product was sold. For METRC states, this is the package tag barcode or state tracking id
distributor_nameThe name of the distributor on the distributor profile
last_syncA timestamp field that records the last time the data was synchronized into the Treez Data Warehouse. This is useful for tracking data changes and updates. To check for new or changed records, query for records where the last_sync timestamp is greater than the greatest timestamp in your data store
customer_updated_atThis column represents the timestamp when the customer's information was last updated, encoded in the store's local time zone
product_updated_atThis column represents the timestamp when the product information was last updated, encoded in the store's local time zone
record_loaded_atThis column represents the timestamp when the record in the database was last updated, encoded in the store's local time zone