Integrationswayfair - castlegate integration

Wayfair & CastleGate Integration via Rishvi Services

A secure, scalable, API-driven integration that automates order, fulfilment, shipment, cancellation, product, and stock workflows between Linnworks and Wayfair, including CastleGate and Wayfair Multi-Channel Fulfilment.

Overview

The Wayfair & CastleGate Integration, powered by Rishvi Services, connects Linnworks with Wayfair Dropship, CastleGate, and Wayfair Multi-Channel Fulfilment. Rishvi Services acts as a secure, API-driven integration layer between the systems, handling inbound order import, outbound fulfilment, cancellations, shipment updates, product synchronisation, stock updates, and operational auditing.

Architecture at a glance

Once configured, the integration runs automatically. Manual intervention is normally required only for configuration, service mapping, validation errors, suspended subscriptions, or support investigation.


Integration Scope

The integration covers four key areas of the order and fulfilment workflow.


Installation Guide

Follow these steps to install and configure the Wayfair CastleGate channel in Linnworks.

Steps to Install

Open Channel Integrations

  1. Sign in to your Linnworks account.
  2. Select Settings from the left-hand navigation menu.
  3. Under Settings, select Channel integration.
  4. On the Channel Integrations page, click Add New.

The Add Channel window opens.

How Orders Are Fulfilled

When an eligible order is available in Linnworks, the integration follows a defined sequence to submit it to Wayfair Multi-Channel Fulfilment.

Step 1 - Tenant configuration validation

Rishvi Services confirms that one active integration exists for the Linnworks installation, Enable 3PL Order Sync is active, the Wayfair Supplier ID is configured, and the order is assigned to the mapped CastleGate 3PL fulfilment location.

Step 2 - Order data mapping

The integration validates and maps the Linnworks order to the Wayfair fulfilment request. Required data includes:

  • Customer information - name and contact details
  • Delivery address - address line 1, town or city, postcode, and country
  • Shipping information - the applicable Linnworks postal service and mapped Wayfair values
  • SKUs - the supplier part number selected from Channel SKU, Linnworks SKU, then Item Number
  • Quantities and totals - ordered quantities, totals, and applicable tax data

Step 3 - Order submission to Wayfair

Valid orders are submitted to Wayfair Multi-Channel Fulfilment. The integration records the Wayfair fulfilment request identifier, request result, processing state, and audit details.

Step 4 - Order linkage stored

A link is retained between the Linnworks order, the integration queue record, and the Wayfair fulfilment reference. This linkage is used for deduplication, cancellation, status checks, shipment processing, and support investigation.

Step 5 - Linnworks order updated

