To support changes to item pricing, ranging and availability, first request a signed URL for Google Cloud Storage (GCS), then use a PUT request to upload an inventory CSV by Location or by Location Group to that URL, allowing the following to be updated;
Defining product ranging per Location / Location_Group
Defining pricing strategy per Location / Location_Group and Channel.
Updating stock count per Location
Updating stock availability to ACTIVE / INACTIVE
Updating stock status (IN_STOCK / OUT_OF_STOCK)
Method
To process Inventory updates, a two step process is required to first request a signed URL via Google Cloud Services (GCS) to then submit a CSV file of Inventory data via PUT request.
1.Request a Signed URL
Sending a request to this endpoint with a callbackUrl will return a signedUrl from GCS with specific headers.
2.Submit .csv file via PUT Request
Once a signedUrl is retrieved, the Inventory update process is as follows;
- Your Inventory .csv file should be submitted via a PUT request to the
signedUrlwith all the headers provided - Deliverect will then process the CSV asynchronously and callback to the provided
callbackUrlwhen the CSV file has been fully processed.
