DSFX - File Format Specifications

Karl Falconer · Updated

DSFX files are CSV (comma-separated values). DropStream sends orders to your warehouse as Order files. The warehouse sends shipments and inventory back as Shipment and Inventory files.

There are three file types:

  • Order files: order header and line data for the warehouse to fulfill. DropStream generates them and uploads them to the SFTP server’s /in folder.
  • Shipment files: shipped packages and tracking numbers, passed back to the sales channel. The warehouse drops them in the SFTP server’s /out folder.
  • Inventory files: available quantities to sync to the sales channel. The warehouse drops them in the SFTP server’s /out folder.

Order files

DropStream generates an Order file after it imports and processes orders from the sales channel, then uploads it to the /in directory of the configured SFTP server.

The file name format is ord_ORDERID_YYMMDDHHMMSS.csv. ORDERID is the order number of the first order in the file, and YYMMDDHHMMSS is when the file was generated.

Each order is a Pick Header (PH) row with the order-level data, followed by Pick Detail (PD) rows, one per order line. A file can contain several orders, each with its own PH and PD rows. Every value is double-quoted. An empty value is written as "".

"PH","SO-A0001","PONUM-001","john.doe@example.org","Jane Smith","123 Main St","Apt 1","Springfield","IL","62629","US","Attn: Jane","(987) 654-3210","John Doe","234 Spring St","Apt. 4","Chicago","IL","60007","US","UPSG","P","","2024-04-17T15:00:01Z","Amazon","Happy Anniversary! Love, John","Please hand her the flowers in person."
"PD","SO-A0001","1","ROSES-1DOZ","2","68.90"
"PD","SO-A0001","2","CHOCOLATES-BOX","1","45.67"

This example uses Version 2, the default.

Order file versions

There are three versions of the Order file. They differ only in the Pick Header row; the Pick Detail row is the same in every version. You choose the version with the API Version setting when you enable SFTP access. If no version is set, DropStream uses Version 2.

Version Pick Header columns Differences from the previous version
1 25 Base format
2 (default) 27 Inserts Customer email at column 4, which moves every later Version 1 column one position to the right. Adds Customer notes at the end (column 27).
3 28 Identical to Version 2, plus Facility at the end (column 28)
Moving between Version 1 and Version 2 or 3 changes the position of every Pick Header field from Ship to name onward. Update the warehouse's import mapping before you change the API Version. Moving from Version 2 to Version 3 only adds a column at the end.

Pick Header (PH) row

The V1, V2, and V3 columns give each field’s position in that version. A dash means the field isn’t in that version.

Field V1 V2 V3 Description Example
Record type 1 1 1 Always "PH" "PH"
Order number 2 2 2 The order’s display number in DropStream "ABC-123"
Customer PO number 3 3 3 Purchase order number. If the order has none, the order number is repeated here. "PO-5521"
Customer email – 4 4 Customer email address "john.doe@example.org"
Ship to name 4 5 5 Ship-to full name "Jane Smith"
Ship to address1 5 6 6 Ship-to address line 1 "123 Main St"
Ship to address2 6 7 7 Ship-to address line 2 "Apt 1"
Ship to city 7 8 8 Ship-to city "Springfield"
Ship to state 8 9 9 Ship-to state or province code "IL"
Ship to postal code 9 10 10 Ship-to postal code "62629"
Ship to country 10 11 11 Ship-to country, ISO 3166 alpha-2 code "US"
Ship to attention 11 12 12 Ship-to company or attention line "Attn: Jane Smith"
Ship to telephone 12 13 13 Ship-to phone number "(123) 456-7890"
Bill to name 13 14 14 Bill-to full name "John Doe"
Bill to address1 14 15 15 Bill-to address line 1 "234 Spring St"
Bill to address2 15 16 16 Bill-to address line 2 "Apt. 4"
Bill to city 16 17 17 Bill-to city "Chicago"
Bill to state 17 18 18 Bill-to state or province code "IL"
Bill to postal code 18 19 19 Bill-to postal code "60007"
Bill to country 19 20 20 Bill-to country, ISO 3166 alpha-2 code "US"
Ship method 20 21 21 Warehouse carrier/service code "UPSG"
Ship payment type 21 22 22 Shipping payment type. "P" if none is set.
"P" Prepaid
"C" Collect/Consignee
"R" Bill Recipient
"T" Third Party
"P"
Ship payment account number 22 23 23 Carrier account number, if any "ACC1234"
Order date 23 24 24 Order date in UTC, YYYY-MM-DDThh:mm:ssZ "2024-04-17T15:00:01Z"
Order source 24 25 25 Order source identifier, if any "Amazon"
Gift message 25 26 26 Gift message, if any. Line breaks are removed and it’s cut to 239 characters. "Happy Birthday"
Customer notes – 27 27 Customer’s order notes, if any. Line breaks are removed and it’s cut to 239 characters. "Please leave package on doormat"
Facility – – 28 Facility/warehouse ID to fulfill from, if any "CHICAGO-WH-5"