After Wayfair accepts the request, the integration assigns ``` to the Linnworks order. If validation fails, it assigns `` and adds an internal note containing the validation errors.

Wayfair Dropship orders and CastleGate purchase orders also flow inbound to Linnworks. They are fetched, deduplicated, queued, returned through the Linnworks channel order feed, and verified in Linnworks.


Order Cancellation

If an outbound fulfilment order must be cancelled before Wayfair ships it, the integration provides cancellation handling.

Cancellation Handling

When Enable 3PL Order Cancellation is active, Rishvi Services detects eligible Linnworks cancellations and uses the stored order linkage to submit a cancellation request for the corresponding Wayfair fulfilment order. Results are stored as Cancelled, NotCancellable, AlreadyCancelled, or Failed. Failed cancellation requests are retried only within the configured retry limit.

Cancellation depends on the order still being cancellable in Wayfair. Once Wayfair reports the fulfilment as shipped or otherwise not cancellable, shipment processing applies instead.


Shipment Tracking Updates

After Wayfair fulfils an order, Rishvi Services checks the fulfilment status and updates Linnworks with the latest shipment information.

When Enable 3PL Order Dispatch Sync is active, the integration checks Wayfair fulfilment statuses on a staggered five-minute cycle. Each result is recorded with timestamps, queue history, audit information, and a correlation ID.


Stock Synchronisation

Stock is synchronised in both directions: eligible Linnworks inventory changes are submitted to Wayfair, while CastleGate fulfilment stock updates the mapped Linnworks location.

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

EnvironmentInventory behaviour
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 Wayfair price updates are not supported because the implemented product update flow does not expose a catalogue price field.


Multi-Tenant Configuration

The integration supports multiple Linnworks installations from one platform. Each installation is treated as an independent tenant with isolated configuration and operational data.

Per-Tenant Configuration

Configuration AreaDescription
Linnworks InstallationInstallation token, account details, application state, and associated portal users
Wayfair CredentialsClient ID, Client Secret, Supplier ID, and selected Sandbox or Production environment
CastleGate 3PL LocationDedicated Linnworks fulfilment location used for outbound orders and CastleGate stock
Shipping Service MappingsLinnworks postal service mapped to the Wayfair carrier SCAC and ship-speed values
Feature TogglesControls Dropship order import, 3PL order sync, cancellation, and dispatch sync
Queues and Audit DataTenant-specific inbound orders, fulfilment requests, cancellations, product operations, API logs, and correlation IDs
Subscription StateControls whether protected scheduled and manual workflows can run

Multi-Tenant Benefits


Production-Readiness Features

Automation Schedule

All scheduler times are defined in UTC.

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-catalogue product fetchEvery 5 hours
Verify inbound orders in LinnworksHourly
CastleGate inventory to LinnworksEvery 6 hours when enabled
Subscription checkSunday at 02:00 UTC
Linnworks order-identifier syncDaily at 03:00 UTC

Support Portal

The support portal provides operational visibility and controlled management tools for the integration.

What Support Users Can Do

Before escalating an issue, collect the installation ID or email, integration ID, Linnworks order ID and reference, Wayfair purchase-order or fulfilment request ID, current queue status, exact error text, correlation ID, and UTC timestamp.


Order Lifecycle

Orders use different status groups depending on whether they are inbound to Linnworks or outbound to Wayfair fulfilment.

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

Lifecycle flow

Pending

An eligible Linnworks order assigned to CastleGate 3PL is identified and queued for outbound fulfilment.

Validating

Tenant settings, address data, order lines, supplier identifiers, and other required fields are validated and mapped.

Completed or ValidationFailed

If Wayfair accepts the request, the queue reaches Completed, the fulfilment reference is stored, and Linnworks receives Sent to WayfairCastleGate. If validation fails, the queue becomes ValidationFailed and Linnworks receives an error identifier and note.

ProcessedInLinnworks

When Wayfair reports SHIPPED with tracking data, shipping information is updated and the fulfilment-centre order is processed in Linnworks.

Cancelled (if applicable)

If a supported cancellation is accepted before shipment, the cancellation state becomes Cancelled.


Validation Errors and Common Causes

Validation ErrorCause
Installation authorisation failsLinnworks token is empty, invalid, expired, or unregistered
Active installation exists with another tokenA previous uninstall was not registered before reinstallation
No active integration foundConfiguration is incomplete, inactive, or not linked to the installation
Multiple active integrations foundDuplicate active configurations exist for one installation
Supplier ID missingThe Wayfair Supplier ID was not saved
CastleGate 3PL location missingThe location was renamed, deleted, or not mapped during installation
Order has no itemsThe Linnworks order contains no usable order lines
Shipping address incompleteAddress line 1, town or city, postcode, or country is missing
Supplier part number missingAn item has no Channel SKU, Linnworks SKU, or Item Number
Shipping service mapping missingNo active mapping exists for the Linnworks postal service
Shipped order cannot processCarrier, service, or tracking data is absent or incomplete
CastleGate inventory SKU skippedSupplier part number does not exactly match a Linnworks SKU
Order already submittedThe order already carries the success identifier or an existing fulfilment linkage

Correct a Validation-Failed Order

  1. Open the Linnworks order carrying ```.
  2. Read the internal Linnworks note and identify every validation error.
  3. Correct the order, item, address, mapping, or integration configuration.
  4. Remove ``` only after all corrections are complete.
  5. Allow the next fetch cycle to reload the order, or use an authorised manual action.
  6. Confirm that the queue reaches Completed, a Wayfair fulfilment reference is present, and Linnworks carries ```.

