About This Project
We implemented an automatic B2B discount system and invoice payment feature for a Shopify + Headless e-commerce site.
Customers simply log in to see member pricing automatically displayed, and discounts are applied at checkout without entering coupon codes. Invoice payment (net terms) is also supported.
Learn More
We've written three articles explaining this system in detail.
System Overview & Design Philosophy
Why we chose this design, the tag name = coupon name approach, and headless-specific challenges.
Shopify Configuration
Step-by-step setup for customer tags, segments, collections, and coupons.
Headless Implementation
Tag reading, price calculation, auto-coupon application, and draft order invoice payment.
System Overview
standard-35, premium-25
B2B Standard 35, B2B Premium 25
standard-35 (35%OFF), premium-25 (25%OFF)
Key Results
- Operational Efficiency: Adding new B2B customers requires only tagging
- Customer Experience: Login automatically applies member pricing
- Flexibility: Supports different discount rates across multiple categories
- Cost Savings: Full B2B functionality without Shopify Plus
Tech Stack
- Shopify Storefront API (Customer tag retrieval)
- Shopify Admin API (Draft order creation)
- Next.js (App Router)
- Customer Tag / Segment / Coupon Integration