Vendor integration
Bernhardt stock and pricing, scraped straight from the dealer portal.
Bernhardt publishes no public feed for stock data, so this integration reads the dealer portal with a real headless Chrome browser and writes what it finds into Shopify. It runs in production today for Jennifer Furniture. Every value on the storefront traces back to what the portal showed that run.
What makes Bernhardt different to integrate
The numbers we need live inside AngularJS template elements that render only in a browser. A plain HTTP request sees an empty page, so the scraper runs a real headless Chrome session and reads stock counts and next-available dates after the client-side render finishes.
Backordered products list several future arrival dates spread across regional distribution centers. The pipeline extracts every quantity and date pair on the page, then resolves the soonest chronological arrival so the storefront promises the earliest honest date.
The portal sits behind session authentication with CSRF tokens, and Cloudflare watches for bots. The scraper clicks through pagination with humanlike jittered timing between actions, which keeps the session alive without tripping rate limits or challenges.
Storefront SKUs carry -dup, hash and orientation modifiers that Bernhardt never assigned. They are normalized before matching, so a sofa variant on the store still resolves to the right catalog row.
What syncs, and how often
- Stock status: In Stock, Out of Stock, Discontinued
- Incoming replenishment quantity
- Soonest DC availability date
- MSRP
- Wholesale dealer cost
- Lead-time delivery badges
How the integration runs in production
Each run opens a headless Chrome session, logs into the dealer portal and walks paginated category pages. Traversal stops only when a page yields zero new links, which is how we know the catalog was fully covered that run. Selenium drives the browser the whole way.
On each product page the scraper parses the DC replenishment tags and pulls every quantity and date pair it finds. Soonest-arrival resolution picks the earliest real date across the regional warehouses. Stock status, incoming quantity, MSRP and wholesale dealer cost go into our tables.
Writes are smart-diffed. A metafield is mutated only when the value actually changed since the last run, which keeps API calls low and the storefront quiet. What lands is stock status, replenishment counts, the soonest DC availability date and lead-time badges.
Common questions
How do I sync Bernhardt inventory with Shopify?
Bernhardt publishes dealer stock only through its portal, so the sync scrapes it with headless Chrome and writes the results into Shopify. Our pipeline handles the login, the AngularJS rendering and the metafield writes.
Does Bernhardt have an API for dealers?
Not for stock. Availability and arrival dates exist only inside the dealer portal, rendered client-side in AngularJS. That is why the integration is a browser scraper rather than an API client.
How often does Bernhardt stock data update?
Each run reads the portal live and pushes only the values that changed. Smart-diffed writes keep the storefront current without rewriting every product on every cycle.
Can you integrate Bernhardt into an existing Shopify store?
Yes. The matcher normalizes -dup, hash and orientation suffixes on your SKUs before comparing against the Bernhardt catalog, so existing products update in place. It runs on Jennifer Furniture today.
Get Bernhardt into your store
The feed described on this page is already built and running. Connecting it to your Shopify store is a configuration job, not a development project. See how vendor feed integration works or talk to us about your catalog.
Other vendor integrations
Two API stacks, one feed: REST for catalog data, SOAP for live stock across 16,000 SKUs.
A Step Functions pipeline syncs Coaster stock, wholesale cost and MAP to two storefronts daily.
8-layer SKU normalization plus a watchdog-audited feed across 3,265 wholesale SKUs and four stores.
Twenty concurrent Lambda workers scrape the Universal dealer portal in 15 to 20 seconds flat.
Finnish finish codes decoded from SKUs, portal stock scraped daily, bundles resolved to pieces.
Monthly inventory spreadsheet lifted straight out of the vendor's email and into three storefronts.
Daily scraping of a dealer portal that rejects anything that does not look like Chrome.
Container-aware Fjords stock and lead-time badges, guarded by an audit that can fail the run.
One catalog, five SKU prefixes: normalized to clean stock and container-aware badges.
Warehouse-API stock down to carton barcodes and bin locations, synced in under 4 seconds.
Related reading: How to keep Shopify inventory in sync across multiple vendors · Dealer portal scraping for boutique furniture brands · What a vendor feed is