Add image
curl --request POST \
--url https://api.quivo.co/articles/{sellerId}/{articleId}/images \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"packagingUnit": {
"barcode": "<string>",
"piecesPerPackagingUnit": 123,
"grossWeight": {
"value": 123
},
"netWeight": {
"value": 123
},
"length": {
"value": 123
},
"width": {
"value": 123
},
"height": {
"value": 123
}
}
}
'import requests
url = "https://api.quivo.co/articles/{sellerId}/{articleId}/images"
payload = {
"id": "<string>",
"packagingUnit": {
"barcode": "<string>",
"piecesPerPackagingUnit": 123,
"grossWeight": { "value": 123 },
"netWeight": { "value": 123 },
"length": { "value": 123 },
"width": { "value": 123 },
"height": { "value": 123 }
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
id: '<string>',
packagingUnit: {
barcode: '<string>',
piecesPerPackagingUnit: 123,
grossWeight: {value: 123},
netWeight: {value: 123},
length: {value: 123},
width: {value: 123},
height: {value: 123}
}
})
};
fetch('https://api.quivo.co/articles/{sellerId}/{articleId}/images', 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.quivo.co/articles/{sellerId}/{articleId}/images",
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([
'id' => '<string>',
'packagingUnit' => [
'barcode' => '<string>',
'piecesPerPackagingUnit' => 123,
'grossWeight' => [
'value' => 123
],
'netWeight' => [
'value' => 123
],
'length' => [
'value' => 123
],
'width' => [
'value' => 123
],
'height' => [
'value' => 123
]
]
]),
CURLOPT_HTTPHEADER => [
"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.quivo.co/articles/{sellerId}/{articleId}/images"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"packagingUnit\": {\n \"barcode\": \"<string>\",\n \"piecesPerPackagingUnit\": 123,\n \"grossWeight\": {\n \"value\": 123\n },\n \"netWeight\": {\n \"value\": 123\n },\n \"length\": {\n \"value\": 123\n },\n \"width\": {\n \"value\": 123\n },\n \"height\": {\n \"value\": 123\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
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.quivo.co/articles/{sellerId}/{articleId}/images")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"packagingUnit\": {\n \"barcode\": \"<string>\",\n \"piecesPerPackagingUnit\": 123,\n \"grossWeight\": {\n \"value\": 123\n },\n \"netWeight\": {\n \"value\": 123\n },\n \"length\": {\n \"value\": 123\n },\n \"width\": {\n \"value\": 123\n },\n \"height\": {\n \"value\": 123\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.quivo.co/articles/{sellerId}/{articleId}/images")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"<string>\",\n \"packagingUnit\": {\n \"barcode\": \"<string>\",\n \"piecesPerPackagingUnit\": 123,\n \"grossWeight\": {\n \"value\": 123\n },\n \"netWeight\": {\n \"value\": 123\n },\n \"length\": {\n \"value\": 123\n },\n \"width\": {\n \"value\": 123\n },\n \"height\": {\n \"value\": 123\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"source": "<string>",
"id": "<string>",
"url": {
"link": "<string>"
},
"packagingUnit": {
"barcode": "<string>",
"piecesPerPackagingUnit": 123,
"grossWeight": {
"value": 123
},
"netWeight": {
"value": 123
},
"length": {
"value": 123
},
"width": {
"value": 123
},
"height": {
"value": 123
}
}
}articles
Add image
Add image information and associate an image with the specified article.
POST
/
articles
/
{sellerId}
/
{articleId}
/
images
Add image
curl --request POST \
--url https://api.quivo.co/articles/{sellerId}/{articleId}/images \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"packagingUnit": {
"barcode": "<string>",
"piecesPerPackagingUnit": 123,
"grossWeight": {
"value": 123
},
"netWeight": {
"value": 123
},
"length": {
"value": 123
},
"width": {
"value": 123
},
"height": {
"value": 123
}
}
}
'import requests
url = "https://api.quivo.co/articles/{sellerId}/{articleId}/images"
payload = {
"id": "<string>",
"packagingUnit": {
"barcode": "<string>",
"piecesPerPackagingUnit": 123,
"grossWeight": { "value": 123 },
"netWeight": { "value": 123 },
"length": { "value": 123 },
"width": { "value": 123 },
"height": { "value": 123 }
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
id: '<string>',
packagingUnit: {
barcode: '<string>',
piecesPerPackagingUnit: 123,
grossWeight: {value: 123},
netWeight: {value: 123},
length: {value: 123},
width: {value: 123},
height: {value: 123}
}
})
};
fetch('https://api.quivo.co/articles/{sellerId}/{articleId}/images', 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.quivo.co/articles/{sellerId}/{articleId}/images",
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([
'id' => '<string>',
'packagingUnit' => [
'barcode' => '<string>',
'piecesPerPackagingUnit' => 123,
'grossWeight' => [
'value' => 123
],
'netWeight' => [
'value' => 123
],
'length' => [
'value' => 123
],
'width' => [
'value' => 123
],
'height' => [
'value' => 123
]
]
]),
CURLOPT_HTTPHEADER => [
"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.quivo.co/articles/{sellerId}/{articleId}/images"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"packagingUnit\": {\n \"barcode\": \"<string>\",\n \"piecesPerPackagingUnit\": 123,\n \"grossWeight\": {\n \"value\": 123\n },\n \"netWeight\": {\n \"value\": 123\n },\n \"length\": {\n \"value\": 123\n },\n \"width\": {\n \"value\": 123\n },\n \"height\": {\n \"value\": 123\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
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.quivo.co/articles/{sellerId}/{articleId}/images")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"packagingUnit\": {\n \"barcode\": \"<string>\",\n \"piecesPerPackagingUnit\": 123,\n \"grossWeight\": {\n \"value\": 123\n },\n \"netWeight\": {\n \"value\": 123\n },\n \"length\": {\n \"value\": 123\n },\n \"width\": {\n \"value\": 123\n },\n \"height\": {\n \"value\": 123\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.quivo.co/articles/{sellerId}/{articleId}/images")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"<string>\",\n \"packagingUnit\": {\n \"barcode\": \"<string>\",\n \"piecesPerPackagingUnit\": 123,\n \"grossWeight\": {\n \"value\": 123\n },\n \"netWeight\": {\n \"value\": 123\n },\n \"length\": {\n \"value\": 123\n },\n \"width\": {\n \"value\": 123\n },\n \"height\": {\n \"value\": 123\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"source": "<string>",
"id": "<string>",
"url": {
"link": "<string>"
},
"packagingUnit": {
"barcode": "<string>",
"piecesPerPackagingUnit": 123,
"grossWeight": {
"value": 123
},
"netWeight": {
"value": 123
},
"length": {
"value": 123
},
"width": {
"value": 123
},
"height": {
"value": 123
}
}
}Path Parameters
The unique identifier for the seller account. This ID is used to scope operations to a specific seller's data and resources.
The unique identifier for an article (product/SKU) in the system.
Body
application/json
Request body data for Add image
Response
Returns the image information with assigned identifier and image metadata for the associated article.
Article image information including image metadata, URLs, and display settings. Returned when retrieving or creating article images.
⌘I