The FTP Seller channel connector imports orders from files on your own FTP, FTPS, or SFTP server, and writes fulfillment files back to it. It can also import and export products and inventory. Files can be CSV, XML, or JSON. This article explains the two CSV layouts for orders that have more than one line item.
Connect your FTP server
To set up the connection, folders, and order import, follow FTP Seller Connector. You choose the file layout in the Import/Export File Type field when you connect. To change it later, open the integration, go to the Connection Details tab, change Import/Export File Type, and click Save.
The Import/Export File Type options are:
- CSV (Unwind): one row per line item.
- CSV (Flatten): one row per order, with numbered columns for each line item.
- XML
- JSON (default)
The file type applies to every file the integration reads and writes, including fulfillment, product, and inventory files.
CSV order layouts
Both layouts use Pipe17 field names as column headers, for example extOrderId, shippingAddress.city, and lineItems.sku. Sample files for both layouts, order-unwind.csv and order-flat.csv, are attached to this article.
Unwind
Each line item is on its own row. Repeat the order columns, such as extOrderId and the shipping address, on every row of the order. Line item columns have no number, for example lineItems.sku and lineItems.quantity.
- The app combines rows with the same
extOrderIdinto one order. Keep the rows of each order next to each other in the file. - Order-level values are read from the first row of the order.
Example (some columns left out):
extOrderId |
shippingAddress.address1 |
shippingAddress.city |
shippingAddress.stateOrProvince |
shippingAddress.zipCodeOrPostalCode |
lineItems.uniqueId |
lineItems.sku |
lineItems.quantity |
lineItems.name |
lineItems.itemPrice |
|---|---|---|---|---|---|---|---|---|---|
| SO-0001 | 123 Main St | Anytown | CA | 90001 | A1 | SKUA | 2 | SKUA - name | 10 |
| SO-0001 | 123 Main St | Anytown | CA | 90001 | B1 | SKUB | 4 | SKUB - name | 20 |
Flatten
Each order is on one row. Each line item gets its own set of numbered columns, starting at 0, for example lineItems.0.sku, lineItems.0.quantity, lineItems.1.sku, and lineItems.1.quantity.
Example (some columns left out):
extOrderId |
shippingAddress.address1 |
shippingAddress.city |
lineItems.0.uniqueId |
lineItems.0.sku |
lineItems.0.quantity |
lineItems.1.uniqueId |
lineItems.1.sku |
lineItems.1.quantity |
|---|---|---|---|---|---|---|---|---|
| SO-0001 | 123 Main St | Anytown | A1 | SKUA | 2 | B1 | SKUB | 4 |
Other CSV options
These fields are also on the Connection Details tab:
- CSV Column Delimiter: Comma (,), Colon (:), Semicolon (;), Equals Sign (=), Vertical Line (|), Dollar Sign ($), or Tab. Default: Comma (,).
- Quote CSV Values Only When Necessary: quotes values only when they contain the delimiter or a quotation mark. Default: off.
- Allow Case-Insensitive Fields in CSV: matches column headers regardless of upper or lower case. Default: off.
Use your own column names
If your files use different column names for orders coming into the app, or for fulfillments going back to your system, rename them with mappings:
- On the integration's Mappings tab, select the entity, such as Orders or Fulfillments, and the direction, then edit the mapping.
- Or place a
mappings.csvfile in the root folder of your FTP server. The renaming works in both directions.
For details and the format of mappings.csv, see the Mappings section of FTP Seller Connector.
Troubleshooting
- One order is created with the line items of several orders, or an order is split into several orders.
The file type is set to the wrong CSV layout, or, in an unwind file, the rows of one order aren't next to each other. Check Import/Export File Type on the Connection Details tab, and sort unwind files byextOrderId. - Orders import with missing fields.
A column header doesn't match the Pipe17 field name or your mapping. Check the spelling and case of the header, turn on Allow Case-Insensitive Fields in CSV if only the case differs, or add the column to your mapping. - All values land in one column.
CSV Column Delimiter doesn't match the delimiter in your file. Select the right delimiter and click Save. - No orders import.
Check that Pull orders from FTP is on and that the orders folder setting points to the folder where you upload files. See FTP Seller Connector.
Need Help?
If you need additional assistance:
- Use Ask Pippen, our AI agent, located at the top of the platform page.
- Submit a support request with as much relevant detail as possible. Learn how to submit a request.
We’re here to help you succeed with your operations.
Comments
0 comments