How to use SFTP and FTPS with One Stop Order Processing for importing and exporting files

How to use SFTP and FTPS with One Stop Order Processing for importing and exporting files

Using One Stop Order Processing with Secure FTP (FTPS and SFTP)

One Stop Order Processing (OSOP) can use FTP and Secure FTP, both FTPS and SFTP. OSOP uses WinSCP to send and retrieve files.

This article explains how to set up OSOP to send and receive files.

Setting up One Stop Order Processing to import files using secure FTP

You will need to install WinSCP in the default location, C:\Program Files (x86)\WinSCP. From https://winscp.net/eng/index.php

1 Setup your import file as normal

2 Change the Order file to include the following line

{SFTP}{"C:\Program Files (x86)\WinSCP\WinSCP.exe" /log="C:\OSOP\SFTPLog.txt" /ini=nul /script="|SCRIPT|"}{C:\OSOP\Download.txt}{orders.txt}

NOTE: the last field, {orders.txt} is the file to download from the remote server

3 You need to create c:\OSOP\Download.txt file. This contains the script to run on the remote server. You need to add in the necessary security details.

An example of an FTPS server

open ftps://[LOGINNAME]:[LOGINPW]@[SERVER] -explicit -certificate="04:3f:0a:24:b3:2e:cc:bc::78:b9:1a:53:34:da:f1:5d:ac:49:70:6a:85:ff:a8:35:fa:23:cd:32:de:ca:63"
put [LOCALFILE]
exit


An example of a SFTP server

open ftps://[LOGINNAME]:[LOGINPW]@[SERVER] -hostkey="ssh-rsa 2048 WhjMMLWz0SRojjshf8LOKS64lX5h7efw1SX+K9a4="
put [LOCALFILE]
exit


NOTE: You should leave the [LOGINNAME], [LOGINPW], [SERVER] and [LOCALFILE] values as these are filled in by OSOP.

When this is run, the file C:\OSOP\SFTPLog.txt , is created. This contains the replies from the remote FTP server. This can be used to resolve any issues found.


 

Setting up One Stop Order Processing to export files using secure FTP


You will need to install WinSCP in teh default location, C:\Program Files (x86)\WinSCP. From https://winscp.net/eng/index.php

1 Setup a new export or amend an existing export.

2 At the bottom of the export dialog click on the Server Settings... button.


3 Add in the file to export to include the {SFTP} code. This will instruct OSOP to use an external program to use SFTP or FTPS. For example,

{SFTP}{"C:\Program Files (x86)\WinSCP\WinSCP.exe" /log="C:\OSOP\SFTPLog.txt" /ini=nul /script="|SCRIPT|"}{C:\OSOP\Upload.txt}{customers.csv}

NOTE: the last field, {customers.csv} is the file to upload to the remote server

4 You need to create c:\OSOP\Upload.txt file. This contains the script to run on the remote server. You need to add in the necessary security details.

An example of an FTPS server

open ftps://[LOGINNAME]:[LOGINPW]@[SERVER] -explicit -certificate="04:0f:0a:95:e9:2e:cc:bc:8b:5a:b9:1a:53:cb:da:ff:5d:ac:49:70:6a:98:2a:a8:35:fa:23:cd:52:de:ca:63"
put [LOCALFILE]
exit

An example of a SFTP server

open ftps://[LOGINNAME]:[LOGINPW]@[SERVER] -hostkey="ssh-rsa 2048 WhD3FWz0SRo8kj*umjv+x3qdS64lX5h7efw1SX+Kzas="
put [LOCALFILE]
exit


NOTE: You should leave the [LOGINNAME], [LOGINPW], [SERVER] and [LOCALFILE] values as these are filled in by OSOP.

When this is run, the file C:\OSOP\SFTPLog.txt , is created. This contains the replies from the remote FTP server. This can be used to resolve any issues found.

 



    • Related Articles

    • Using One Stop Order Processing with Amazon Files

      Using One Stop Order Processing with Amazon Files One Stop Order Processing can use files manually downloaded and uploaded with Amazon Seller Central. This includes, downloading orders, marking orders as shipped and managing stock control. Setting up ...
    • Importing your BigCommerce Products into One Stop Order Processing

      The following guide explains how you can import your BigCommerce products into One Stop Order Processing, currently, the file will need a little editing before importing but we are currently working on simplifying this process. This feature is ...
    • Importing your Channeladvisor invoice data or Order data into One Stop Order Processing

      The following article explains how to import Channeladvisor orders in One Stop Order Processing. This feature is available in the Lite, Professional, Premium and Managed subscriptions of One Stop Order Processing. If you follow the instructions below ...
    • Importing Shopify Orders into One Stop Order processing ( Lite )

      One Stop Order Processing www.1stoporders.co.uk Using Shopify with One Stop Order Processing You can import your orders from Shopify into One Stop Order Processing. For more information about One Stop Order Processing click here. For more information ...
    • How to use Stock Logging in One Stop Order Processing

      The following guide gives an overview of One Stop Order Processing's Stock Logging feature, including why it is an important feature, what its used for and how to set it up. This feature is available in the�Professional, Premium and Managed ...