Uploading via HTTP (CSV)
NearSt also provides the ability to upload stock and product CSV files over HTTP.
This process consists of two steps:
- Using the shop's upload key, doing a GET request to retrieve a secure upload URL.
- 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.
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.