Integrationswayfair - castlegate integration

Wayfair & CastleGate Integration for Linnworks

End-user documentation for installing, configuring, operating, and troubleshooting the Wayfair Dropship, CastleGate, and Wayfair Multi-Channel Fulfilment integration with Linnworks.

Overview

The Wayfair & CastleGate Integration connects Linnworks with Wayfair Dropship, CastleGate, and Wayfair Multi-Channel Fulfilment. It automates inbound order import, product and inventory synchronisation, outbound 3PL fulfilment, shipment updates, cancellations, and operational auditing.

Architecture at a glance

Once installation and configuration are complete, the scheduled workflows run automatically. Manual actions are normally needed only for configuration, mapping, validation errors, or support investigation.


Integration Scope

The integration supports four main operational areas.


Before You Start

Make sure the following information and access are available.

RequirementWhy it is needed
Permission to install an application in LinnworksRequired to authorise the integration for the Linnworks account
Wayfair Client IDUsed to obtain access to Wayfair APIs
Wayfair Client SecretUsed with the Client ID for Wayfair authentication
Wayfair Supplier IDRequired for Dropship, CastleGate, and fulfilment API requests
Intended Wayfair environmentChoose Sandbox for testing or Production for live operations
Linnworks postal servicesRequired when mapping dispatch services to Wayfair carrier and ship-speed values
Valid Linnworks item SKUsRequired for product, inventory, and 3PL fulfilment matching
Installation and portal addressesSupplied by your implementation administrator

Start in Sandbox and complete an end-to-end test before enabling the Production environment.


Installation Guide

Use the installation address supplied by your administrator. The exact Linnworks screens can vary, but the integration workflow is the same.

Steps to Install

Install the application in Linnworks

  1. Open the supplied application installation address.
  2. Sign in to the Linnworks account that will own the integration.
  3. Review the requested application access.
  4. Approve and install the application.

Linnworks sends an installation token to the integration. The integration uses that token to authorise the account and record its Linnworks email, username, user ID, and API server.

Reinstallation and Uninstallation


Configuration Reference

Required Wayfair Settings

SettingRequiredDescription
Wayfair Client IDYesClient ID from Wayfair application management
Wayfair Client SecretYesClient secret paired with the Wayfair Client ID
Wayfair Supplier IDYesSupplier identifier used by Dropship, CastleGate, and fulfilment requests
Wayfair EnvironmentYesSandbox for testing or Production for live processing
Is Wayfair Order SyncYesEnables or disables Wayfair Dropship order import

Optional 3PL Feature Toggles

SettingWhat it controls
Enable 3PL Order SyncEnables Linnworks-to-Wayfair Multi-Channel Fulfilment order processing. The current integration also uses this setting when scheduling CastleGate purchase-order import.
Enable 3PL Order CancellationEnables automatic processing of eligible Linnworks cancellations in Wayfair
Enable 3PL Order Dispatch SyncEnables Wayfair fulfilment status checks and processes shipped fulfilment orders in Linnworks

Saving the configuration confirms that required values are present. Always validate the credentials and mappings with a real Sandbox workflow before switching to Production.


Shipping Service Mappings

Shipping mappings translate the Linnworks postal service on an order into the carrier and service information expected by Wayfair.

Create a Mapping

Step 1 - Select the integration

Open Service Mappings in the portal and select the relevant integration.

Step 2 - Select the Linnworks service

Choose the exact Linnworks postal service. The integration validates that the service ID, name, and optional vendor match the values held in Linnworks.

Step 3 - Select Wayfair values

Enter the Wayfair carrier SCAC code and select a supported Wayfair ship speed, such as GROUND, NEXT_DAY, or another value appropriate to the service.

Step 4 - Activate and save

Leave the mapping active and save it. An identical mapping cannot be created twice. Multiple Linnworks postal services may use the same Wayfair carrier and ship-speed combination.

Inactive or missing mappings can prevent dispatch information from being translated correctly. Review mappings whenever Linnworks postal services change.


How Wayfair Orders Reach Linnworks

The inbound channel workflow covers both Wayfair Dropship orders and CastleGate purchase orders.

The integration checks Wayfair every 5 minutes when Is Wayfair Order Sync is enabled.

