Get signed url
POST
/merchants/{merchantCode}/imports/{importRef}/urls
const url = 'https://import.shopgate.io/v1/merchants/example/imports/example/urls';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"catalogCode":"example","entity":"product","importStrategy":"full","locationCodes":["example"],"operation":"upload"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://import.shopgate.io/v1/merchants/example/imports/example/urls \ --header 'Content-Type: application/json' \ --data '{ "catalogCode": "example", "entity": "product", "importStrategy": "full", "locationCodes": [ "example" ], "operation": "upload" }'Get a signed URL for file
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”merchantCode
required
string
importRef
required
string
Request Body
Section titled “Request Body”Media typeapplication/json
object
catalogCode
Required for product and category entity as they are sub entities of a catalog
string
entity
required
string
importStrategy
string
locationCodes
Optional for an inventory import with strategy ‘full’. It performs a full import only for the given locations.
Array<string>
operation
string
Responses
Section titled “Responses”New URL created
Media typeapplication/json
object
url
string
Example
{ "url": "https://some.url"}Forbidden error
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "Forbidden", "message": "No access to merchant 1"}
