Uploading via HTTP (CSV)
NearSt also provides the ability to upload stock and product CSV files over HTTP.
This process consists of two steps:
- 1.Using the shop's upload key, doing a GET request to retrieve a secure upload URL.
- 2.Performing a PUT request on the secure upload URL to upload the CSV file.
The sections below outline each of these steps in more detail.
Have a look at our code examples for some more context.
get
https://stock.near.live
/upload/:uploadKey
Retrieve upload URL
put
https://input-production-bucket-nearlive.s3.eu-west-1.amazonaws.com
/...
Upload CSV file
Note that upload links are only valid for 5 minutes, so it's best to request the upload link every time just before you do the upload.
Last modified 1yr ago