To send Shopify orders to a 3PL that works with files, run a scheduled workflow that collects your paid, unfulfilled orders, writes them to a CSV in the column layout your 3PL specifies, and saves that file to their SFTP server's inbound folder. Then tag each order so it's never sent twice, and read the 3PL's shipment file back so every order gets its tracking number in Shopify. Shopify can export orders to CSV, but only by hand from the Orders page, so the scheduling, the upload and the tracking write-back are the parts you automate.

This guide is for stores whose warehouse, 3PL, ERP or fulfillment partner says "drop a file on our SFTP server" rather than "install our Shopify app". It covers what to agree with the 3PL before you build, the outbound order file, the inbound tracking file, and the mistakes that cause most failed file feeds.

TL;DR: there's a template for that

Send Shopify Orders to Your 3PL as a CSV on SFTP Plenty of 3PLs, warehouses and ERPs don't connect to Shopify directly. They pick up an order file from an SFTP folder on a schedule. This workflow builds that file for you: every hour it collects your paid, unfulfilled Shopify orders that haven't been sent yet, saves them as a timestamped CSV on your FTP or SFTP server, and tags each order so it is never sent twice.

When a CSV over SFTP is the right way to send orders

If your 3PL has a Shopify app that registers as a fulfillment service, use it: orders, inventory and tracking then flow without any file in between. Our guide to syncing Shopify inventory with a 3PL covers that route and what to check before you trust it.

A file feed is the right choice when:

  • Your 3PL, regional warehouse or contract packer has no Shopify app, or their app doesn't support your setup (multiple stores, B2B orders, kitting).
  • The partner runs a warehouse management system or ERP that imports orders from a folder on a schedule, which is common with smaller and specialist 3PLs.
  • Your accountant or ERP also wants the same order file, and one export can serve both.

Shopify's own Export button doesn't solve this on its own. It's a manual action on the Orders page, and larger exports arrive by email rather than as a download:

"If you select to export more than 51 orders or to export orders by date, then the CSV file is emailed to you and the store owner."Shopify Help Center, Exporting orders

Someone would then have to download that email attachment, reformat it to the 3PL's layout, and upload it, several times a day. That's the job to hand to a workflow.

Agree on the file before you build

