# Commerce

> How selling works in software, from a brand's own store, Amazon and wholesale to the register, delivery apps, regulated goods and the platform behind them.

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.

## Chapters

- [The Commerce Business](https://www.syntaqx.com/books/commerce/commerce-business): How 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.
- [The Commerce Landscape](https://www.syntaqx.com/books/commerce/commerce-landscape): Commerce 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.
- [Business Models & Unit Economics](https://www.syntaqx.com/books/commerce/business-models): DTC, retail 1P, marketplace 3P, wholesale, subscription, drop-ship, print on demand, B2B and omnichannel, with margins, CAC, LTV and returns from filings.
- [Choosing & Hosting a Store](https://www.syntaqx.com/books/commerce/choosing-a-platform): Hosted 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.
- [Products, Variants & Bundles](https://www.syntaqx.com/books/commerce/products-and-variants): Products versus SKUs, options and variant limits by platform, bundles and kits, digital goods, GTINs and GS1 rules, pack sizes and the product lifecycle.
- [Product Information & Content](https://www.syntaqx.com/books/commerce/product-information): PIMs and attribute models, taxonomies (Google, Shopify, GS1 GPC), channel content and syndication, images, localization and the disclosures a listing carries.
- [Pricing & Price Lists](https://www.syntaqx.com/books/commerce/pricing): List, sale and compare-at prices, B2B price lists, currency and rounding, MAP and resale price law, unit pricing, personalized pricing law and price history.
- [Promotions, Discounts & Gift Cards](https://www.syntaqx.com/books/commerce/promotions-and-gift-cards): Discount engines, stacking, codes, BOGO, tiers and free shipping, abuse, and gift cards and store credit under Reg E, state law, escheat and ASC 606.
- [Site Search & Merchandising](https://www.syntaqx.com/books/commerce/site-search-and-merchandising): Search engines (Algolia, Elasticsearch, Constructor, Bloomreach, Shopify), facets, synonyms, ranking, merchandising rules, collections and recommendations.
- [Storefronts](https://www.syntaqx.com/books/commerce/storefronts): Themes versus headless storefronts, caching catalog pages, speed and conversion, commerce SEO and structured data, and accessibility law for stores.
- [Cart & Checkout](https://www.syntaqx.com/books/commerce/cart-and-checkout): The cart model and its persistence, checkout steps, guest checkout, address validation, shipping options, wallets, checkout extensions and abandoned carts.
- [Taking Payment in Commerce](https://www.syntaqx.com/books/commerce/taking-payment): Authorize at order and capture at shipment, split shipments and partial capture, expiring authorizations, order edits, wallets, BNPL and fraud guarantees.
- [Sales Tax, VAT & Duties](https://www.syntaqx.com/books/commerce/sales-tax-vat-and-duties): Nexus after Wayfair, marketplace facilitators, taxability, exemption certificates, tax engines, EU OSS and IOSS, UK and Canada, duties, de minimis, DDP and DAP.
- [Customers, Accounts & Privacy](https://www.syntaqx.com/books/commerce/customers-and-accounts): Accounts and guests, identity merge, addresses, marketing consent, CCPA and the state privacy laws, deletion against retention, and customer segments.
- [Consumer Protection Online](https://www.syntaqx.com/books/commerce/online-consumer-protection): The 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.
- [Order Management](https://www.syntaqx.com/books/commerce/order-management): What an OMS owns: order, fulfillment and payment states, holds, edits and cancellations, splits and merges, and sourcing rules that pick where each line ships.
- [Inventory](https://www.syntaqx.com/books/commerce/inventory): On hand, committed, reserved and available to promise; multi-location stock, reservations and overselling, safety stock, channel sync, cycle counts and shrink.
- [Warehouses, 3PLs & Fulfillment Networks](https://www.syntaqx.com/books/commerce/warehouses-and-3pls): WMS basics from receiving to ship, 3PLs like ShipBob and ShipMonk, Amazon MCF and FBA, Walmart Fulfillment Services, integration, EDI and SLAs.
- [Shipping & Carriers](https://www.syntaqx.com/books/commerce/shipping-and-carriers): Parcel carriers and their APIs, multi-carrier platforms, rate shopping, dimensional weight and zones, labels, tracking events and delivery promises.
- [Returns & Exchanges](https://www.syntaqx.com/books/commerce/returns-and-exchanges): Return policies and the law, RMAs, exchanges, returnless refunds, return networks, disposition, return fraud and what returns cost, with the schema.
- [Omnichannel Fulfillment](https://www.syntaqx.com/books/commerce/omnichannel-fulfillment): Buy online, pick up in store, curbside, ship-from-store, endless aisle and in-store returns, store inventory accuracy and unified commerce, with the schema.
- [Purchasing & Replenishment](https://www.syntaqx.com/books/commerce/purchasing-and-replenishment): Suppliers, purchase orders, lead times, MOQs, forecasting, reorder points and safety stock, landed cost, receiving against ASNs and returns to vendor.
- [Cross-Border Commerce](https://www.syntaqx.com/books/commerce/cross-border-commerce): Selling across borders: markets, local prices and payments, merchant-of-record services, HS codes and customs data, de minimis, duties and export controls.
- [Subscription Commerce](https://www.syntaqx.com/books/commerce/subscription-commerce): Product subscriptions: replenishment and boxes, schedules and anchors, skip, pause and swap, prepaid plans, renewal billing, dunning, subscription apps, churn.
- [Memberships & Loyalty](https://www.syntaqx.com/books/commerce/memberships-and-loyalty): Paid memberships (Costco, Prime, Walmart+) from the filings, points programs as ASC 606 material rights, breakage, tiers, escheat, and the loyalty platforms.
- [Auto-Renewal & Cancellation Law](https://www.syntaqx.com/books/commerce/auto-renewal-law): ROSCA 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.
- [Selling on Amazon](https://www.syntaqx.com/books/commerce/selling-on-amazon): Amazon 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.
- [Retail Media & Marketplace Ads](https://www.syntaqx.com/books/commerce/retail-media): Sponsored Products, Amazon Ads and its DSP, Walmart Connect, Roundel, Instacart Ads, eBay and Etsy ads, measurement and clean rooms, and ad money from filings.
- [Walmart, eBay, Etsy, TikTok Shop & Others](https://www.syntaqx.com/books/commerce/other-marketplaces): Walmart, eBay, Etsy, TikTok Shop, Target Plus, Best Buy, Mercado Libre, Temu and Shein compared: who can sell, fees, fulfillment, standards and payouts.
- [Multichannel Listing & Feeds](https://www.syntaqx.com/books/commerce/multichannel-listing): Catalog syndication: Amazon Listings Items and JSON schemas, Walmart item spec, Google Merchant Center, Rithum, Feedonomics, Pattern, sync and errors.
- [Brand Protection](https://www.syntaqx.com/books/commerce/brand-protection): Brand Registry and marketplace IP programs, counterfeits and platform liability, unauthorized resellers and first sale, MAP enforcement, and INFORM disclosures.
- [Running Your Own Marketplace](https://www.syntaqx.com/books/commerce/running-a-marketplace): Adding third-party sellers to a store: onboarding and KYC, shared catalogs and offers, split orders, commissions and payouts, tax and EU marketplace duties.
- [Reviews & Ratings](https://www.syntaqx.com/books/commerce/reviews-and-ratings): Collecting, moderating and syndicating product reviews: the FTC reviews rule, incentives and gating, Amazon Vine, Google store ratings, EU and UK review law.
- [Agentic & AI Shopping](https://www.syntaqx.com/books/commerce/agentic-commerce): AI shopping agents as a sales channel: ChatGPT, Google AI Mode, Perplexity and Amazon; ACP and UCP checkout, feeds for agents, agent identity and liability.
- [Wholesale & Retail Distribution](https://www.syntaqx.com/books/commerce/wholesale-and-retail-distribution): Selling to Walmart, Target, Best Buy and carriers: vendor onboarding, item setup, routing guides, chargebacks, OTIF, deductions, co-op and MDF, sell-through.
- [EDI](https://www.syntaqx.com/books/commerce/edi): X12 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.
- [B2B Commerce](https://www.syntaqx.com/books/commerce/b2b-commerce): Selling to businesses: company accounts and buyer roles, net terms and credit, quotes, punchout over cXML and OCI, contract catalogs, approvals and platforms.
- [Drop Ship & Print on Demand](https://www.syntaqx.com/books/commerce/drop-ship-and-print-on-demand): Selling goods someone else ships: retailer drop-ship programs, distributors and apps, Printful and Printify, margins, seller of record and liability.
- [Point of Sale](https://www.syntaqx.com/books/commerce/point-of-sale): POS systems from Square, Shopify, Lightspeed, Clover, Toast and NCR Voyix: the sale at the register, tenders, hardware, offline mode, receipts, with the schema.
- [Store Operations](https://www.syntaqx.com/books/commerce/store-operations): Running stores in software: staff roles, PINs and manager overrides, cash drawers and end of day, shrink and organized retail crime law, store systems.
- [Restaurants & Food Service](https://www.syntaqx.com/books/commerce/restaurants): In-house restaurant systems: table and counter service, checks and seats, kitchen display and coursing, tips, service charges and tip pools under the law.
- [Restaurant Reservations](https://www.syntaqx.com/books/commerce/restaurant-reservations): Reservation software and diner networks: network and direct covers, tables and pacing, deposits and tickets, waitlists, who owns the guest, and resale law.
- [The On-Demand Delivery Landscape](https://www.syntaqx.com/books/commerce/delivery-landscape): Marketplaces, logistics-only networks, first-party ordering, owned inventory and shop-and-deliver, with take rates, market share and consolidation.
- [Merchants, Menus & Catalogs](https://www.syntaqx.com/books/commerce/merchants-menus-and-catalogs): Onboarding restaurants and stores, menus and modifiers synced from the POS, item availability, grocery catalogs, substitutions, and in-app price markups.
- [Orders, Dispatch & Batching](https://www.syntaqx.com/books/commerce/orders-dispatch-and-batching): The delivery order lifecycle, prep time and ETA estimation, courier assignment and batching, shop-and-deliver, scheduled versus ASAP, and the handoff.
- [Fees, Commissions & the Law](https://www.syntaqx.com/books/commerce/delivery-fees-and-the-law): Consumer delivery fees and all-in pricing, merchant commission tiers, city commission caps, listing consent, the NYC data-sharing case, and tips.
- [Subscriptions & Loyalty](https://www.syntaqx.com/books/commerce/delivery-subscriptions): DashPass, Uber One, Instacart+ and Grubhub+ compared: benefit rules, who funds them, savings claims, trials, and cancellation law including FTC v. Uber.
- [Refunds, Missing Items & Fraud](https://www.syntaqx.com/books/commerce/refunds-and-delivery-fraud): Missing and wrong items, who pays for an error, merchant error charges and disputes, refund abuse, courier fraud, account takeover and promotion abuse.
- [Alcohol, Tobacco & Age-Restricted Goods](https://www.syntaqx.com/books/commerce/age-restricted-goods): Selling alcohol, tobacco, vapes, firearms and other age-gated goods: three-tier law, DTC shipping, the PACT Act, FFL transfers and age checks.
- [Cannabis & Hemp](https://www.syntaqx.com/books/commerce/cannabis-and-hemp): Cannabis and hemp commerce as of October 2026: seed-to-sale tracking with Metrc and BioTrack, dispensary limits, banking, rescheduling, the hemp redefinition.
- [Pesticides, Chemicals & Hazmat](https://www.syntaqx.com/books/commerce/pesticides-chemicals-and-hazmat): Selling and shipping pesticides and hazmat: FIFRA seller duties, 25(b) products, state registration, marketplaces, DOT rules, lithium batteries, SDS, Prop 65.
- [Product Safety, Compliance & Recalls](https://www.syntaqx.com/books/commerce/product-safety-and-recalls): CPSC, CPSIA testing and certificates, eFiling, 15(b) reports, recalls and marketplaces, FDA cosmetics and supplements, and the EU GPSR, with the schema.
- [Automotive Retail](https://www.syntaqx.com/books/commerce/automotive-retail): How cars are sold: dealer management systems, F&I and lending law, the vacated CARS Rule, window stickers and disclosures, titling, online car retail.
- [Email, SMS & Lifecycle Marketing](https://www.syntaqx.com/books/commerce/email-sms-and-lifecycle): Campaigns and flows, segmentation from order data, deliverability after the 2024 bulk-sender rules, CAN-SPAM, TCPA, state texting laws and SMS consent.
- [Acquisition & Attribution](https://www.syntaqx.com/books/commerce/acquisition-and-attribution): Paid search and Shopping, Performance Max, Meta Advantage+, affiliates and influencers, signals after ATT, conversion APIs, attribution, lift tests and MMM.
- [Customer Service](https://www.syntaqx.com/books/commerce/customer-service): WISMO and self-service tracking, helpdesks and order actions, returns and refunds through support, AI agents and disclosure laws, metrics and help-desk fraud.
- [Commerce Architecture: Building It Yourself](https://www.syntaqx.com/books/commerce/commerce-architecture): Bounded contexts, the order pipeline as events, idempotency, stock under load, multi-tenant platforms, apps and functions, rate limits and a reference build.
- [ERP & Integrations](https://www.syntaqx.com/books/commerce/erp-and-integrations): NetSuite, Business Central, SAP, Acumatica, QuickBooks and Xero; iPaaS; what syncs where, which system owns each object, and handling sync failures.
- [Commerce Accounting](https://www.syntaqx.com/books/commerce/commerce-accounting): ASC 606 for goods, the shipping election, returns reserves, gift card and loyalty liabilities, COGS and landed cost, payout reconciliation, sales tax and close.
- [Commerce Fraud & Abuse](https://www.syntaqx.com/books/commerce/commerce-fraud): Card testing, bots and inventory hoarding, resellers and the BOTS Act, promo abuse, account takeover, refund and return fraud, friendly fraud, and the vendors.
- [Store Security & PCI](https://www.syntaqx.com/books/commerce/store-security-and-pci): Magecart 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.
- [Peak Season & Drops](https://www.syntaqx.com/books/commerce/peak-season): BFCM load and capacity planning, load tests with real carts, code freezes, waiting rooms, fair limited drops, carrier peak surcharges and incident readiness.
- [AI in Commerce](https://www.syntaqx.com/books/commerce/ai-in-commerce): AI inside the store as of October 2026: generated product content and its disclosure, AI search, support agents, forecasting, pricing limits, images and evals.
- [Commerce Metrics](https://www.syntaqx.com/books/commerce/commerce-metrics): One definition per commerce metric over the book's tables: conversion, AOV, CAC, LTV, margin, returns, turns, GMROI, fill rate, churn and marketplace scores.
- [Replatforming & Migration](https://www.syntaqx.com/books/commerce/replatforming): Moving a store between platforms: what migrates, passwords, gift cards, subscriptions and card tokens, redirects and SEO, integrations, cutover and checks.
- [Commerce Glossary](https://www.syntaqx.com/books/commerce/glossary): Every commerce term by part: business, catalog, checkout, fulfillment, subscriptions, marketplaces, B2B, stores, delivery, regulated goods, marketing, platform.