It requests recent, unresponded Dropship orders, stores new orders in the queue, and ignores orders already recorded for that integration. The implemented lookback window is the previous two days, with up to 100 orders requested per batch.

Inbound Order Sequence

Step 1 - Fetch

The scheduler requests eligible Wayfair Dropship or CastleGate orders for the active integration.

Step 2 - Deduplicate and queue

The integration checks the Wayfair order or purchase-order reference and stores only new records.

Step 3 - Linnworks creates the order

Linnworks retrieves pending channel orders and creates them using the mapped order, customer, address, item, and shipping data.

Step 4 - Verify

The integration confirms that the sent record exists in Linnworks and records the verified state.


Dispatch, Cancellation, and Refunds

Linnworks can call the channel integration for post-order actions on Wayfair Dropship orders.

When a Linnworks order is dispatched, the integration:

  1. Resolves the Wayfair order using the Linnworks reference
  2. Validates the Wayfair purchase order and Supplier ID
  3. Maps the Linnworks postal service to a Wayfair carrier and ship speed
  4. Sends shipment, package, carrier, service, and tracking details to Wayfair
  5. Records the completed or failed operation with audit details

Missing order references, purchase-order data, supplier configuration, service mappings, or tracking information can cause the operation to fail.


Product Catalogue and Dropship Inventory

Wayfair Products to Linnworks

Step 1 - Fetch supplier catalogue

Every 5 hours, the integration retrieves the Wayfair supplier catalogue in pages and updates its local product records.

Step 2 - Update product state

Active products remain available to Linnworks. Archived products are retained with an archived status. Previously stored products that disappear from the Wayfair response are marked DeletedInWayfair.

Step 3 - Linnworks retrieves active products

Linnworks can request active products from the channel integration in pages of up to 500.

Linnworks Inventory to Wayfair

When Linnworks submits an eligible inventory change, the integration creates an inventory operation and sends the new quantity to Wayfair.

EnvironmentInventory behavior
SandboxUses a TRUE_UP request in dry-run mode for testing
ProductionUses a DIFFERENTIAL inventory update for live processing

The operation can finish immediately or remain SubmittedToWayfair when Wayfair accepts it for asynchronous processing.

Current limitation: Direct product price updates are not supported. The implemented Wayfair product update flow does not expose a catalog price field, so price-update operations fail with an explicit unsupported-operation message.


Wayfair Multi-Channel Fulfilment Workflow

This workflow sends eligible Linnworks orders to Wayfair for 3PL fulfilment.

Step 1 - Find eligible Linnworks orders

When Enable 3PL Order Sync is active, the integration checks Linnworks open orders assigned to the mapped CastleGate 3PL fulfilment location.

Step 2 - Validate the order

Before submission, the integration confirms:

  • One active integration is available for the installation
  • The Wayfair Supplier ID is configured
  • The order contains at least one item
  • A shipping address is present
  • Address line 1, town or city, postcode, and country are present
  • Every item can provide a supplier part number

Step 3 - Map the fulfilment request

The integration maps customer, delivery address, shipping, totals, tax, and line-item data to a Wayfair fulfilment request.

For each item, the supplier part number is selected in this order:

  1. Linnworks Channel SKU
  2. Linnworks SKU
  3. Linnworks Item Number

Step 4 - Create the Wayfair fulfilment order

Valid orders are submitted to Wayfair Multi-Channel Fulfilment. The Wayfair fulfilment request identifier and response details are stored against the queue record.

Step 5 - Mark the Linnworks order

After a successful submission, the integration assigns the Linnworks identifier:

Sent to WayfairCastleGate

This identifier allows users and scheduled jobs to recognise an order already sent for fulfilment.

Step 6 - Process shipment back in Linnworks

When Wayfair reports the fulfilment as SHIPPED and tracking data is available, the integration updates the Linnworks shipping information and processes the Linnworks fulfilment-centre order. The queue then becomes ProcessedInLinnworks.


Fixing a Validation-Failed 3PL Order

When an outbound fulfilment order fails validation, the integration:

  • Sets its queue state to ValidationFailed
  • Assigns Error from WayfairCastleGate to the Linnworks order
  • Adds an internal Linnworks note containing the validation errors
  • Excludes the order from automatic submission until it is corrected

Correct and Retry the Order

Step 1 - Open the Linnworks order

