Books66 chapters18 h 25 min read
Commerce
Every commerce system sells from a catalog to a customer and owes someone a fulfilled order, whether that's a brand's site and Amazon listing the same product, a distributor quoting ten thousand SKUs at a price per company, or a restaurant pushing its menu to three apps. One order lives in several systems at once (the channel, the order manager, the warehouse, the carrier, the tax engine, the processor, the ledger), each able to be wrong about it in its own way, under rules that change by channel, state and product. This book surveys how the industry does each piece, benchmarked across Shopify, Salesforce, commercetools, Amazon, Walmart, Etsy, Square, Toast, DoorDash, Avalara, NetSuite and the others, with no single company as the model, and how you'd build it, extending one core data model chapter by chapter.
It reads in twelve parts, plus a glossary, from the catalog, checkout and fulfillment through marketplaces, wholesale, point of sale, on-demand delivery and regulated goods.
The Business
- 01The Commerce BusinessHow selling things works in software: the parties, the channels, how the money splits in each model, the life of an order, and the core data model.31 min
- 02The Commerce LandscapeCommerce platforms, marketplaces, point of sale, OMS, WMS and ERP, app ecosystems, US e-commerce size from the Census, and who owns whom as of October 2026.12 min
- 03Business Models & Unit EconomicsDTC, retail 1P, marketplace 3P, wholesale, subscription, drop-ship, print on demand, B2B and omnichannel, with margins, CAC, LTV and returns from filings.13 min
- 04Choosing & Hosting a StoreHosted SaaS, self-hosted open source, headless or your own: what running a store involves, PCI scope by SAQ, total cost, lock-in, exports and when to build.14 min
Catalog and Pricing
- 05Products, Variants & BundlesProducts versus SKUs, options and variant limits by platform, bundles and kits, digital goods, GTINs and GS1 rules, pack sizes and the product lifecycle.18 min
- 06Product Information & ContentPIMs and attribute models, taxonomies (Google, Shopify, GS1 GPC), channel content and syndication, images, localization and the disclosures a listing carries.15 min
- 07Pricing & Price ListsList, sale and compare-at prices, B2B price lists, currency and rounding, MAP and resale price law, unit pricing, personalized pricing law and price history.21 min
- 08Promotions, Discounts & Gift CardsDiscount engines, stacking, codes, BOGO, tiers and free shipping, abuse, and gift cards and store credit under Reg E, state law, escheat and ASC 606.20 min
- 09Site Search & MerchandisingSearch engines (Algolia, Elasticsearch, Constructor, Bloomreach, Shopify), facets, synonyms, ranking, merchandising rules, collections and recommendations.15 min
Storefront and Checkout
- 10StorefrontsThemes versus headless storefronts, caching catalog pages, speed and conversion, commerce SEO and structured data, and accessibility law for stores.16 min
- 11Cart & CheckoutThe cart model and its persistence, checkout steps, guest checkout, address validation, shipping options, wallets, checkout extensions and abandoned carts.16 min
- 12Taking Payment in CommerceAuthorize at order and capture at shipment, split shipments and partial capture, expiring authorizations, order edits, wallets, BNPL and fraud guarantees.13 min
- 13Sales Tax, VAT & DutiesNexus after Wayfair, marketplace facilitators, taxability, exemption certificates, tax engines, EU OSS and IOSS, UK and Canada, duties, de minimis, DDP and DAP.16 min
- 14Customers, Accounts & PrivacyAccounts and guests, identity merge, addresses, marketing consent, CCPA and the state privacy laws, deletion against retention, and customer segments.14 min
- 15Consumer Protection OnlineThe FTC Mail Order Rule, fee disclosure and drip pricing, dark patterns, price comparisons, Made in USA, warranties and the EU's 14-day right of withdrawal.14 min
Orders, Inventory and Fulfillment
- 16Order ManagementWhat an OMS owns: order, fulfillment and payment states, holds, edits and cancellations, splits and merges, and sourcing rules that pick where each line ships.18 min
- 17InventoryOn hand, committed, reserved and available to promise; multi-location stock, reservations and overselling, safety stock, channel sync, cycle counts and shrink.16 min
- 18Warehouses, 3PLs & Fulfillment NetworksWMS basics from receiving to ship, 3PLs like ShipBob and ShipMonk, Amazon MCF and FBA, Walmart Fulfillment Services, integration, EDI and SLAs.16 min
- 19Shipping & CarriersParcel carriers and their APIs, multi-carrier platforms, rate shopping, dimensional weight and zones, labels, tracking events and delivery promises.17 min
- 20Returns & ExchangesReturn policies and the law, RMAs, exchanges, returnless refunds, return networks, disposition, return fraud and what returns cost, with the schema.20 min
- 21Omnichannel FulfillmentBuy online, pick up in store, curbside, ship-from-store, endless aisle and in-store returns, store inventory accuracy and unified commerce, with the schema.15 min
- 22Purchasing & ReplenishmentSuppliers, purchase orders, lead times, MOQs, forecasting, reorder points and safety stock, landed cost, receiving against ASNs and returns to vendor.15 min
- 23Cross-Border CommerceSelling across borders: markets, local prices and payments, merchant-of-record services, HS codes and customs data, de minimis, duties and export controls.18 min
Subscriptions and Memberships
- 24Subscription CommerceProduct subscriptions: replenishment and boxes, schedules and anchors, skip, pause and swap, prepaid plans, renewal billing, dunning, subscription apps, churn.20 min
- 25Memberships & LoyaltyPaid memberships (Costco, Prime, Walmart+) from the filings, points programs as ASC 606 material rights, breakage, tiers, escheat, and the loyalty platforms.13 min
- 26Auto-Renewal & Cancellation LawROSCA and the FTC's cases (Amazon Prime, Instacart, Adobe), the vacated rule, California, New York and other state laws, and EU and UK rules for goods.21 min
Marketplaces
- 27Selling on AmazonAmazon 1P and 3P: Vendor Central POs, Seller Central fees, FBA, the Featured Offer, account health, returns, SP-API roles and PII rules, and FTC v. Amazon.25 min
- 28Retail Media & Marketplace AdsSponsored Products, Amazon Ads and its DSP, Walmart Connect, Roundel, Instacart Ads, eBay and Etsy ads, measurement and clean rooms, and ad money from filings.14 min
- 29Walmart, eBay, Etsy, TikTok Shop & OthersWalmart, eBay, Etsy, TikTok Shop, Target Plus, Best Buy, Mercado Libre, Temu and Shein compared: who can sell, fees, fulfillment, standards and payouts.19 min
- 30Multichannel Listing & FeedsCatalog syndication: Amazon Listings Items and JSON schemas, Walmart item spec, Google Merchant Center, Rithum, Feedonomics, Pattern, sync and errors.16 min
- 31Brand ProtectionBrand Registry and marketplace IP programs, counterfeits and platform liability, unauthorized resellers and first sale, MAP enforcement, and INFORM disclosures.16 min
- 32Running Your Own MarketplaceAdding third-party sellers to a store: onboarding and KYC, shared catalogs and offers, split orders, commissions and payouts, tax and EU marketplace duties.14 min
- 33Reviews & RatingsCollecting, moderating and syndicating product reviews: the FTC reviews rule, incentives and gating, Amazon Vine, Google store ratings, EU and UK review law.13 min
- 34Agentic & AI ShoppingAI shopping agents as a sales channel: ChatGPT, Google AI Mode, Perplexity and Amazon; ACP and UCP checkout, feeds for agents, agent identity and liability.14 min
Wholesale and B2B
- 35Wholesale & Retail DistributionSelling to Walmart, Target, Best Buy and carriers: vendor onboarding, item setup, routing guides, chargebacks, OTIF, deductions, co-op and MDF, sell-through.16 min
- 36EDIX12 for retail: 850, 855, 856, 810, 846, 852, 860, 940 and 945, envelopes and acknowledgments, VANs and AS2, providers, GS1-128 and SSCC, partner testing.11 min
- 37B2B CommerceSelling to businesses: company accounts and buyer roles, net terms and credit, quotes, punchout over cXML and OCI, contract catalogs, approvals and platforms.11 min
- 38Drop Ship & Print on DemandSelling goods someone else ships: retailer drop-ship programs, distributors and apps, Printful and Printify, margins, seller of record and liability.12 min
Point of Sale and Stores
- 39Point of SalePOS systems from Square, Shopify, Lightspeed, Clover, Toast and NCR Voyix: the sale at the register, tenders, hardware, offline mode, receipts, with the schema.17 min
- 40Store OperationsRunning stores in software: staff roles, PINs and manager overrides, cash drawers and end of day, shrink and organized retail crime law, store systems.14 min
- 41Restaurants & Food ServiceIn-house restaurant systems: table and counter service, checks and seats, kitchen display and coursing, tips, service charges and tip pools under the law.16 min
- 42Restaurant ReservationsReservation software and diner networks: network and direct covers, tables and pacing, deposits and tickets, waitlists, who owns the guest, and resale law.26 min
On-Demand Delivery
- 43The On-Demand Delivery LandscapeMarketplaces, logistics-only networks, first-party ordering, owned inventory and shop-and-deliver, with take rates, market share and consolidation.11 min
- 44Merchants, Menus & CatalogsOnboarding restaurants and stores, menus and modifiers synced from the POS, item availability, grocery catalogs, substitutions, and in-app price markups.13 min
- 45Orders, Dispatch & BatchingThe delivery order lifecycle, prep time and ETA estimation, courier assignment and batching, shop-and-deliver, scheduled versus ASAP, and the handoff.11 min
- 46Fees, Commissions & the LawConsumer delivery fees and all-in pricing, merchant commission tiers, city commission caps, listing consent, the NYC data-sharing case, and tips.13 min
- 47Subscriptions & LoyaltyDashPass, Uber One, Instacart+ and Grubhub+ compared: benefit rules, who funds them, savings claims, trials, and cancellation law including FTC v. Uber.8 min
- 48Refunds, Missing Items & FraudMissing and wrong items, who pays for an error, merchant error charges and disputes, refund abuse, courier fraud, account takeover and promotion abuse.11 min
Regulated Goods
- 49Alcohol, Tobacco & Age-Restricted GoodsSelling alcohol, tobacco, vapes, firearms and other age-gated goods: three-tier law, DTC shipping, the PACT Act, FFL transfers and age checks.15 min
- 50Cannabis & HempCannabis and hemp commerce as of October 2026: seed-to-sale tracking with Metrc and BioTrack, dispensary limits, banking, rescheduling, the hemp redefinition.14 min
- 51Pesticides, Chemicals & HazmatSelling and shipping pesticides and hazmat: FIFRA seller duties, 25(b) products, state registration, marketplaces, DOT rules, lithium batteries, SDS, Prop 65.20 min
- 52Product Safety, Compliance & RecallsCPSC, CPSIA testing and certificates, eFiling, 15(b) reports, recalls and marketplaces, FDA cosmetics and supplements, and the EU GPSR, with the schema.13 min
- 53Automotive RetailHow cars are sold: dealer management systems, F&I and lending law, the vacated CARS Rule, window stickers and disclosures, titling, online car retail.15 min
Marketing and Customers
- 54Email, SMS & Lifecycle MarketingCampaigns and flows, segmentation from order data, deliverability after the 2024 bulk-sender rules, CAN-SPAM, TCPA, state texting laws and SMS consent.21 min
- 55Acquisition & AttributionPaid search and Shopping, Performance Max, Meta Advantage+, affiliates and influencers, signals after ATT, conversion APIs, attribution, lift tests and MMM.20 min
- 56Customer ServiceWISMO and self-service tracking, helpdesks and order actions, returns and refunds through support, AI agents and disclosure laws, metrics and help-desk fraud.17 min
Running the Platform
- 57Commerce Architecture: Building It YourselfBounded contexts, the order pipeline as events, idempotency, stock under load, multi-tenant platforms, apps and functions, rate limits and a reference build.23 min
- 58ERP & IntegrationsNetSuite, Business Central, SAP, Acumatica, QuickBooks and Xero; iPaaS; what syncs where, which system owns each object, and handling sync failures.14 min
- 59Commerce AccountingASC 606 for goods, the shipping election, returns reserves, gift card and loyalty liabilities, COGS and landed cost, payout reconciliation, sales tax and close.18 min
- 60Commerce Fraud & AbuseCard testing, bots and inventory hoarding, resellers and the BOTS Act, promo abuse, account takeover, refund and return fraud, friendly fraud, and the vendors.16 min
- 61Store Security & PCIMagecart e-skimming, PCI DSS 6.4.3 and 11.6.1, SAQ A after 2025, CSP and SRI, tag managers, app scopes, staff 2FA and who secures what on each platform.15 min
- 62Peak Season & DropsBFCM load and capacity planning, load tests with real carts, code freezes, waiting rooms, fair limited drops, carrier peak surcharges and incident readiness.19 min
- 63AI in CommerceAI inside the store as of October 2026: generated product content and its disclosure, AI search, support agents, forecasting, pricing limits, images and evals.18 min
- 64Commerce MetricsOne definition per commerce metric over the book's tables: conversion, AOV, CAC, LTV, margin, returns, turns, GMROI, fill rate, churn and marketplace scores.14 min
- 65Replatforming & MigrationMoving a store between platforms: what migrates, passwords, gift cards, subscriptions and card tokens, redirects and SEO, integrations, cutover and checks.18 min