Most broken order feeds fail on the file, not the transfer. Get these answers from your 3PL in writing, ideally with a sample file:

  • Connection: host, port (SFTP is usually 22), username, password or SSH key, and the exact inbound folder path.
  • Columns: the header names, their order, and which are required. Shopify's own export puts each extra line item on its own row and leaves many order-level fields blank on those rows; most 3PLs instead want the ship-to address repeated on every line.
  • Identifiers: which field carries the order number (send Shopify's order name, such as #1042, so tracking can be matched back), and whether they match products by SKU or barcode.
  • Formats: date format, country codes (US or United States), and how to map your Shopify shipping methods to their service levels.
  • File naming and timing: one file per batch or per order, a naming pattern (orders-20261201-0900.csv is a safe default, since a timestamp never collides), and their pickup times.
  • The return file: where they write shipment confirmations, and which columns hold the order number, carrier and tracking number.

Make sure every SKU in Shopify matches the SKU in the 3PL's system exactly. A missing or mistyped SKU is the most common reason a 3PL rejects an order line.

The outbound order file: Shopify to your 3PL

Diagram of a two-way 3PL file exchange: every hour, paid unfulfilled Shopify orders are saved as a CSV on the 3PL's SFTP inbound folder and tagged sent-to-3pl; when the 3PL ships, each new row in its shipment file is matched to the Shopify order and fulfilled with the tracking number

In MESA, the outbound workflow has five steps:

  1. Trigger: Schedule. Hourly works for most stores. If the 3PL collects at fixed times (say 9am, 1pm and 4pm), run just before each pickup.
  2. Shopify: Get List of Orders. Collect open orders that are paid, unfulfilled, and don't have a sent-to-3pl tag.
  3. Filter. Stop if nothing was found, so the 3PL never receives an empty file.
  4. FTP: Save FTP file. Write the orders as CSV in the 3PL's layout, one row per line item, and save it to their inbound folder with a timestamped name. MESA's FTP connection supports both FTP and SFTP; choose SFTP, since the file carries customer names, addresses and phone numbers.
  5. Loop, then Shopify: Order Add Tag. Tag every order that went into the file with sent-to-3pl. The next run skips it, and your team can filter the Orders page by that tag to see what the warehouse has.

The tag is what makes this safe to run every hour. To resend an order (say, after fixing an address), remove the tag and it goes out in the next file.

Send Shopify Orders to Your 3PL as a CSV on SFTP Plenty of 3PLs, warehouses and ERPs don't connect to Shopify directly. They pick up an order file from an SFTP folder on a schedule. This workflow builds that file for you: every hour it collects your paid, unfulfilled Shopify orders that haven't been sent yet, saves them as a timestamped CSV on your FTP or SFTP server, and tags each order so it is never sent twice.

Only send the orders your 3PL ships

Pre-orders, digital products, wholesale orders and anything you ship from your own shelves shouldn't reach the file. Add a filter on product tag, vendor, or the order's assigned fulfillment location before the save step. If you split orders between several warehouses, design that routing first; multi-vendor and 3PL order routing walks through the patterns, including mixed-cart orders.

Batch file or one file per order?

A batch file every hour is simpler for most warehouses to process and gives you one place to look when something goes wrong. Some systems prefer one file per order. For that, swap the schedule for a Shopify Order Paid trigger and save one file per order, named with the order number.

The inbound tracking file: your 3PL back to Shopify

Sending orders is half the job. Until the order is fulfilled in Shopify, your customer gets no shipping confirmation and the order stays open. Most file-based 3PLs write a shipment file to an outbound folder on the same server. A second workflow reads it:

  1. Trigger: FTP Fetch CSV File Row Created. Runs once for each new row in the 3PL's shipment file.
  2. Shopify: Get List of Orders. Find the order whose name matches the order number in the row.
  3. Filter. Skip rows whose order isn't found or is already fulfilled, so a re-sent file doesn't create duplicate fulfillments.
  4. Shopify: Create Order Fulfillment. Fulfill the order's open line items with the carrier and tracking number from the row, with customer notification turned on so Shopify sends its shipping email.

Add Tracking to Shopify Orders From a 3PL CSV on SFTP When your 3PL ships an order, it often drops a shipment file on an FTP or SFTP server instead of updating Shopify. This workflow reads each new row in that file, finds the matching Shopify order, and creates the fulfillment with the carrier and tracking number, so your customer gets Shopify's shipping notification and the order closes on its own.

What usually goes wrong, and how to catch it

  • A column changes. Either side renames a header or changes a date format, and the 3PL's import silently skips rows. Keep the agreed sample file and compare against it whenever either system changes.
  • Orders edited after they're sent. An address change or an added item after the order went out won't reach the warehouse on its own. Ask your team to remove the sent-to-3pl tag and message the 3PL when they edit a sent order, or add a workflow on Shopify's Order Updated trigger that alerts the warehouse for tagged orders.
  • Tracking never comes back. Once a day, look for orders tagged sent-to-3pl that are still unfulfilled after your 3PL's normal shipping time, and send that list to Slack or email.
  • Credentials expire. SFTP passwords and keys get rotated. MESA's run log shows a failed connection on the first run after it happens, so check it or turn on failure alerts.

For the wider set of file and spreadsheet feeds a store runs (supplier inventory files, scheduled product exports, order logs in Google Sheets), see our guide to Shopify data sync. If you haven't connected a server to MESA yet, start with setting up Shopify FTP and SFTP access.

FAQs

How do I send Shopify orders to my 3PL as a CSV over SFTP?

Run a scheduled workflow that gets your paid, unfulfilled Shopify orders, writes them as a CSV in your 3PL's column layout, saves the file to their SFTP inbound folder, and tags each order as sent so it isn't sent again. Shopify's admin only exports orders by hand, so the schedule and the upload need an automation tool such as MESA.

Does Shopify support SFTP?

Shopify doesn't give merchants FTP or SFTP access to their store, and its order export is a manual download or email from the Orders page. Moving files to or from an SFTP server takes an app or automation tool that connects to both.

How do I stop orders being sent to the 3PL twice?

Tag each order after it goes into a file, and only collect orders without that tag. A timestamp in each file name also stops a new file from overwriting one the 3PL hasn't picked up yet.

How do tracking numbers get back into Shopify?

Have the 3PL write a shipment file with the Shopify order number, carrier and tracking number on each row. A workflow reads each new row, finds the matching order, and creates the fulfillment with that tracking number, which triggers Shopify's shipping confirmation email.