A common request from users is for Tradebox One to export data that's it's retrieved from the marketplaces; either for analysis or for import into another system such as couriers. While Tradebox One doesn’t offer an API, it does offer a few methods of data export for manipulation outside the program.
To create a spreadsheet of the details visible in the Orders list, go to Export > List Contents to Excel. Any additional columns, sorting or filtering applied to the list are retained; the spreadsheet will appear exactly as the grid does in TBv1. For more detail on working with these files, click here.
Exporting Order Data as CSV or TXT
To export order data, from the Orders screen choose Export > Orders to File or go to Maintenance > Export Orders.
Note - If you're exporting from the Orders screen, any filters that are currently active in that screen will be ignored, the export process uses its own criteria to filter.
In the Export Data screen, first choose your File Format; comma-delimited CSV or tab-delimited TXT. Next, choose an Export File Layout; a template for the format of your export. You can either use the default All Fields layout, or see the Creating An Export Layout File section for details on creating and using your own layouts. Once you've got multiple layouts, use the browse button to choose between them.
Next choose a filename and a location for the Output File. If you use an existing filename the old file will be overwritten.
Sales Channel: Choose which sales channel you wish to export orders from, or choose all.
Order Status: Choose which Tradebox Order Status you wish to be included in the export file, or choose all.
Sale Date From/To: Will filter inclusive, by order date.
Include Previous: By default, each order will only ever be exported once – a flag against each order is set once it has been included in an order export (regardless of layout used). If you need to include orders that have been previously exported, tick this box.
Add Column Headers: If ticked, row 1 of the file will be the column headers and the first order line will appear on row 2.
Suppress Header Data on Multi Line Orders: For orders with multiple distinct items, Tradebox reads and stores the Header which contains information like the buyer's name, addresses and order total, and the Item Lines which contain the individual per-product information. By default, Tradebox will repeat the header information on each line of a multi-line order. To instead only show the header information on the first line of each order, tick this box.
Line-by-Line or One Line per Order?
Tradebox always stores information at the item line level; it's the only way to handle certain information such as a mix of VAT and nonVAT goods. This may be too much detail for your export, or may cause duplication if you're feeding into a system that expects one line per order. So, if your Export Layout File contains any fields that are item-line specific (such as the SKU, product description or unit price), the file will be exported on a line-by-line basis. The default All Fields layout works line-by-line. The aforementioned Suppress Header Data on Multi Line Orders option will determine whether each line is always fully populated or not.
If on the other hand, you've set up an Export Layout File which only contains Header information, Tradebox will automatically create the file as one line per order.
Creating an Export Layout File
To customise which fields are including in the export file and in which order, you can either use the button in the Export Data screen (Orders > Export > Orders to File) or go to Maintenance > Export File Formats.
In the Edit Export File Format screen, you have a list of available fields on the left, and your chosen fields to export on the right. Use the arrows to move your desired fields from left to right to include them in the export format. The Move Up and Move Down buttons will alter the order in which your fields appear in the file. Add Blank adds a blank column, which can be moved up and down like any other field.
Once you're done, click Save. Give your Export Layout File a name and save it to the default directory. To make changes to an existing layout, open the Edit Export File Format screen and use the Load button.