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. 1.
    Using the shop's upload key, doing a GET request to retrieve a secure upload URL.
  2. 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.
Retrieve upload URL
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.