curl --request POST \
--url https://api.vellaro.io/api/v1/admin/nextera/import-one \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"nextera_product_id": "<string>",
"product": {
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"short_description": "<string>",
"name_i18n": {},
"description_i18n": {},
"short_description_i18n": {},
"meta_title_i18n": {},
"meta_description_i18n": {},
"category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model_number": "<string>",
"upc": "<string>",
"ean": "<string>",
"mpn": "<string>",
"weight_kg": 123,
"length_cm": 123,
"width_cm": 123,
"height_cm": 123,
"minimum_quantity": 1,
"sort_order": 0,
"is_featured": false,
"available_at": "2023-12-25",
"is_active": false,
"meta_title": "<string>",
"meta_description": "<string>",
"is_digital": false,
"tax_class_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"variant": {
"sku": "<string>",
"price": 1,
"barcode": "<string>"
},
"import_image": true
}
'import requests
url = "https://api.vellaro.io/api/v1/admin/nextera/import-one"
payload = {
"nextera_product_id": "<string>",
"product": {
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"short_description": "<string>",
"name_i18n": {},
"description_i18n": {},
"short_description_i18n": {},
"meta_title_i18n": {},
"meta_description_i18n": {},
"category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model_number": "<string>",
"upc": "<string>",
"ean": "<string>",
"mpn": "<string>",
"weight_kg": 123,
"length_cm": 123,
"width_cm": 123,
"height_cm": 123,
"minimum_quantity": 1,
"sort_order": 0,
"is_featured": False,
"available_at": "2023-12-25",
"is_active": False,
"meta_title": "<string>",
"meta_description": "<string>",
"is_digital": False,
"tax_class_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"variant": {
"sku": "<string>",
"price": 1,
"barcode": "<string>"
},
"import_image": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
nextera_product_id: '<string>',
product: {
name: '<string>',
slug: '<string>',
description: '<string>',
short_description: '<string>',
name_i18n: {},
description_i18n: {},
short_description_i18n: {},
meta_title_i18n: {},
meta_description_i18n: {},
category_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
brand_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
model_number: '<string>',
upc: '<string>',
ean: '<string>',
mpn: '<string>',
weight_kg: 123,
length_cm: 123,
width_cm: 123,
height_cm: 123,
minimum_quantity: 1,
sort_order: 0,
is_featured: false,
available_at: '2023-12-25',
is_active: false,
meta_title: '<string>',
meta_description: '<string>',
is_digital: false,
tax_class_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
},
variant: {sku: '<string>', price: 1, barcode: '<string>'},
import_image: true
})
};
fetch('https://api.vellaro.io/api/v1/admin/nextera/import-one', 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.vellaro.io/api/v1/admin/nextera/import-one",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'nextera_product_id' => '<string>',
'product' => [
'name' => '<string>',
'slug' => '<string>',
'description' => '<string>',
'short_description' => '<string>',
'name_i18n' => [
],
'description_i18n' => [
],
'short_description_i18n' => [
],
'meta_title_i18n' => [
],
'meta_description_i18n' => [
],
'category_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'brand_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'model_number' => '<string>',
'upc' => '<string>',
'ean' => '<string>',
'mpn' => '<string>',
'weight_kg' => 123,
'length_cm' => 123,
'width_cm' => 123,
'height_cm' => 123,
'minimum_quantity' => 1,
'sort_order' => 0,
'is_featured' => false,
'available_at' => '2023-12-25',
'is_active' => false,
'meta_title' => '<string>',
'meta_description' => '<string>',
'is_digital' => false,
'tax_class_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'variant' => [
'sku' => '<string>',
'price' => 1,
'barcode' => '<string>'
],
'import_image' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.vellaro.io/api/v1/admin/nextera/import-one"
payload := strings.NewReader("{\n \"nextera_product_id\": \"<string>\",\n \"product\": {\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"description\": \"<string>\",\n \"short_description\": \"<string>\",\n \"name_i18n\": {},\n \"description_i18n\": {},\n \"short_description_i18n\": {},\n \"meta_title_i18n\": {},\n \"meta_description_i18n\": {},\n \"category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"brand_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"model_number\": \"<string>\",\n \"upc\": \"<string>\",\n \"ean\": \"<string>\",\n \"mpn\": \"<string>\",\n \"weight_kg\": 123,\n \"length_cm\": 123,\n \"width_cm\": 123,\n \"height_cm\": 123,\n \"minimum_quantity\": 1,\n \"sort_order\": 0,\n \"is_featured\": false,\n \"available_at\": \"2023-12-25\",\n \"is_active\": false,\n \"meta_title\": \"<string>\",\n \"meta_description\": \"<string>\",\n \"is_digital\": false,\n \"tax_class_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"variant\": {\n \"sku\": \"<string>\",\n \"price\": 1,\n \"barcode\": \"<string>\"\n },\n \"import_image\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.vellaro.io/api/v1/admin/nextera/import-one")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"nextera_product_id\": \"<string>\",\n \"product\": {\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"description\": \"<string>\",\n \"short_description\": \"<string>\",\n \"name_i18n\": {},\n \"description_i18n\": {},\n \"short_description_i18n\": {},\n \"meta_title_i18n\": {},\n \"meta_description_i18n\": {},\n \"category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"brand_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"model_number\": \"<string>\",\n \"upc\": \"<string>\",\n \"ean\": \"<string>\",\n \"mpn\": \"<string>\",\n \"weight_kg\": 123,\n \"length_cm\": 123,\n \"width_cm\": 123,\n \"height_cm\": 123,\n \"minimum_quantity\": 1,\n \"sort_order\": 0,\n \"is_featured\": false,\n \"available_at\": \"2023-12-25\",\n \"is_active\": false,\n \"meta_title\": \"<string>\",\n \"meta_description\": \"<string>\",\n \"is_digital\": false,\n \"tax_class_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"variant\": {\n \"sku\": \"<string>\",\n \"price\": 1,\n \"barcode\": \"<string>\"\n },\n \"import_image\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vellaro.io/api/v1/admin/nextera/import-one")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"nextera_product_id\": \"<string>\",\n \"product\": {\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"description\": \"<string>\",\n \"short_description\": \"<string>\",\n \"name_i18n\": {},\n \"description_i18n\": {},\n \"short_description_i18n\": {},\n \"meta_title_i18n\": {},\n \"meta_description_i18n\": {},\n \"category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"brand_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"model_number\": \"<string>\",\n \"upc\": \"<string>\",\n \"ean\": \"<string>\",\n \"mpn\": \"<string>\",\n \"weight_kg\": 123,\n \"length_cm\": 123,\n \"width_cm\": 123,\n \"height_cm\": 123,\n \"minimum_quantity\": 1,\n \"sort_order\": 0,\n \"is_featured\": false,\n \"available_at\": \"2023-12-25\",\n \"is_active\": false,\n \"meta_title\": \"<string>\",\n \"meta_description\": \"<string>\",\n \"is_digital\": false,\n \"tax_class_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"variant\": {\n \"sku\": \"<string>\",\n \"price\": 1,\n \"barcode\": \"<string>\"\n },\n \"import_image\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"product_id": "<string>",
"variant_id": "<string>",
"slug": "<string>",
"nextera_product_id": "<string>",
"image_imported": false,
"image_error": "<string>",
"warnings": [
"<string>"
]
},
"meta": {
"page": 123,
"page_size": 123,
"total": 123,
"total_pages": 123
},
"error": "<string>",
"error_code": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Import One Product
Import ONE product with the data the operator completed in the form.
Separate from POST /admin/products because a Nextera product is not one
row: product, variant, map row and image must land together or not at all.
Without the variant it has neither price nor stock; without the map row the
sync never touches it and the catalog browser still offers to import it.
curl --request POST \
--url https://api.vellaro.io/api/v1/admin/nextera/import-one \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"nextera_product_id": "<string>",
"product": {
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"short_description": "<string>",
"name_i18n": {},
"description_i18n": {},
"short_description_i18n": {},
"meta_title_i18n": {},
"meta_description_i18n": {},
"category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model_number": "<string>",
"upc": "<string>",
"ean": "<string>",
"mpn": "<string>",
"weight_kg": 123,
"length_cm": 123,
"width_cm": 123,
"height_cm": 123,
"minimum_quantity": 1,
"sort_order": 0,
"is_featured": false,
"available_at": "2023-12-25",
"is_active": false,
"meta_title": "<string>",
"meta_description": "<string>",
"is_digital": false,
"tax_class_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"variant": {
"sku": "<string>",
"price": 1,
"barcode": "<string>"
},
"import_image": true
}
'import requests
url = "https://api.vellaro.io/api/v1/admin/nextera/import-one"
payload = {
"nextera_product_id": "<string>",
"product": {
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"short_description": "<string>",
"name_i18n": {},
"description_i18n": {},
"short_description_i18n": {},
"meta_title_i18n": {},
"meta_description_i18n": {},
"category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model_number": "<string>",
"upc": "<string>",
"ean": "<string>",
"mpn": "<string>",
"weight_kg": 123,
"length_cm": 123,
"width_cm": 123,
"height_cm": 123,
"minimum_quantity": 1,
"sort_order": 0,
"is_featured": False,
"available_at": "2023-12-25",
"is_active": False,
"meta_title": "<string>",
"meta_description": "<string>",
"is_digital": False,
"tax_class_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"variant": {
"sku": "<string>",
"price": 1,
"barcode": "<string>"
},
"import_image": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
nextera_product_id: '<string>',
product: {
name: '<string>',
slug: '<string>',
description: '<string>',
short_description: '<string>',
name_i18n: {},
description_i18n: {},
short_description_i18n: {},
meta_title_i18n: {},
meta_description_i18n: {},
category_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
brand_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
model_number: '<string>',
upc: '<string>',
ean: '<string>',
mpn: '<string>',
weight_kg: 123,
length_cm: 123,
width_cm: 123,
height_cm: 123,
minimum_quantity: 1,
sort_order: 0,
is_featured: false,
available_at: '2023-12-25',
is_active: false,
meta_title: '<string>',
meta_description: '<string>',
is_digital: false,
tax_class_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
},
variant: {sku: '<string>', price: 1, barcode: '<string>'},
import_image: true
})
};
fetch('https://api.vellaro.io/api/v1/admin/nextera/import-one', 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.vellaro.io/api/v1/admin/nextera/import-one",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'nextera_product_id' => '<string>',
'product' => [
'name' => '<string>',
'slug' => '<string>',
'description' => '<string>',
'short_description' => '<string>',
'name_i18n' => [
],
'description_i18n' => [
],
'short_description_i18n' => [
],
'meta_title_i18n' => [
],
'meta_description_i18n' => [
],
'category_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'brand_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'model_number' => '<string>',
'upc' => '<string>',
'ean' => '<string>',
'mpn' => '<string>',
'weight_kg' => 123,
'length_cm' => 123,
'width_cm' => 123,
'height_cm' => 123,
'minimum_quantity' => 1,
'sort_order' => 0,
'is_featured' => false,
'available_at' => '2023-12-25',
'is_active' => false,
'meta_title' => '<string>',
'meta_description' => '<string>',
'is_digital' => false,
'tax_class_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'variant' => [
'sku' => '<string>',
'price' => 1,
'barcode' => '<string>'
],
'import_image' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.vellaro.io/api/v1/admin/nextera/import-one"
payload := strings.NewReader("{\n \"nextera_product_id\": \"<string>\",\n \"product\": {\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"description\": \"<string>\",\n \"short_description\": \"<string>\",\n \"name_i18n\": {},\n \"description_i18n\": {},\n \"short_description_i18n\": {},\n \"meta_title_i18n\": {},\n \"meta_description_i18n\": {},\n \"category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"brand_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"model_number\": \"<string>\",\n \"upc\": \"<string>\",\n \"ean\": \"<string>\",\n \"mpn\": \"<string>\",\n \"weight_kg\": 123,\n \"length_cm\": 123,\n \"width_cm\": 123,\n \"height_cm\": 123,\n \"minimum_quantity\": 1,\n \"sort_order\": 0,\n \"is_featured\": false,\n \"available_at\": \"2023-12-25\",\n \"is_active\": false,\n \"meta_title\": \"<string>\",\n \"meta_description\": \"<string>\",\n \"is_digital\": false,\n \"tax_class_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"variant\": {\n \"sku\": \"<string>\",\n \"price\": 1,\n \"barcode\": \"<string>\"\n },\n \"import_image\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.vellaro.io/api/v1/admin/nextera/import-one")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"nextera_product_id\": \"<string>\",\n \"product\": {\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"description\": \"<string>\",\n \"short_description\": \"<string>\",\n \"name_i18n\": {},\n \"description_i18n\": {},\n \"short_description_i18n\": {},\n \"meta_title_i18n\": {},\n \"meta_description_i18n\": {},\n \"category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"brand_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"model_number\": \"<string>\",\n \"upc\": \"<string>\",\n \"ean\": \"<string>\",\n \"mpn\": \"<string>\",\n \"weight_kg\": 123,\n \"length_cm\": 123,\n \"width_cm\": 123,\n \"height_cm\": 123,\n \"minimum_quantity\": 1,\n \"sort_order\": 0,\n \"is_featured\": false,\n \"available_at\": \"2023-12-25\",\n \"is_active\": false,\n \"meta_title\": \"<string>\",\n \"meta_description\": \"<string>\",\n \"is_digital\": false,\n \"tax_class_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"variant\": {\n \"sku\": \"<string>\",\n \"price\": 1,\n \"barcode\": \"<string>\"\n },\n \"import_image\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vellaro.io/api/v1/admin/nextera/import-one")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"nextera_product_id\": \"<string>\",\n \"product\": {\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"description\": \"<string>\",\n \"short_description\": \"<string>\",\n \"name_i18n\": {},\n \"description_i18n\": {},\n \"short_description_i18n\": {},\n \"meta_title_i18n\": {},\n \"meta_description_i18n\": {},\n \"category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"brand_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"model_number\": \"<string>\",\n \"upc\": \"<string>\",\n \"ean\": \"<string>\",\n \"mpn\": \"<string>\",\n \"weight_kg\": 123,\n \"length_cm\": 123,\n \"width_cm\": 123,\n \"height_cm\": 123,\n \"minimum_quantity\": 1,\n \"sort_order\": 0,\n \"is_featured\": false,\n \"available_at\": \"2023-12-25\",\n \"is_active\": false,\n \"meta_title\": \"<string>\",\n \"meta_description\": \"<string>\",\n \"is_digital\": false,\n \"tax_class_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"variant\": {\n \"sku\": \"<string>\",\n \"price\": 1,\n \"barcode\": \"<string>\"\n },\n \"import_image\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"product_id": "<string>",
"variant_id": "<string>",
"slug": "<string>",
"nextera_product_id": "<string>",
"image_imported": false,
"image_error": "<string>",
"warnings": [
"<string>"
]
},
"meta": {
"page": 123,
"page_size": 123,
"total": 123,
"total_pages": 123
},
"error": "<string>",
"error_code": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Autorizzazioni
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Corpo
1The product form as the operator completed it.
Mirrors the fields POST /admin/products actually persists — deliberately
NOT ProductCreate itself: that schema accepts variants, and a second
place to declare them next to variant below would be a trap. It also
accepts points/jan/isbn/location/stock_status_id/weight_class_id
/length_class_id/shipping/subtract, which its own router validates and
then drops on the floor; they are omitted here rather than mirrored broken.
Show child attributes
Show child attributes
The single variant. Stock is absent on purpose: it is the stock sync's to own from the first tick, and a hand-typed count would be overwritten.
Show child attributes
Show child attributes