curl --request POST \
--url https://api-neteven.mylectra.com/merchant/products/import-file \
--header 'Accept: <accept>' \
--header 'Authorization: <authorization>' \
--header 'Content-Type: multipart/form-data' \
--form filename=@example-fileimport requests
url = "https://api-neteven.mylectra.com/merchant/products/import-file"
files = { "filename": ("example-file", open("example-file", "rb")) }
headers = {
"Authorization": "<authorization>",
"Accept": "<accept>"
}
response = requests.post(url, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('filename', '<string>');
const options = {
method: 'POST',
headers: {Authorization: '<authorization>', Accept: '<accept>'}
};
options.body = form;
fetch('https://api-neteven.mylectra.com/merchant/products/import-file', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-neteven.mylectra.com/merchant/products/import-file",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"filename\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"Authorization: <authorization>",
"Content-Type: multipart/form-data"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-neteven.mylectra.com/merchant/products/import-file"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"filename\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Accept", "<accept>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-neteven.mylectra.com/merchant/products/import-file")
.header("Authorization", "<authorization>")
.header("Accept", "<accept>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"filename\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-neteven.mylectra.com/merchant/products/import-file")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Accept"] = '<accept>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"filename\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"process_id": 123465789
}{
"status": "error",
"errors": [
{
"location": "querystring",
"name": "bad-query-param-name",
"description": {
"0": {
"quantity": [
"Not a valid integer."
]
}
}
}
]
}{
"title": "Bad Request",
"code": 400,
"message": "invalid file format ''{file-ext}' for the file {file-name}."
}Submit a file to create or update product content.
“Submit a file in csv format to import or update product content into your Neteven inventory. This endpoint does not directly update content in Neteven’s system, but provides the file you sent to a downstream feed management process. The feed configuration (column and content mapping) is managed outside of the API. Before submitting a file, you must ensure with your contact at Neteven that the content is valid and that a feed is configured to upload it.”
curl --request POST \
--url https://api-neteven.mylectra.com/merchant/products/import-file \
--header 'Accept: <accept>' \
--header 'Authorization: <authorization>' \
--header 'Content-Type: multipart/form-data' \
--form filename=@example-fileimport requests
url = "https://api-neteven.mylectra.com/merchant/products/import-file"
files = { "filename": ("example-file", open("example-file", "rb")) }
headers = {
"Authorization": "<authorization>",
"Accept": "<accept>"
}
response = requests.post(url, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('filename', '<string>');
const options = {
method: 'POST',
headers: {Authorization: '<authorization>', Accept: '<accept>'}
};
options.body = form;
fetch('https://api-neteven.mylectra.com/merchant/products/import-file', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-neteven.mylectra.com/merchant/products/import-file",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"filename\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"Authorization: <authorization>",
"Content-Type: multipart/form-data"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-neteven.mylectra.com/merchant/products/import-file"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"filename\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Accept", "<accept>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-neteven.mylectra.com/merchant/products/import-file")
.header("Authorization", "<authorization>")
.header("Accept", "<accept>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"filename\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-neteven.mylectra.com/merchant/products/import-file")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Accept"] = '<accept>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"filename\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"process_id": 123465789
}{
"status": "error",
"errors": [
{
"location": "querystring",
"name": "bad-query-param-name",
"description": {
"0": {
"quantity": [
"Not a valid integer."
]
}
}
}
]
}{
"title": "Bad Request",
"code": 400,
"message": "invalid file format ''{file-ext}' for the file {file-name}."
}Headers
Bearer JWT token, used to authenticate.
"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJyb2xlcyI6WyJwcm9kdWN0X21hbmFnZXIiLCJ3YXJlaG91c2VfbWFuYWdlciIsIm9yZGVyX21hbmFnZXIiLCJzdG9ja19tYW5hZ2VyIiwicHJpY2VfbWFuYWdlciIsIjEwMDAiXSwiaXNzIjoiYXBpLm5ldGV2ZW4uY29tIiwibG9naW4iOiJhcGktdGVzdC1hY2NvdW50QGVtYWlsLmNvbSIsInJldGFpbGVyX2lkIjpudWxsLCJkZWJ1ZyI6ZmFsc2UsImRlYnVnX2V4cGlyYXRpb25fZHR0IjpudWxsLCJzdWIiOjEwMDAsImlhdCI6MTYzMjEyNTEwNiwiZXhwIjoxNjMyMjExNTA2LCJhdWQiOiJhcGkubmV0ZXZlbi5jb20ifQ.3GfC01HmJl0PS2w16gIcoxgLN52vG5kkDhqNmrkkR4zIGK7ecVfFaZhQ4KCQnimwjWTrExszIE6Oc6d-hC0g-Q"
Body
a file attached containing the list of your products and their attributes.

