> For the complete documentation index, see [llms.txt](https://the-wishlist-documentation.gitbook.io/the-wishlist-documentation-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://the-wishlist-documentation.gitbook.io/the-wishlist-documentation-docs/integrations/sales-file-import.md).

# Sales File Import

This document describes the process to upload sales files to The Wishlist. It is intended for those customers that are importing sales from environments other than Shopify and Newstore, which both have API based integrations to The Wishlist.

***Before attempting to upload your files, please contact us to ensure your file mapping is configured.***

## Prerequisites

To upload sales files to The Wishlist:

* Files must be in comma delimited CSV format
* Files should be named **orders.csv** and **order\_lines.csv**
* You must first contact us to ensure your files configuration is defined on our side to ensure correct field mapping.
* You will also need to know your **tenantId**, which we will provide to you.

## Instructions

1. **Create a zip file containing your orders.csv and order\_lines.csv file.** You can name the zip file whatever you like.
2. **Retrieve a preSigned Upload URL.** For each upload, call the following API to get the preSigned url to upload the file. Substitute your zip filename and tenantId where indicated.

```json
Request
curl --location 'https://pz8wk3maj6.execute-api.ap-southeast-2.amazonaws.com/uploadSales' \
--header 'Content-Type: application/json' \
--data '{
  "tenantId": "{tenantId}",
  "fileName": "{zip-filename}.zip"
}'

Response
{
    "uploadUrl": "https://twc-ingest-sales.s3.ap-southeast-2.amazonaws.com/camillaandmarc-au-dev/incoming/2025/08/22/ingest-sales.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=ASIAYGNBHANWPT7BSVRK%2F20250822%2Fap-southeast-2%2Fs3%2Faws4_request&X-Amz-Date=20250822T094350Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjELr%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaDmFwLXNvdXRoZWFzdC0yIkYwRAIgWBCYsUveVTLtCkOOa6cvVto3xOgsnrZeVTfbvgvSM2kCIDDUUdfQ194x3AH0kzQED9kLbNMMYCqwh6uIlk9o2txtKpoDCBMQARoMNTYzNTE1Njg3Nzg4Igx86UI%2F%2FW%2FIbU9Bgmoq9wJgRFsRv7ZjSYitQtY19csU6wTVY1nCHdNDY3aPZtuwsoj5Mo2MFxJ%2BS4ZqFaMOOHwRRMtiMHoT%2Fn19nf8lgqMLtGkmJqdT3LoJ%2Bd%2BuVxfPg%2F1CZ8cXHDXT2C02y21A%2FTLz7EINuXpBYyzzHy3gPRr%2F0Ma4Xpy0vwCDHfvPimTqR98vETWRiu5NWNO39E4wI3rIKUOtseyl8gtvw8gtPRa0wQdiGC8RA0uMk8d%2Bn4rEh5%2ByR%2FF2w9CqORLsJgwt5vlzpeOJOAuAmuPBnYTlNosV6RIjtqpzilg0A%2BdcFb6CbNVxntXoJoIhV%2FjSHZzy%2BD4X3ADKs80LPpEGk%2B9R4LwIDxKy9G2imdot8w3nR4OA5nnfSvCQqxrhyl1%2FkNFhWhm8OvPj3%2BAFoiaaLVNaqhbmH2j8%2BPYItfosiL6nkRuwn0C4Cgg7q4AJ3w05Om0WhyjHunWO0KwtOUawoWYREnVUQIpuSwQCMRKHXN6tzHAJhyewBr%2Fl36Mw1vegxQY6ngH1Qr6oxQSjYM8jStY3S%2Bqm67LyBcG06wYaIsDCl%2FrmNe6xhgj%2BmtnBMtK9tX9fDIP4q7zVWfA0JzZP39R3%2B003uIUnuWFGxI9D7HWWy%2Ba%2BBX7m%2FnSG9JuR7YZLcI1NOoG8Y4CdnZN2VU25BWFTzefkRFATk5O9lg5FIflgobOszs7VwBXBcFTzsnq7warpre6nRfF7Spef%2B1nu4FI72g%3D%3D&X-Amz-Signature=abf5c95c62602593c059838a03a4427844ae52dd0a80f34fc736cada3a8445e7&X-Amz-SignedHeaders=host&x-amz-checksum-crc32=AAAAAA%3D%3D&x-amz-sdk-checksum-algorithm=CRC32&x-id=PutObject",
    "bucket": "twc-ingest-sales",
    "key": "{tenantId}/incoming/2025/08/22/{zip-filename}.zip"
}
```

The response code will be:

* 200 OK if success
* 4xx if invalid signature, expired URL, or permissions issue.

3.**Upload your file using the preSigned Upload URL.**

```
curl -X PUT -T yourfile.zip "https://bucket.s3.amazonaws.com/your/key?X-Amz-Algorithm=..."
```

After processing, we will save your sales files in an archive for 7 days. We log all imports and can provide logs from the last 7 days upon request.
