Skip to main content
Inventory and ERP

VirtualStock Plugin

Connect a VirtualStock supplier as a plugin: why it needs both an API and an SFTP login, how stock and tracking come back over SFTP, sync timings and troubleshooting.

Last updated 12 days ago

Use the VirtualStock plugin when your orders are fulfilled by a supplier through VirtualStock (drop-ship). Neuro sends your orders, products and cancellations to VirtualStock, and reads the supplier's stock and dispatch information back.

If you are the supplier receiving purchase orders from a retailer on VirtualStock, use the VirtualStock Integration sales channel guide instead.

Why the plugin needs two sets of login details

VirtualStock shares information in two different ways, so the plugin needs two separate logins. Both are required.

Login

What Neuro uses it for

API username and password

Sends orders, products and order cancellations, and reads your suppliers, product categories and products.

FTP username and password (SFTP)

Reads the files the supplier's stock and dispatches are published in: stock files and dispatch (event report) files.

Why the SFTP connection matters: VirtualStock publishes stock levels and dispatch confirmations as files on its SFTP server, not through the API. Without a working SFTP connection Neuro cannot receive tracking numbers, so orders are never marked as shipped, and it cannot read the supplier's stock.

Points that often cause confusion:

  • The FTP login is not the same as your VirtualStock portal or API login. VirtualStock issues it separately.

  • You do not need your own SFTP server. Neuro connects to VirtualStock's server, so there is no host, port or folder to enter.

  • Neuro only reads files. It never uploads, moves, renames or deletes anything on the SFTP server.

  • Neuro reads the live area of your SFTP account, so VirtualStock must have the live environment set up on it.

Before you start

Ask your VirtualStock account manager for your API username and password, your SFTP (FTP) username and password, and confirmation that the live environment is set up on the SFTP account.

Installing the VirtualStock plugin

Store page with Stores in the menu, the Plugins tab and the Add Plugin button highlighted
The numbers match the steps below.

Steps shown in the screenshot:

  1. Open Stores and select your store.

  2. Open the Plugins tab.

  3. Click Add Plugin. Find the plugin in the list and click Install.

Add VirtualStock plugin form with Plugin name, Username, Password, FTP username, FTP password, Order supplier, Product supplier and Save highlighted
The numbers match the steps below.

Steps shown in the screenshot:

  1. Enter a plugin name.

  2. Enter your VirtualStock username.

  3. Enter the password.

  4. Enter the FTP username.

  5. Enter the FTP password.

  6. Choose the order supplier.

  7. Choose the product supplier.

  8. Set what to sync, then click Save.

After saving, switch the plugin to Active. The Order supplier, Product supplier and Product category lists fill in once VirtualStock returns them, so allow 3 to 5 minutes after activating, then open the plugin again and choose them.

VirtualStock settings

Setting

What it does

Username and Password

Your VirtualStock API login.

FTP username and FTP password

Your VirtualStock SFTP login, used to read stock and dispatch files. See above.

Order supplier

The VirtualStock supplier your orders are sent to.

Product supplier

The VirtualStock supplier your products are linked to.

Product category

The VirtualStock category given to products Neuro sends. Only used when Push products is on.

Use supplier part number as SKU

Matches products by the supplier part number instead of your SKU.

The general plugin settings, such as Push orders, Import products, Auto-sync stock and Push order cancellations, are explained in Plugin Settings Explained.

What Neuro does and how often

What

How

How often

Send orders

API

Every minute, when Push orders is on

Send products

API

About every 6 minutes, when pushing products is on

Import products

API

Every 5 minutes, when Import products is on

Read stock files

SFTP

Every 3 minutes, when Import products is on

Read dispatch files and add tracking

SFTP

Every 15 minutes

Send cancellations

API

About every 10 minutes, when Push order cancellations is on

Stock files

Neuro reads only the stock files published since the last one it read, oldest first, and only once VirtualStock has finished writing each file. Each part number is matched to a Neuro product with exactly the same SKU, and its free stock is saved as the product's Plugin Quantity. Part numbers that do not exist in Neuro are skipped. With Auto-sync stock on, this stock is added to your Neuro stock and sent on to your sales channels.

Dispatch files

When the supplier dispatches an order, VirtualStock adds it to an event report file. Neuro reads new event reports, matches each line to the order it sent, and creates a fulfilment with the carrier and tracking number, which marks the order as Shipped. If no carrier is given, Neuro works it out from the tracking number format. If any shipment in a file fails, Neuro reads the same files again next time; shipments already recorded are not added twice.

Checking the SFTP connection

Open the plugin and go to Logs:

  • Get product stocks runs every 3 minutes. 0 product updates file found in FTP means the connection worked and there was nothing new.

  • Update product stock shows how many stock levels each file updated.

  • Get tracking info shows each dispatch file, for example 5 tracking code found, 0 failed, 5 successful.

Troubleshooting

Message in the logs

What it means and what to do

FTP login failed or FTP connection error

The FTP username or password is wrong, or the SFTP account is disabled. Check the details with VirtualStock, update them on the plugin and save.

Failed to change directory to [live]

The login worked but the account has no live folder. Ask VirtualStock to set up the live environment on your SFTP account.

Failed to list files in [...] directory on FTP server

The stock or event report folder is missing on the SFTP account. Ask VirtualStock to check the account set-up.

Tracking found but some failed

The log lists the courier names that failed. Check courier mapping, or contact Neuro Support.

Orders sent but never marked as shipped

Check Get tracking info in the logs. A login or folder error means the SFTP details must be fixed before tracking can come through.

For more help, contact the Neuro Support Team.