Upload price CSV

Generate URL to bulk upload price details

This endpoint lets you generate a secured S3 URL using which you can upload the CSV file containing price details. Ensure that all the headers and values in the CSV file are double-quoted. After a file is uploaded, it is processed internally to apply bulk changes to price details.<br /><br />Note: The maximum number of rows with price records to upload per CSV file is 5000.

post/api-pim/item/upload-url

Request

Headers

x-site-contextstring required
Example:{"date": "2023-01-01T00:00:00.000Z", "channel": 12, "account": "1234abcd5678efgh9ijklmno","stage":"production"}

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Request body

fileNamestring

Name of the file to upload

Example request

{
  "fileName": "file1.csv",
  "type": "price"
}

Response

OK

urlstring

URL to upload the CSV. The URL is valid for 5 minutes.

keyIdstring

Key ID associated with the file

Example response

{
  "url": "https://example.s3.amazonaws.com/pricelist/123/dev02/123-priceList1.csv?X-Amz-Algorithm...x-amz-meta-stage=dev02",
  "keyId": "1646680518524-priceList1"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.