pepperwind / docs /commerce.md
rasinmuhammed's picture
Pepperwind Trading Co. preview, version 1.0
27ec678 verified
|
Raw History Blame Contribute Delete
33.2 kB

commerce

Pepperwind's online store, shaped like a Shopify store with one storefront per market (India, Europe, the US). It records customers, carts, orders and their lines, promotions and the codes customers redeemed, the refer-a-friend program, product reviews and returns. Wholesale buyers order through the same store (channel b2b), and each of their orders names its CRM account. Payments, invoices and refunds are in billing; parcels and their movements in logistics.

Table Rows What it holds
cart 5,153 One row per storefront cart: the cart each storefront order was checked out from, and the carts shoppers left without ordering. Wholesale orders have no cart.
cart_item 9,014 One row per SKU added to a cart. A converted cart's items match its order's lines.
customer 1,003 One row per customer record in a storefront: D2C shoppers, and the buyer at each wholesale account who orders through the store. A person has one record per market they buy in; a few people also have a second record, usually a guest checkout under another email. Fields are as they stand at the export; earlier addresses and emails are in customer_versions. A record whose deletion the privacy desk completed (comms.dsar_request) keeps its id, market, city, state and country, with its email, names, phone, street and postal code empty; its orders keep where they shipped.
customer_versions 491 One row per state of a customer record whose address or email changed after it was created: the first version from the record's creation, one from each change. Records that never changed have no rows. The row with an empty valid_to is the record today. Orders ship to the version in force when they were placed. A record erased on request keeps its versions' dates, city, state and country, with email, phone, street and postal code empty.
order 11,253 One row per order: storefront orders from the web store or the app, and wholesale orders (channel b2b). Amounts are in the order's currency, in major units. Storefront prices in India and Europe include tax, so their totals hold the tax inside; US prices and every wholesale order add tax on top. Statuses are as they stand at the export.
order_line 61,685 One row per SKU on an order. Amounts are in the order's currency.
promo_code 80 One row per promotion the store ran: site-wide sales (automatic, no code), campaign codes by occasion and year, the welcome code, the codes always on offer (banner, free delivery, win-back), creators' codes, and each market's refer-a-friend program.
promo_redemption 333 One row per storefront order on which a discount code applied. A site-wide sale is not a redemption: it shows only in the order's discount_total.
referral 41 One row per referred friend's first order under the refer-a-friend program. The friend gets 10% off with a code of their own; the customer who referred them gets store credit once the order is 30 days old.
return 51 One row per storefront order from which delivered goods were sent back or reported (one return an order). Its reason is the strongest of its lines' reasons. Statuses are as they stand at the export.
return_line 53 One row per order line in a return, with its own reason.
review 163 One row per product review: a customer's rating of a SKU after their first delivered purchase of it, usually written after the store's review request email.

cart

One row per storefront cart: the cart each storefront order was checked out from, and the carts shoppers left without ordering. Wholesale orders have no cart.

5,153 rows; key cart_id.

