Uploading via HTTP

HTTP inventory uploads

We also provide the ability to upload stock and product CSV files over HTTP.

This process consists of two steps:

  1. Using the store'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.

GEThttps://stock.near.live/upload/{uploadKey}

Retrieve upload URL

PUThttps://input-production-bucket-nearlive.s3.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.