Skip to content

Wayfair ​

Wayfair uses SFTP files for order intake and inventory publication. The service also generates an ASN/shipment file when a Wayfair sale is shipped.

Evidence boundary

This page describes source at commit 42116ebc0ba509bce9cc6651a55ecefd9a5fdb38. SFTP credentials, remote directories, schedules, and Wayfair acceptance are not verified here.

Entry points ​

OperationCommand/eventSource behavior
Order importmenzzo:erp:wayfair:sync:ordersReads order CSV files from the Wayfair SFTP /sales path, resolves products by EAN for store 3, deduplicates by WF-<provider-order-id>, and creates processing sales with source Wayfair.
Inventory filemenzzo:erp:wayfair:sync:stockWrites a CSV under the local Wayfair temporary directory with ItemNum (EAN), quantity, discontinuation, and cleaned product name fields.
Shipment/ASNSaleProductsShippedEventGenerates a Wayfair shipment/ASN CSV and sends it through the Wayfair SFTP connection.

The order mapping stores the raw Wayfair data in wayfair_order_info and sets the sale shipping method to the source’s real Wayfair method. Product lines use store-3 product price and the imported quantity.

Stock and shipment behavior ​

Inventory rows use product EAN as the Wayfair item number. The source derives discontinuation from local is_active; the file is written locally before the SFTP upload path is used. The shipment path generates a provider tracking value, item/quantity rows, and an ASN file under the local data directory before sending it to the remote shipments path.

What remains unknown ​

  • Whether the provider consumes every generated file and returns an acknowledgement.
  • Which local temporary files are retained or cleaned up.
  • Which Wayfair stores and schedules are active.
  • Whether EAN resolution covers all live catalog items.

Source locations ​

  • src/ErpBundle/Command/Wayfair/SyncOrdersCommand.php — SFTP order parsing and sale creation.
  • src/ErpBundle/Command/Wayfair/SyncInventoryCommand.php — inventory CSV generation.
  • src/ErpBundle/Services/Wayfair/WayfairService.php — SFTP connection, inventory parsing, shipment/ASN generation, and events.

Internal developer documentation for Menzzo systems.