Troubleshooting Guide

Orders are not importing

Symptom: Wayfair Dropship or CastleGate orders do not appear in Linnworks.

Likely cause: The installation is inactive, the subscription is suspended, the relevant order-sync feature is disabled, or Wayfair credentials or Supplier ID are missing.

Resolution: Verify installation and subscription state, confirm the relevant feature setting, and review inbound order and API audit logs.

3PL orders are not sending

Symptom: An eligible Linnworks order remains unsent.

Likely cause: 3PL order sync is disabled, multiple integrations are active, the order is not assigned to CastleGate 3PL, or required address or item data is missing.

Resolution: Confirm one active integration, enable 3PL order sync, verify the fulfilment location, and correct the order data.

Order shows ValidationFailed

Symptom: Linnworks carries Error from WayfairCastleGate and the order is excluded from automatic submission.

Likely cause: The order, item, address, mapping, or tenant configuration failed validation.

Resolution: Read the Linnworks internal note, correct every issue, remove the error identifier, and allow the order to be fetched again.

Shipment tracking not updating in Linnworks

Symptom: A Wayfair fulfilment is shipped but the Linnworks order remains open or lacks tracking details.

Likely cause: Dispatch sync is disabled, Wayfair has not reported SHIPPED, or carrier or tracking data is incomplete.

Resolution: Confirm dispatch sync, inspect the Wayfair status, and review the queue error, API log, and correlation ID.

Stock levels are out of sync

Symptom: CastleGate fulfilment stock does not match the CastleGate 3PL Linnworks location.

Likely cause: The location was renamed or unmapped, the SKU does not match exactly, or the inventory job is disabled or failed.

Resolution: Restore the location mapping, correct the SKU relationship, confirm scheduling, and review inventory audit counts and errors.

Login or password problem

Symptom: A user cannot access the integration portal.

Likely cause: The wrong email is being used, the user or installation is inactive, or the temporary password has expired or been lost.

Resolution: Use the Linnworks installation email, verify account activity, and ask an administrator to issue a password reset.


Deliverables


Best Practices

Consistent configuration, exact identifiers, and regular monitoring are essential for a reliable Wayfair and CastleGate integration.


FAQ

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 carrier and tracking data are present. Missing tracking data prevents the Linnworks fulfilment-centre processing step.

Can I cancel an order after it has been submitted to Wayfair?

Yes, if cancellation sync is enabled and Wayfair still considers the order cancellable. If Wayfair reports NotCancellable or the order is already shipped, normal shipment processing applies.

Can the integration update Wayfair prices?

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

Does Sandbox change live Wayfair inventory?

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

Can the same integration support multiple Linnworks accounts?

Yes. Each Linnworks installation is handled as an independent tenant with separate credentials, settings, queues, mappings, audit data, and portal access.

What happens when the subscription is suspended?

Protected workflows stop for that installation. A subscription-based suspension can be restored automatically after the scheduled check confirms that the Linnworks application profile is active. An administrator must change an admin-controlled suspension.

I installed the app but cannot see it in Linnworks. What should I do?

Open Apps > My Applications, refresh the page, or sign out and back in. If the app is still missing, confirm that the authorised Linnworks installation flow completed successfully.

I cannot sign in to the Wayfair & CastleGate Integration portal. What should I do?

Use the email address associated with the Linnworks installation and the portal password supplied or reset for that account. Portal credentials are separate from Wayfair and Linnworks credentials. Contact an administrator if a password reset is required.


Please review these pages to understand how data is handled and the terms governing use of the integration.


Summary

The Linnworks ↔ Wayfair & CastleGate Integration, powered by Rishvi Services, provides a structured and auditable connection between Linnworks and the Wayfair ecosystem.

For issues that cannot be resolved automatically, the support portal provides the error details, correlation IDs, queue state, and controlled actions needed to diagnose and correct the problem.