Pick Detail (PD) row

Each Pick Detail row is one order line. The layout is the same in every version.

Pos Field Description Example
1 Record type Always "PD" "PD"
2 Order number Matches the order number in the order’s PH row "ABC-123"
3 Line number Sequential, starting at 1 "1"
4 Product code Order line SKU "PRODUCT-123"
5 Quantity ordered Order line quantity "3"
6 Unit price Unit price with two decimals. "0.00" if the line has no price. "12.34"

Lines that have been fully canceled (net quantity 0) are left out of the file. Partially canceled lines carry their reduced quantity.

Shipment files

Shipment files are CSV files generated by the fulfillment center and dropped in the SFTP server /out folder to be picked up by DropStream. File name must begin shp_ and end in lowercase file extension .csv. Recommended file name format is shp_YYMMDDHHMMSS.csv, where YYMMDDHHMMSS represents the date-time the file was generated.

The first line of a Shipment file is a required header row identifying the shipment line columns:

"ClientOrderNumber","DateTimeShipped","ProductCode","QtyShipped","TrackingNumber","ShipMethod"

This is followed by one ship detail row per line shipped. Each detail row includes the tracking number of its package (there is no separate “package header” row).

Pos Name Desc Example
1 ClientOrderNumber Must match the order number in the corresponding order file. “ABC-123”
2 DateTimeShipped ISO 8601 date-time that the package shipped “2024-04-17T16:00:00Z”
3 ProductCode The shipment package line SKU. Must match a SKU on the order “PRODUCT-123”
4 QtyShipped The shipment package line quantity “3”
5 TrackingNumber The tracking number of the package this line shipped in “1Z0000000000000000”
6 ShipMethod The shipment carrier and service level. For best parsing, these should be separated by three characters: space, dash, space. “UPS - GROUND”

Surrounding values with double-quotes is recommended, and is required if the data includes a comma.

DropStream reads columns by their header name, not their position. The ClientOrderNumber and TrackingNumber headers are required; a file missing either is rejected. Rows with the same order number and tracking number are grouped into one package.

Inventory files

Inventory files are CSV files generated by the fulfillment center and dropped in the SFTP server /out folder to be picked up by DropStream. File name must begin inv_ and end in lowercase file extension .csv. Recommended file name format is inv_YYMMDDHHMMSS.csv, where YYMMDDHHMMSS represents the date-time the file was generated.

The first line of an Inventory file is a required header row identifying the columns:

"ProductCode","QtyAvailable"

Each subsequent line contains one SKU and a snapshot of its available quantity:

Pos Name Desc Example
1 ProductCode Product SKU “PRODUCT-123”
2 QtyAvailable Product available quantity “42”

Both headers are required; a file missing either is rejected. If a SKU appears on more than one row, DropStream adds the quantities together. Rows with an empty quantity are skipped.


Example CSV files

Example order file (Version 1 pick header)

File name: ord_SO-A0001_240417151001.csv