Find the order carrying the Error from WayfairCastleGate identifier.

Step 2 - Read the internal note

Review the exact validation messages added by the integration. Common causes include an incomplete shipping address, no order items, a missing Supplier ID, or an item without a usable supplier part number.

Step 3 - Correct the data

Update the Linnworks order, item, address, mapping, or integration configuration identified in the note.

Step 4 - Remove the error identifier

Remove Error from WayfairCastleGate from the Linnworks order after the correction is complete.

Step 5 - Allow the order to be fetched again

On the next fetch cycle, the integration re-reads the corrected order and can move it to ReadyForRetry. An authorised portal user can also use an appropriate manual fetch or retry action.

Step 6 - Confirm success

Verify that the queue reaches Completed, the Wayfair fulfilment reference is present, and Linnworks carries Sent to WayfairCastleGate.

Do not remove the error identifier before correcting the order. Otherwise, the same validation failure will be recorded again.


3PL Cancellation and Shipment Processing

When Enable 3PL Order Cancellation is active, the integration detects eligible Linnworks cancellations and submits a cancellation request for the corresponding Wayfair fulfilment order.

Results are stored as Cancelled, NotCancellable, AlreadyCancelled, or Failed. Failed cancellation requests are limited by the configured retry count.


CastleGate Inventory to Linnworks

The CastleGate inventory workflow updates stock at the mapped CastleGate 3PL Linnworks location.

Step 1 - Read CastleGate inventory

The integration retrieves all CastleGate inventory-summary pages. Only records containing a supplier part number and CastleGate inventory data are considered.

Step 2 - Calculate fulfilment stock

Fulfillable quantities are added together across all CastleGate warehouses for the supplier part number.

Step 3 - Match Linnworks SKU

The supplier part number must match a Linnworks SKU exactly. Missing Linnworks SKUs are skipped and recorded in the audit output.

Step 4 - Update the fulfilment location

Matching quantities are written to the CastleGate 3PL location in batches of up to 50. The Linnworks change source is recorded as Wayfair CastleGate 3PL Sync.

Step 5 - Record the result

The inventory audit records fetched, matched, skipped, updated, and failed counts. A failed update batch does not prevent the remaining batches from being attempted.

The CastleGate inventory job is designed to run every 6 hours once its per-integration scheduler is enabled.


Automation Schedule

All scheduler times are defined in UTC. Per-integration jobs run only when the installation is active and the required feature setting is enabled.

WorkflowNormal schedule
Wayfair Dropship order fetchEvery 5 minutes
CastleGate purchase-order fetchEvery 10 minutes
Linnworks 3PL order fetchEvery 5 minutes
Send 3PL orders to WayfairEvery 5 minutes, staggered 2 minutes after fetch
Cancel eligible 3PL ordersEvery 5 minutes, staggered after send
Sync shipped Wayfair fulfilments to LinnworksEvery 5 minutes, staggered after cancellation
Wayfair supplier-catalog product fetchEvery 5 hours
Verify inbound orders in LinnworksHourly
Discover or refresh per-integration jobsHourly
CastleGate inventory to LinnworksEvery 6 hours when the inventory job is enabled
Subscription checkSunday at 02:00 UTC
Linnworks order-identifier syncDaily at 03:00 UTC

A schedule indicates when a job becomes eligible to run. API response time, queue size, feature settings, subscription state, and worker availability can affect the exact completion time.


Multi-Tenant Access and Subscription Control

Each Linnworks installation is handled as a separate tenant with its own token, Wayfair credentials, settings, fulfilment location, queues, mappings, and audit data.

Portal Roles

Subscription States

StatusEffect
ActiveScheduled and user-initiated integration processing is allowed
SuspendedBySubscriptionProcessing is paused because the Linnworks application profile is inactive or unavailable; the weekly check can restore it automatically
SuspendedByAdminProcessing is paused until an administrator changes the status
ExemptedByAdminProcessing remains allowed and the automated subscription check does not change the status

The outbound 3PL workflow expects exactly one active integration for an installation. Remove duplicate active configurations before processing fulfilment orders.


Support Portal

The authenticated portal provides operational visibility across the integration.

What Users Can Review

Information to Collect for Support

