Back to feed
Dev.to
Dev.to
7/8/2026
The original title is "6 things I learned building an app for Shopify's new native B2B"

The original title is "6 things I learned building an app for Shopify's new native B2B"

Original: 6 things I learned building an app for Shopify's new native B2B

Short summary

A developer shares six hard-won lessons from building Tradelane, a Shopify app that fills the onboarding gap in Shopify's newly democratized native B2B APIs. Key gotchas include silent contact-assignment failures when emails are reused across companies, React's HTML-escaping breaking inline <style> tags, and choosing hCaptcha over Cloudflare Turnstile for multi-tenant hostname flexibility. The article also covers using Shopify's app proxy for same-origin storefront pages, EU VIES VAT validation to filter fake wholesale applications, and treating missed notification emails as degraded-but-acceptable states rather than request failures.

  • Shopify's native B2B is now on all plans, but onboarding gaps remain — Companies API has silent failures on duplicate emails
  • App proxy enables same-origin storefront pages without CORS or theme code; React's escaping breaks inline <style> tags
  • hCaptcha beats Turnstile for multi-tenant apps; VIES VAT validation catches fake wholesale applications; email failures should degrade gracefully

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more