"PH","SO-A0001","PONUM-001","Jane Smith","123 Main St","Apt 1","Springfield","IL","62629","US","Attn: Jane","(987) 654-3210","John Doe","234 Spring St","Apt. 4","Chicago","IL","60007","US","UPSG","P","","2024-04-17T15:00:01Z","Amazon","Happy Anniversary! Love, John"
"PD","SO-A0001","1","ROSES-1DOZ","2","68.90"
"PD","SO-A0001","2","CHOCOLATES-BOX","1","45.67"
"PH","SO-A0002","PONUM-002","John Doe","234 Spring St","Apt 4","Chicago","IL","60007","US","Attn: John","(987) 654-3210","Jane Smith","123 Main St","Apt. 1","Springfield","IL","62629","US","UPSG","P","","2024-04-17T15:00:02Z","Amazon","Happy Anniversary! Love, Jane"
"PD","SO-A0002","1","PLAYSTATION-5","1","399.99"
"PD","SO-A0002","2","FANCY-COLOGNE-200ML","1","176.59"

Example order file (Version 2 pick header)

File name: ord_SO-A0001_240417151002.csv

"PH","SO-A0001","PONUM-001","john.doe@example.org","Jane Smith","123 Main St","Apt 1","Springfield","IL","62629","US","Attn: Jane","(987) 654-3210","John Doe","234 Spring St","Apt. 4","Chicago","IL","60007","US","UPSG","P","","2024-04-17T15:00:01Z","Amazon","Happy Anniversary! Love, John","Please smile and hand her the flowers in person. Thank you."
"PD","SO-A0001","1","ROSES-1DOZ","2","68.90"
"PD","SO-A0001","2","CHOCOLATES-BOX","1","45.67"
"PH","SO-A0002","PONUM-002","jane.smith@example.org","John Doe","234 Spring St","Apt 4","Chicago","IL","60007","US","Attn: John","(987) 654-3210","Jane Smith","123 Main St","Apt. 1","Springfield","IL","62629","US","UPSG","P","","2024-04-17T15:00:02Z","Amazon","Happy Anniversary! Love, Jane","If it's raining, please make sure the Playstation is left under the awning. Thanks."
"PD","SO-A0002","1","PLAYSTATION-5","1","399.99"
"PD","SO-A0002","2","FANCY-COLOGNE-200ML","1","176.59"

Example order file (Version 3 pick header)

File name: ord_SO-A0001_240417151003.csv

"PH","SO-A0001","PONUM-001","john.doe@example.org","Jane Smith","123 Main St","Apt 1","Springfield","IL","62629","US","Attn: Jane","(987) 654-3210","John Doe","234 Spring St","Apt. 4","Chicago","IL","60007","US","UPSG","P","","2024-04-17T15:00:01Z","Amazon","Happy Anniversary! Love, John","Please smile and hand her the flowers in person. Thank you.","Chicago Warehouse 123"
"PD","SO-A0001","1","ROSES-1DOZ","2","68.90"
"PD","SO-A0001","2","CHOCOLATES-BOX","1","45.67"
"PH","SO-A0002","PONUM-002","jane.smith@example.org","John Doe","234 Spring St","Apt 4","Chicago","IL","60007","US","Attn: John","(987) 654-3210","Jane Smith","123 Main St","Apt. 1","Springfield","IL","62629","US","UPSG","P","","2024-04-17T15:00:02Z","Amazon","Happy Anniversary! Love, Jane","If it's raining, please make sure the Playstation is left under the awning. Thanks.","Chicago Warehouse 123"
"PD","SO-A0002","1","PLAYSTATION-5","1","399.99"
"PD","SO-A0002","2","FANCY-COLOGNE-200ML","1","176.59"

Example Shipment File

File name: shp_240417161004.csv

ClientOrderNumber,DateTimeShipped,ProductCode,QtyShipped,TrackingNumber,ShipMethod
"SO-A0001","2024-04-17T16:00:01Z","ROSES-1DOZ","2","1Z0000000000000001","UPS - GROUND"
"SO-A0001","2024-04-17T16:00:01Z","CHOCOLATES-BOX","1","1Z0000000000000001","UPS - GROUND"
"SO-A0002","2024-04-17T16:00:02Z","PLAYSTATION-5","1","1Z0000000000000002","UPS - GROUND"
"SO-A0002","2024-04-17T16:00:02Z","FANCY-COLOGNE-200ML","1","1Z0000000000000003","UPS - GROUND"

Example Inventory File

File name: inv_240418161005.csv

"ProductCode","QtyAvailable"
"ROSES-1DOZ","42"
"CHOCOLATES-BOX","263"
"PLAYSTATION-5","14"
"FANCY-COLOGNE-200ML","130"
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.