Before escalating an issue, collect:

  • Installation email or installation ID
  • Integration ID
  • Linnworks order ID and order reference
  • Wayfair purchase-order or fulfilment request ID
  • Current queue status
  • Exact error text
  • Correlation ID
  • UTC timestamp of the failed attempt

Never send Client Secrets, installation tokens, passwords, or full authentication headers in a support message.


Lifecycle Status Reference

StatusMeaning
PendingStored by the integration and waiting for Linnworks retrieval
SentToLinnworksReturned to Linnworks through the channel order feed
VerifiedInLinnworksConfirmed in Linnworks open orders

Common Validation Errors

Error or symptomLikely causeRecommended action
Installation authorisation failsEmpty, invalid, expired, or unregistered Linnworks tokenRe-open the approved Linnworks installation flow and contact the administrator with the correlation ID
Active installation exists with another tokenA previous uninstall was not registeredComplete or repair the uninstall before reinstalling
No active integration foundConfiguration is incomplete, inactive, or not linked to the installationComplete the wizard and confirm one active integration
Multiple active integrations foundDuplicate active configurations exist for one installationAsk an administrator to retain only the intended active integration
Supplier ID missingWayfair Supplier ID was not savedUpdate the integration configuration
CastleGate 3PL location missingLocation was renamed, deleted, or was not mapped during installationRestore the exact location or ask an administrator to rerun location setup
Order has no itemsLinnworks order contains no usable order linesAdd or correct the order items
Shipping address incompleteAddress line 1, town or city, postcode, or country is emptyCorrect the Linnworks delivery address
Supplier part number missingItem has no Channel SKU, SKU, or Item NumberPopulate at least one supported item identifier
Postal service mapping failsSubmitted service details do not exactly match LinnworksRefresh the Linnworks services and select the exact service, name, and vendor
Dispatch cannot resolve carrier or speedNo active service mapping existsCreate or activate the correct postal-service mapping
Shipped order cannot processTracking data is absent or incompleteConfirm tracking in Wayfair and inspect the status-sync audit
CastleGate inventory SKU skippedSupplier part number does not exactly match a Linnworks SKUCorrect the SKU relationship in the source systems
Product price update failsDirect price updates are unsupportedMaintain price through the approved process outside this integration
Manual selection rejectedMore orders were selected than the configured on-demand limitSelect a smaller batch and retry

Troubleshooting


Reliability and Auditability


Best Practices


Frequently Asked Questions

Is the integration fully automatic?

Yes, after installation, configuration, service mapping, and scheduler setup. Manual intervention is still required for validation errors, unsupported data, expired credentials, suspended subscriptions, or exhausted retry limits.

Which orders are sent from Linnworks to Wayfair fulfilment?

The outbound 3PL job reads eligible open orders from the mapped CastleGate 3PL fulfilment location when Enable 3PL Order Sync is active.

How do I retry a validation-failed 3PL order?

Read the Linnworks internal note, correct the order, remove Error from WayfairCastleGate, and wait for the next fetch cycle or use an authorised manual action.

Why does an order have Sent to WayfairCastleGate?

The identifier means Wayfair accepted the outbound fulfilment request. It prevents the order from being treated as a new unsent order during normal processing.

Why is a shipped order still open in Linnworks?

Check that dispatch sync is enabled, Wayfair reports SHIPPED, and tracking data is present. Missing tracking data prevents the Linnworks fulfilment-centre processing step.

Can the integration update Wayfair prices?

No. The current implementation explicitly rejects direct product price updates because the supported product update flow does not provide a catalog price field.

Does Sandbox change live Wayfair inventory?

No. Sandbox inventory submissions use dry-run behavior. Use Sandbox to validate payloads and workflow without relying on a live stock change.

What happens when the subscription is suspended?

Protected integration workflows stop for that installation. A subscription-based suspension can be restored automatically by the weekly check after Linnworks reports the application profile as active. An administrator must change an admin-controlled suspension.

Can one portal user see another Linnworks installation?

Client users are restricted to their associated installation. Admin users can access all installations for support and management.

What should I do if I forget my password?

Contact an administrator. Password reset is an admin-controlled action that creates and emails a new temporary password.


Summary

The integration provides a structured and auditable connection between Linnworks and the Wayfair ecosystem, covering the complete path from order capture and product data through fulfilment, dispatch, cancellation, and inventory updates.