Column Type Empty Range or values Meaning
cart_id text, key 0.0% 5db5d93e-8832-4640-bbc9-896c4b20b371, aa4f169d-fe49-4826-99e0-3c3fa40acd81, 402479f7-9f17-4a8b-ac16-28194abaa6b3 The cart's id (a UUID).
market_code text 0.0% IN, EU, US The storefront: IN, EU or US.
customer_id text, → commerce.customer.customer_id 51.9% cus_H4xsA8WGgDRIJc, cus_4kwxj7KP7D9DPK, cus_KkFrD48CdXjYsT The customer who owned the cart. Empty when the shopper was not signed in or not yet a customer.
anonymous_id text 0.0% 0e76b958-1691-442f-9e26-c44ce50a4e95, 162bbe92-e61e-41a7-b0c1-c4f1b4f8c7c3, 2371ab2d-b548-4afb-bf11-0a15cfcc3a8f The id of the browser or app install the cart was made on; a known customer's carts on one device share it.
created_at timestamp, local wall clock, no zone 0.0% 2023-10-01 13:02:46 to 2026-09-30 21:20:54 When the first item was added, on the storefront's local clock (India's, New York's, or in Europe the buyer's country's).
updated_at timestamp, local wall clock, no zone 0.0% 2023-10-01 13:07:43 to 2026-09-30 21:49:26 When the cart last changed: for a converted cart, the moment its order was placed.
status text 0.0% converted, abandoned converted (became an order), abandoned (left), or active (still being changed on the export's last day).
converted_order_id integer, → commerce.order.order_id 69.1% 1 to 11253 The order the cart became. Empty unless converted.

cart_item

One row per SKU added to a cart. A converted cart's items match its order's lines.

9,014 rows; key cart_item_id.

Column Type Empty Range or values Meaning
cart_item_id integer, key 0.0% 1 to 9014 A number for the cart item, in order of when items were added.
cart_id text, → commerce.cart.cart_id 0.0% 8c6d362b-5eb0-4e57-973e-7b85a3688b3f, c48eb9c8-dbc2-4e06-afba-4b35d288aff3, 1f56c4d7-3f5d-4a43-b291-d400087fde34 The cart the item is in.
added_at timestamp, local wall clock, no zone 0.0% 2023-10-01 13:02:46 to 2026-09-30 21:20:54 When the item was added, on the storefront's local clock (India's, New York's, or in Europe the buyer's country's).
sku_id integer, → core.sku.sku_id 0.0% 1 to 895 The SKU added.
quantity integer 0.0% 1 to 4 Units in the cart.
unit_price number 0.0% 2.75 to 8300.0 The storefront list price per unit in force when the item was added, in the market's currency (including tax in India and Europe, before tax in the US).

customer

One row per customer record in a storefront: D2C shoppers, and the buyer at each wholesale account who orders through the store. A person has one record per market they buy in; a few people also have a second record, usually a guest checkout under another email. Fields are as they stand at the export; earlier addresses and emails are in customer_versions. A record whose deletion the privacy desk completed (comms.dsar_request) keeps its id, market, city, state and country, with its email, names, phone, street and postal code empty; its orders keep where they shipped.

1,003 rows; key customer_id.

Column Type Empty Range or values Meaning
customer_id text, key 0.0% cus_H4xsA8WGgDRIJc, cus_4kwxj7KP7D9DPK, cus_KkFrD48CdXjYsT The customer's id (cus_ followed by 14 characters).
market_code text 0.0% IN, EU, US The storefront the record belongs to: IN, EU or US.
email text 0.5% kavya.pandian49@letterbox.example, aasari@post.example, merel.kuiper68@inbox.example The email address on the record now.
first_name text 0.5% Kavya, Abhijith, Merel The customer's first name.
last_name text 0.5% Pandian, Asari, Kuiper The customer's last name.
phone text 0.5% +91 97XXXXX299, +91 90XXXXX654, +31 6 9323 5014 The customer's phone number. Indian and some European numbers have their middle digits masked.
created_at timestamp, local wall clock, no zone 0.0% 2017-05-15 11:35:35 to 2026-09-30 16:03:23 When the customer record was created, at sign-up or at the first checkout, in local time. Records from before October 2023 belong to customers who bought earlier.
state text 0.0% enabled, invited, disabled The account state: enabled (the customer has an account), invited (invited to create one, not yet done) or disabled (no account, such as a guest checkout). A second record of the same person is disabled.
tags text 59.9% wholesale, cafe, net-15, wholesale, horeca, net-45, wholesale, grocer, net-30 Tags on wholesale buyers only: "wholesale", the segment (cafe, horeca, grocer, concept-store, corporate-gifting) and the payment terms (net-15, net-30, net-45). Empty for D2C customers.
default_address1 text 0.5% No. 5, Market Street, MGR Nagar, 8, Pallathu House, Vayanasala Road, Ward 5, Schoolstraat 39 The first line of the customer's default address (for a wholesale buyer, the business's).
default_city text 0.0% Chennai, Kozhikode, Rotterdam The default address's city.
default_state text 19.9% TN, KL, WB The default address's state or province code. Empty where the country's addresses have none.
default_postal_code text 0.5% 600107, 673602, 3082 KD The default address's postal code (PIN code in India, ZIP in the US).
default_country text 0.0% IN, NL, DE The default address's country, as an ISO 3166 two-letter code.
accepts_marketing boolean 0.0% False to True True when the record's email marketing consent is subscribed (the store's older single-flag view of the same answer).
email_marketing_consent_state text 0.0% subscribed, not_subscribed, pending The email marketing consent the store recorded: subscribed, not_subscribed, or pending (a German sign-up that has not confirmed by email). Later unsubscribes and bounces are kept by the marketing system, not here.
email_marketing_consent_opt_in_level text 58.1% single_opt_in, confirmed_opt_in, unknown How the subscription was given: single_opt_in, confirmed_opt_in (confirmed by email, Germany), or unknown (India's early list, brought over with no record of how). Empty when not subscribed.
email_marketing_consent_updated_at timestamp, local wall clock, no zone 0.0% 2017-05-15 11:35:58 to 2026-09-30 16:03:29 When the consent was last set: at sign-up, seconds after the record was created (or minutes before a first order, from the sign-up pop-up), or when a German subscriber confirmed.

customer_versions

One row per state of a customer record whose address or email changed after it was created: the first version from the record's creation, one from each change. Records that never changed have no rows. The row with an empty valid_to is the record today. Orders ship to the version in force when they were placed. A record erased on request keeps its versions' dates, city, state and country, with email, phone, street and postal code empty.

491 rows; key version_id.

Column Type Empty Range or values Meaning
version_id integer, key 0.0% 1 to 491 A number for the version, unique across the table.
customer_id text, → commerce.customer.customer_id 0.0% cus_972lIKfdUqjqqH, cus_EoYRYUETGFJkGZ, cus_0HzlAb5PYjjXzi The customer record.
valid_from timestamp, local wall clock, no zone 0.0% 2017-06-12 14:46:32 to 2026-09-30 22:36:21 When this version took effect: the record's creation for the first, else the time the customer changed their details.
valid_to timestamp, local wall clock, no zone 49.7% 2017-10-29 22:36:04 to 2026-09-30 22:36:21 When the next version replaced it. Empty for the current version.
email text 0.4% akumar@dispatch.example, shruthiraju55@broadband.example, shruthi.raju89@mail.example The email address in this version.
phone text 0.4% +91 91XXXXX823, +91 92XXXXX432, +91 92XXXXX579 The phone number in this version.
default_address1 text 0.4% 6, Aiswarya, Church Road, Ward 12, 11, Ambattu House, Mosque Road, Ward 24, #31, 14th Cross, 8th Main, Vidyaranyapura 3rd Block The first line of the default address in this version.
default_city text 0.0% Aluva, Bengaluru, New Delhi The default address's city in this version.
default_state text 14.7% KL, KA, DL The default address's state or province code in this version. Empty where the country's addresses have none.
default_postal_code text 0.4% 683101, 560090, 110070 The default address's postal code in this version.

order

One row per order: storefront orders from the web store or the app, and wholesale orders (channel b2b). Amounts are in the order's currency, in major units. Storefront prices in India and Europe include tax, so their totals hold the tax inside; US prices and every wholesale order add tax on top. Statuses are as they stand at the export.

11,253 rows; key order_id.

Column Type Empty Range or values Meaning
order_id integer, key 0.0% 1 to 11253 A number for the order, in order of when it was placed.
customer_id text, → commerce.customer.customer_id 0.0% cus_BbYHTEPSr1B6cP, cus_GCAJzH0Ybl1Y5M, cus_1XudikaNGJg7p0 The customer who placed the order; for a wholesale order, the account's buyer.
b2b_account_id text, → crm.account.Id 14.2% 0015g0000000czYAAQ, 0015g0000000cwFAAQ, 0015g0000000czVAAQ The CRM account of a wholesale order (its earliest record). Empty for storefront orders.
placed_at timestamp, local wall clock, no zone 0.0% 2023-10-01 14:34:19 to 2026-09-30 21:49:26 When the order was placed, on the storefront's local clock (India's, New York's, or in Europe the buyer's country's).
market_code text 0.0% IN, US, EU The storefront: IN, EU or US.
order_number text 0.0% ORD-IN-1061241, ORD-IN-1061242, ORD-US-1004811 The order's number as the customer sees it, ORD--, counting up in each market.
channel text 0.0% app, web, b2b web (the web store), app (the mobile app) or b2b (a wholesale order).
currency text 0.0% INR, USD, EUR INR in India, EUR in Europe, USD in the US.
ship_to_city text 0.0% Thrissur, Tiruchirappalli, New York The delivery address's city: the customer's address at the time of the order.
ship_to_state text 10.3% KL, TN, NY The delivery address's state or province code. Empty where the country's addresses have none.
ship_to_postal_code text 0.0% 680021, 620008, 10029 The delivery address's postal code.
ship_to_country text 0.0% IN, US, DE The delivery address's country, as an ISO 3166 two-letter code.
pincode_tier text 17.0% tier_2, tier_1, tier_3 For Indian orders, the tier of the delivery PIN code: tier_1 for the largest cities, tier_2 and tier_3 for smaller towns. Empty outside India.
place_of_supply text 17.0% 32, 33, 27 For Indian orders, the two-digit GST state code of the delivery state (32 is Kerala), which decides whether CGST and SGST or IGST apply. Empty outside India.
ship_from_warehouse_id integer, → core.warehouse.warehouse_id 0.0% 1 to 5 The warehouse the order ships from: Kochi for India (and for the US until 5 January 2025), the Bengaluru and Bhiwandi third-party warehouses for nearby Indian states once open, Rotterdam for Europe, New Jersey for the US from 6 January 2025.
seller_entity text 0.0% PTPL, PEBV, PINC The company that sells: PTPL (Pepperwind Trading Private Limited, India, and US orders until 5 January 2025), PEBV (Pepperwind Europe B.V.) or PINC (Pepperwind Inc., US from 6 January 2025).
cancelled_at timestamp, local wall clock, no zone 98.6% 2023-10-06 18:03:42 to 2026-09-25 23:06:22 When the order was cancelled, on the storefront's local clock (India's, New York's, or in Europe the buyer's country's), before it shipped. Empty for orders not cancelled.
cancel_reason text 98.6% customer, inventory, declined Why it was cancelled, in Shopify's values: customer, inventory, fraud, declined (seen only on cash-on-delivery orders) or other. Empty for orders not cancelled.
fulfillment_status text 1.5% delivered, returned, returned_to_origin Where the order's goods are at the export: unfulfilled (not yet shipped), in_transit, delivered, returned_to_origin (the parcel was refused or undeliverable and came back) or returned (delivered, then sent back). An order of gift cards only is delivered at once. Empty for cancelled orders.
financial_status text 0.0% paid, voided, partially_refunded The payment's state at the export: pending (not yet paid; for cash on delivery, not yet delivered; for wholesale, inside its terms), paid, refunded, partially_refunded, or voided (a cancelled wholesale order, or a cash-on-delivery order cancelled or returned to origin).
subtotal number 0.0% 3.0 to 1213829.6 The lines' totals after discounts, before delivery. Includes tax for Indian and European storefront orders, excludes it for US and wholesale orders.
discount_total number 0.0% -0.0 to 1112.55 The discount taken off the lines by a site-wide sale or a discount code. Zero on wholesale orders, whose discount is in the unit price.
shipping_total number 0.0% -0.0 to 59.0 The delivery charge. Free above each storefront's free-delivery threshold, with a free-delivery code, and on wholesale orders.
discount_code text 97.0% HELLO10, MEERA10, WELCOME-SGXB7A The discount code applied: a store code, or a referred friend's own WELCOME- code. Empty when none applied (a site-wide sale needs no code).
shipping_tax number 0.0% -0.0 to 5.68 The tax on the delivery charge: inside the charge in India and Europe, added to it in the US states that tax delivery, otherwise zero.
tax_total number 0.0% -0.0 to 145659.55 All tax on the order: the lines' tax plus shipping_tax.
total number 0.0% 8.99 to 1359489.15 What the customer pays: subtotal plus shipping_total, plus tax_total for US and wholesale orders (where tax is added on top).
store_credit_used number, 2 places 0.0% -0.0 to 1980.0 Store credit applied to the order at checkout, part of total: credit from a return settled as store credit first, then referral rewards, up to the total less any gift cards the order buys. Never applied to wholesale orders. Zero on most orders.
payment_method text 0.0% cod, upi, paypal How the order is paid: cod (cash on delivery), upi, card, netbanking or wallet in India; the buyer's country's usual methods in Europe (ideal, bancontact, klarna, sepa_debit, mobilepay, paypal, card and card wallets); card, paypal, apple_pay or google_pay in the US; bank_transfer for wholesale orders on terms; store_credit when store credit covers the whole order.

order_line

One row per SKU on an order. Amounts are in the order's currency.

61,685 rows; key order_line_id.

Column Type Empty Range or values Meaning
order_line_id integer, key 0.0% 1 to 61685 A number for the line, in order of when its order was placed.
order_id integer, → commerce.order.order_id 0.0% 1 to 11253 The order the line is on.
sku_id integer, → core.sku.sku_id 0.0% 1 to 899 The SKU ordered.
quantity integer 0.0% 1 to 2556 Units ordered; a wholesale line is usually a whole number of cases.
unit_list_price number 0.0% 2.75 to 11099.0 The list price per unit in force when the order was placed (including tax in India and Europe, before tax in the US).
unit_price number 0.0% 1.51 to 7099.0 The price per unit charged before any order discount: the list price on a storefront order; on a wholesale order, the list price net of the tax it includes, less the account's wholesale discount.
line_discount number 0.0% -0.0 to 1079.7 This line's share of a site-wide sale or a discount code. Gift cards and clearance items are never discounted, nor are a season's new editions in a site-wide sale; zero on wholesale lines.
requires_shipping boolean 0.0% False to True False for gift cards, which are not shipped.
hsn text 0.1% 0901, 0902, 0904 The HSN code of the product's category (the customs classification used for Indian GST), on every market's lines. Empty for gift cards.
tax_rate number, 5 places 0.0% -0.0 to 0.25 The tax rate applied, as a fraction (0.05 is 5%): GST in India, VAT in Europe, sales tax in the US. Zero for gift cards.
tax_amount number 0.0% -0.0 to 142179.66 The tax on the line: inside line_total for Indian and European storefront orders, added on top for US and wholesale orders. Within one Indian state it is the sum of the CGST and SGST halves.
line_total number 0.0% 3.0 to 1184830.5 unit_price times quantity, less line_discount.

promo_code

One row per promotion the store ran: site-wide sales (automatic, no code), campaign codes by occasion and year, the welcome code, the codes always on offer (banner, free delivery, win-back), creators' codes, and each market's refer-a-friend program.

80 rows; key promo_code_id.

Column Type Empty Range or values Meaning
promo_code_id integer, key 0.0% 1 to 80 A number for the promotion, in order of when it starts.
code text 21.2% FREESHIP, HELLO10, SAVE10 The code customers type. Empty for site-wide sales and for the refer-a-friend program, whose codes are each friend's own (WELCOME- and six characters).
title text 78.8% Refer a friend: 10% off a first order, Festive Sale 2023, Black Friday to Cyber Monday 2023 The name of a site-wide sale or of the refer-a-friend program. Empty for codes.
method text 0.0% code, automatic automatic (a site-wide sale applied without a code) or code.
kind text 0.0% free_shipping, percent_off, amount_off percent_off, amount_off or free_shipping.
purpose text 0.0% free_shipping, welcome, referral What the promotion is for: sale, campaign, welcome, banner, free_shipping, win_back, creator or referral.
value number, 2 places 3.8% 5.0 to 200.0 The discount: a percentage for percent_off, an amount in the promotion's currency for amount_off. Empty for free_shipping.
min_subtotal number 95.0% 45.0 to 1999.0 The least the order's items must come to for the code to apply. Empty where there is no minimum.
currency text 0.0% INR, USD, EUR The promotion's currency: that of its market.
market_code text 0.0% IN, US, EU The storefront the promotion runs in: IN, EU or US.
customer_segment text 75.0% Subscribers, Referred friends, Lapsed subscribers Who the promotion is offered to: Subscribers, Lapsed subscribers, Referred friends, Kerala or Diaspora (a market's own community). Empty when open to everyone.
once_per_customer boolean 0.0% False to True True when a customer may use it only once (the welcome code and referral codes).
max_uses number 100.0% The cap on total uses. Empty for every promotion: none is capped.
campaign_code text 33.8% CMP-2023-001, CMP-2023-002, CMP-2023-003 The marketing campaign the promotion belongs to (CMP--), for sales and campaign codes. Empty for the others.
starts_at timestamp, local wall clock, no zone 0.0% 2021-06-01 00:00:00 to 2026-08-18 00:00:00 Midnight on the promotion's first day, on the storefront's local clock.
ends_at timestamp, local wall clock, no zone 25.0% 2023-11-09 23:59:59 to 2026-08-26 23:59:59 23:59:59 on the promotion's last day. Empty for a promotion still running.

promo_redemption

One row per storefront order on which a discount code applied. A site-wide sale is not a redemption: it shows only in the order's discount_total.

333 rows; key redemption_id.

Column Type Empty Range or values Meaning
redemption_id integer, key 0.0% 1 to 333 A number for the redemption, in order of when it was made.
order_id integer, → commerce.order.order_id 0.0% 29 to 11234 The order the code was used on.
promo_code_id number, → commerce.promo_code.promo_code_id 0.0% 1.0 to 80.0 The promotion the code belongs to; a referred friend's code points to the market's refer-a-friend program. Held as a number.
customer_id text, → commerce.customer.customer_id 0.0% cus_KQ2qXl4TxNU4Wm, cus_DE0yw5hN7rkFFX, cus_6kQaMRbYOYjgos The customer who used the code.
code text 0.0% HELLO10, MEERA10, WELCOME-SGXB7A The code as applied.
amount number 0.0% 0.45 to 919.2 What the code took off, in the order's currency: the order's discount, or the delivery charge waived by a free-delivery code.
currency text 0.0% INR, USD, EUR The order's currency.
redeemed_at timestamp, local wall clock, no zone 0.0% 2023-10-05 14:36:44 to 2026-09-29 09:39:57 When the order was placed, on the storefront's local clock (India's, New York's, or in Europe the buyer's country's).

referral

One row per referred friend's first order under the refer-a-friend program. The friend gets 10% off with a code of their own; the customer who referred them gets store credit once the order is 30 days old.

41 rows; key referral_id.

Column Type Empty Range or values Meaning
referral_id integer, key 0.0% 1 to 41 A number for the referral, in order of when it was recorded.
first_order_id integer, → commerce.order.order_id 0.0% 169 to 11016 The friend's first order, on which their code was used.
referee_customer_id text, → commerce.customer.customer_id 0.0% cus_0Ccwymji6yT4qr, cus_AMp08Tfh2uEHDJ, cus_2A7xKKxIlkGqmV The friend who was referred.
code text 0.0% WELCOME-SGXB7A, WELCOME-MQ225X, WELCOME-3EBXFR The friend's own code (WELCOME- and six characters).
created_at timestamp, local wall clock, no zone 0.0% 2023-10-13 14:46:35 to 2026-09-13 11:04:11 When the program recorded the referral, seconds after the friend's order was placed, on the storefront's local clock (India's, New York's, or in Europe the buyer's country's).
referrer_customer_id text, → commerce.customer.customer_id 0.0% cus_KnmLnODplDqq97, cus_Ay0MR0iPeYXSni, cus_HHNJKBhravizJB The customer who referred the friend, a customer of the same storefront.
reward_status text 0.0% rewarded, cancelled, pending pending (the order is not yet 30 days old), rewarded, or cancelled (the friend's order was cancelled or refused at the door).
reward_amount number 0.0% 5.0 to 200.0 The store credit the referrer earns: 200 in India (INR), 5 in Europe (EUR), 6 in the US (USD).
currency text 0.0% INR, USD, EUR The currency of the reward: the storefront's.
rewarded_at timestamp, local wall clock, no zone 17.1% 2023-11-13 03:27:53 to 2026-09-16 03:08:34 When the credit was granted, in the nightly run after the friend's order turned 30 days old. Empty unless rewarded.

return

One row per storefront order from which delivered goods were sent back or reported (one return an order). Its reason is the strongest of its lines' reasons. Statuses are as they stand at the export.

51 rows; key return_id.

Column Type Empty Range or values Meaning
return_id integer, key 0.0% 1 to 51 A number for the return, in order of when it was requested.
order_id integer, → commerce.order.order_id 0.0% 58 to 11153 The order the goods came from.
customer_id text, → commerce.customer.customer_id 0.0% cus_84ZsMECvQpa8o2, cus_4kwxj7KP7D9DPK, cus_Kr3GxAbCPuPYC0 The customer who asked for the return.
requested_at timestamp, local wall clock, no zone 0.0% 2023-10-11 18:16:53 to 2026-09-27 11:34:59 When the customer asked for the return, on the storefront's local clock (India's, New York's, or in Europe the buyer's country's).
reason text 0.0% wrong_item, not_as_described, late The return's reason, the strongest of its lines': damaged, wrong_item, expired, not_as_described, quality, late or changed_mind.
status text 0.0% completed requested, approved, received (back at the warehouse), completed (refunded, credited or replaced), or rejected (asked for after the return window closed).
resolution text 0.0% store_credit, refund, replacement What the customer gets: refund, store_credit or replacement. Empty for rejected returns.
refund_amount number 0.0% -0.0 to 3509.1 The money refunded or credited for the returned units, in the order's currency (with their sales tax in the US). Zero for replacements and rejected returns.
received_at timestamp, local wall clock, no zone 60.8% 2023-10-16 12:02:20 to 2026-09-08 17:11:50 When the returned parcel was booked in at the warehouse. Empty until it arrives, and for returns settled without sending goods back (damaged, wrong or expired food refunded on a photo, and US parcels that shipped from Kochi) or rejected.
policy_version integer 0.0% 1 to 2 The returns policy in force when the order was placed: 1 (30 days from delivery) for orders before 1 April 2025, 2 (14 days, store credit by default for a change of mind) after.
rma_number text 0.0% RMA-IN-104201, RMA-IN-104202, RMA-IN-104203 The return's number as the customer sees it, RMA--, counting up in each market.

return_line

One row per order line in a return, with its own reason.

53 rows; key return_line_id.

Column Type Empty Range or values Meaning
return_line_id integer, key 0.0% 1 to 53 A number for the return line.
return_id integer, → commerce.return.return_id 0.0% 1 to 51 The return the line belongs to.
order_line_id integer, → commerce.order_line.order_line_id 0.0% 255 to 61212 The order line being returned.
reason text 0.0% not_as_described, damaged, expired Why this line came back: damaged, wrong_item, expired, not_as_described, quality, late or changed_mind.
quantity integer 0.0% 1 to 2 Units returned: the whole line, or one unit where a damaged line held several.
condition text 0.0% opened, damaged, unopened The goods' condition: damaged, opened (quality and not-as-described returns) or unopened.

review

One row per product review: a customer's rating of a SKU after their first delivered purchase of it, usually written after the store's review request email.

163 rows; key review_id.

Column Type Empty Range or values Meaning
review_id integer, key 0.0% 1 to 163 A number for the review, in order of when it was written.
sku_id integer, → core.sku.sku_id 0.0% 12 to 866 The SKU reviewed.
customer_id text, → commerce.customer.customer_id 0.0% cus_BbYHTEPSr1B6cP, cus_KQ2qXl4TxNU4Wm, cus_8qHESP9k0XUUub The customer who wrote it.
order_id integer, → commerce.order.order_id 0.0% 1 to 10926 The order the reviewed purchase came in.
rating integer 0.0% 1 to 5 Stars, 1 to 5.
title text 6.8% Poor, Fab, Couldn't be happier, bright liquor The review's title as the customer wrote it.
body text 0.0% Below expectations. Lots of dust in the pack. Expected better at this price., Best Spiced chocolate I've bought online. Perfect for my morning filter coffee. Not bitter at all. Brew it in a French p, Best Flavoured teas I've bought online. Lovely malty notes, perfect with a splash of milk. Strong enough to take milk, w The review's text as the customer wrote it.
created_at timestamp, local wall clock, no zone 0.0% 2023-10-06 11:42:50 to 2026-09-22 20:57:29 When the review was submitted, on the storefront's local clock (India's, New York's, or in Europe the buyer's country's).
status text 0.0% published, rejected published, rejected by moderation, or pending (submitted in the last days before the export, not yet moderated).
helpful_votes integer 0.0% 0 to 17 How many shoppers marked the review helpful. Zero unless published.