Publish Listings
curl --request POST \
--url https://api.seminode.com/v1/me/listings/publish \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"listings": [
{
"attributes": {
"coo": "<string>",
"currency": "<string>",
"custom": {},
"date_code": "<string>",
"description": "<string>",
"eccn": "<string>",
"lot_no": "<string>",
"moq": 123,
"mpq": 123,
"packaging": "<string>"
},
"batch_id": "<string>",
"company": "<string>",
"contact": {
"methods": [
"<string>"
],
"reply_url": "<string>"
},
"encrypted": {
"ciphertext": "<string>",
"payload": {}
},
"errors": {},
"image_url": "<string>",
"internal_no": "<string>",
"material_no": "<string>",
"mfr": "<string>",
"qty": 123,
"timing": {
"expiry": 123,
"lead_time": "<string>",
"lead_time_int": 123,
"required_date": 123
},
"type": "<string>",
"unit_price": 123
}
],
"urls": [
"<string>"
]
}
'import requests
url = "https://api.seminode.com/v1/me/listings/publish"
payload = {
"listings": [
{
"attributes": {
"coo": "<string>",
"currency": "<string>",
"custom": {},
"date_code": "<string>",
"description": "<string>",
"eccn": "<string>",
"lot_no": "<string>",
"moq": 123,
"mpq": 123,
"packaging": "<string>"
},
"batch_id": "<string>",
"company": "<string>",
"contact": {
"methods": ["<string>"],
"reply_url": "<string>"
},
"encrypted": {
"ciphertext": "<string>",
"payload": {}
},
"errors": {},
"image_url": "<string>",
"internal_no": "<string>",
"material_no": "<string>",
"mfr": "<string>",
"qty": 123,
"timing": {
"expiry": 123,
"lead_time": "<string>",
"lead_time_int": 123,
"required_date": 123
},
"type": "<string>",
"unit_price": 123
}
],
"urls": ["<string>"]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
listings: [
{
attributes: {
coo: '<string>',
currency: '<string>',
custom: {},
date_code: '<string>',
description: '<string>',
eccn: '<string>',
lot_no: '<string>',
moq: 123,
mpq: 123,
packaging: '<string>'
},
batch_id: '<string>',
company: '<string>',
contact: {methods: ['<string>'], reply_url: '<string>'},
encrypted: {ciphertext: '<string>', payload: {}},
errors: {},
image_url: '<string>',
internal_no: '<string>',
material_no: '<string>',
mfr: '<string>',
qty: 123,
timing: {expiry: 123, lead_time: '<string>', lead_time_int: 123, required_date: 123},
type: '<string>',
unit_price: 123
}
],
urls: ['<string>']
})
};
fetch('https://api.seminode.com/v1/me/listings/publish', 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.seminode.com/v1/me/listings/publish",
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([
'listings' => [
[
'attributes' => [
'coo' => '<string>',
'currency' => '<string>',
'custom' => [
],
'date_code' => '<string>',
'description' => '<string>',
'eccn' => '<string>',
'lot_no' => '<string>',
'moq' => 123,
'mpq' => 123,
'packaging' => '<string>'
],
'batch_id' => '<string>',
'company' => '<string>',
'contact' => [
'methods' => [
'<string>'
],
'reply_url' => '<string>'
],
'encrypted' => [
'ciphertext' => '<string>',
'payload' => [
]
],
'errors' => [
],
'image_url' => '<string>',
'internal_no' => '<string>',
'material_no' => '<string>',
'mfr' => '<string>',
'qty' => 123,
'timing' => [
'expiry' => 123,
'lead_time' => '<string>',
'lead_time_int' => 123,
'required_date' => 123
],
'type' => '<string>',
'unit_price' => 123
]
],
'urls' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.seminode.com/v1/me/listings/publish"
payload := strings.NewReader("{\n \"listings\": [\n {\n \"attributes\": {\n \"coo\": \"<string>\",\n \"currency\": \"<string>\",\n \"custom\": {},\n \"date_code\": \"<string>\",\n \"description\": \"<string>\",\n \"eccn\": \"<string>\",\n \"lot_no\": \"<string>\",\n \"moq\": 123,\n \"mpq\": 123,\n \"packaging\": \"<string>\"\n },\n \"batch_id\": \"<string>\",\n \"company\": \"<string>\",\n \"contact\": {\n \"methods\": [\n \"<string>\"\n ],\n \"reply_url\": \"<string>\"\n },\n \"encrypted\": {\n \"ciphertext\": \"<string>\",\n \"payload\": {}\n },\n \"errors\": {},\n \"image_url\": \"<string>\",\n \"internal_no\": \"<string>\",\n \"material_no\": \"<string>\",\n \"mfr\": \"<string>\",\n \"qty\": 123,\n \"timing\": {\n \"expiry\": 123,\n \"lead_time\": \"<string>\",\n \"lead_time_int\": 123,\n \"required_date\": 123\n },\n \"type\": \"<string>\",\n \"unit_price\": 123\n }\n ],\n \"urls\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.seminode.com/v1/me/listings/publish")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"listings\": [\n {\n \"attributes\": {\n \"coo\": \"<string>\",\n \"currency\": \"<string>\",\n \"custom\": {},\n \"date_code\": \"<string>\",\n \"description\": \"<string>\",\n \"eccn\": \"<string>\",\n \"lot_no\": \"<string>\",\n \"moq\": 123,\n \"mpq\": 123,\n \"packaging\": \"<string>\"\n },\n \"batch_id\": \"<string>\",\n \"company\": \"<string>\",\n \"contact\": {\n \"methods\": [\n \"<string>\"\n ],\n \"reply_url\": \"<string>\"\n },\n \"encrypted\": {\n \"ciphertext\": \"<string>\",\n \"payload\": {}\n },\n \"errors\": {},\n \"image_url\": \"<string>\",\n \"internal_no\": \"<string>\",\n \"material_no\": \"<string>\",\n \"mfr\": \"<string>\",\n \"qty\": 123,\n \"timing\": {\n \"expiry\": 123,\n \"lead_time\": \"<string>\",\n \"lead_time_int\": 123,\n \"required_date\": 123\n },\n \"type\": \"<string>\",\n \"unit_price\": 123\n }\n ],\n \"urls\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.seminode.com/v1/me/listings/publish")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"listings\": [\n {\n \"attributes\": {\n \"coo\": \"<string>\",\n \"currency\": \"<string>\",\n \"custom\": {},\n \"date_code\": \"<string>\",\n \"description\": \"<string>\",\n \"eccn\": \"<string>\",\n \"lot_no\": \"<string>\",\n \"moq\": 123,\n \"mpq\": 123,\n \"packaging\": \"<string>\"\n },\n \"batch_id\": \"<string>\",\n \"company\": \"<string>\",\n \"contact\": {\n \"methods\": [\n \"<string>\"\n ],\n \"reply_url\": \"<string>\"\n },\n \"encrypted\": {\n \"ciphertext\": \"<string>\",\n \"payload\": {}\n },\n \"errors\": {},\n \"image_url\": \"<string>\",\n \"internal_no\": \"<string>\",\n \"material_no\": \"<string>\",\n \"mfr\": \"<string>\",\n \"qty\": 123,\n \"timing\": {\n \"expiry\": 123,\n \"lead_time\": \"<string>\",\n \"lead_time_int\": 123,\n \"required_date\": 123\n },\n \"type\": \"<string>\",\n \"unit_price\": 123\n }\n ],\n \"urls\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"detail": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Listings
Publish Listings
Publish one or more listings created by the calling user’s company. If no node URLs are specified, all write-enabled nodes for the authenticated company are targeted.
POST
/
me
/
listings
/
publish
Publish Listings
curl --request POST \
--url https://api.seminode.com/v1/me/listings/publish \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"listings": [
{
"attributes": {
"coo": "<string>",
"currency": "<string>",
"custom": {},
"date_code": "<string>",
"description": "<string>",
"eccn": "<string>",
"lot_no": "<string>",
"moq": 123,
"mpq": 123,
"packaging": "<string>"
},
"batch_id": "<string>",
"company": "<string>",
"contact": {
"methods": [
"<string>"
],
"reply_url": "<string>"
},
"encrypted": {
"ciphertext": "<string>",
"payload": {}
},
"errors": {},
"image_url": "<string>",
"internal_no": "<string>",
"material_no": "<string>",
"mfr": "<string>",
"qty": 123,
"timing": {
"expiry": 123,
"lead_time": "<string>",
"lead_time_int": 123,
"required_date": 123
},
"type": "<string>",
"unit_price": 123
}
],
"urls": [
"<string>"
]
}
'import requests
url = "https://api.seminode.com/v1/me/listings/publish"
payload = {
"listings": [
{
"attributes": {
"coo": "<string>",
"currency": "<string>",
"custom": {},
"date_code": "<string>",
"description": "<string>",
"eccn": "<string>",
"lot_no": "<string>",
"moq": 123,
"mpq": 123,
"packaging": "<string>"
},
"batch_id": "<string>",
"company": "<string>",
"contact": {
"methods": ["<string>"],
"reply_url": "<string>"
},
"encrypted": {
"ciphertext": "<string>",
"payload": {}
},
"errors": {},
"image_url": "<string>",
"internal_no": "<string>",
"material_no": "<string>",
"mfr": "<string>",
"qty": 123,
"timing": {
"expiry": 123,
"lead_time": "<string>",
"lead_time_int": 123,
"required_date": 123
},
"type": "<string>",
"unit_price": 123
}
],
"urls": ["<string>"]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
listings: [
{
attributes: {
coo: '<string>',
currency: '<string>',
custom: {},
date_code: '<string>',
description: '<string>',
eccn: '<string>',
lot_no: '<string>',
moq: 123,
mpq: 123,
packaging: '<string>'
},
batch_id: '<string>',
company: '<string>',
contact: {methods: ['<string>'], reply_url: '<string>'},
encrypted: {ciphertext: '<string>', payload: {}},
errors: {},
image_url: '<string>',
internal_no: '<string>',
material_no: '<string>',
mfr: '<string>',
qty: 123,
timing: {expiry: 123, lead_time: '<string>', lead_time_int: 123, required_date: 123},
type: '<string>',
unit_price: 123
}
],
urls: ['<string>']
})
};
fetch('https://api.seminode.com/v1/me/listings/publish', 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.seminode.com/v1/me/listings/publish",
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([
'listings' => [
[
'attributes' => [
'coo' => '<string>',
'currency' => '<string>',
'custom' => [
],
'date_code' => '<string>',
'description' => '<string>',
'eccn' => '<string>',
'lot_no' => '<string>',
'moq' => 123,
'mpq' => 123,
'packaging' => '<string>'
],
'batch_id' => '<string>',
'company' => '<string>',
'contact' => [
'methods' => [
'<string>'
],
'reply_url' => '<string>'
],
'encrypted' => [
'ciphertext' => '<string>',
'payload' => [
]
],
'errors' => [
],
'image_url' => '<string>',
'internal_no' => '<string>',
'material_no' => '<string>',
'mfr' => '<string>',
'qty' => 123,
'timing' => [
'expiry' => 123,
'lead_time' => '<string>',
'lead_time_int' => 123,
'required_date' => 123
],
'type' => '<string>',
'unit_price' => 123
]
],
'urls' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.seminode.com/v1/me/listings/publish"
payload := strings.NewReader("{\n \"listings\": [\n {\n \"attributes\": {\n \"coo\": \"<string>\",\n \"currency\": \"<string>\",\n \"custom\": {},\n \"date_code\": \"<string>\",\n \"description\": \"<string>\",\n \"eccn\": \"<string>\",\n \"lot_no\": \"<string>\",\n \"moq\": 123,\n \"mpq\": 123,\n \"packaging\": \"<string>\"\n },\n \"batch_id\": \"<string>\",\n \"company\": \"<string>\",\n \"contact\": {\n \"methods\": [\n \"<string>\"\n ],\n \"reply_url\": \"<string>\"\n },\n \"encrypted\": {\n \"ciphertext\": \"<string>\",\n \"payload\": {}\n },\n \"errors\": {},\n \"image_url\": \"<string>\",\n \"internal_no\": \"<string>\",\n \"material_no\": \"<string>\",\n \"mfr\": \"<string>\",\n \"qty\": 123,\n \"timing\": {\n \"expiry\": 123,\n \"lead_time\": \"<string>\",\n \"lead_time_int\": 123,\n \"required_date\": 123\n },\n \"type\": \"<string>\",\n \"unit_price\": 123\n }\n ],\n \"urls\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.seminode.com/v1/me/listings/publish")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"listings\": [\n {\n \"attributes\": {\n \"coo\": \"<string>\",\n \"currency\": \"<string>\",\n \"custom\": {},\n \"date_code\": \"<string>\",\n \"description\": \"<string>\",\n \"eccn\": \"<string>\",\n \"lot_no\": \"<string>\",\n \"moq\": 123,\n \"mpq\": 123,\n \"packaging\": \"<string>\"\n },\n \"batch_id\": \"<string>\",\n \"company\": \"<string>\",\n \"contact\": {\n \"methods\": [\n \"<string>\"\n ],\n \"reply_url\": \"<string>\"\n },\n \"encrypted\": {\n \"ciphertext\": \"<string>\",\n \"payload\": {}\n },\n \"errors\": {},\n \"image_url\": \"<string>\",\n \"internal_no\": \"<string>\",\n \"material_no\": \"<string>\",\n \"mfr\": \"<string>\",\n \"qty\": 123,\n \"timing\": {\n \"expiry\": 123,\n \"lead_time\": \"<string>\",\n \"lead_time_int\": 123,\n \"required_date\": 123\n },\n \"type\": \"<string>\",\n \"unit_price\": 123\n }\n ],\n \"urls\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.seminode.com/v1/me/listings/publish")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"listings\": [\n {\n \"attributes\": {\n \"coo\": \"<string>\",\n \"currency\": \"<string>\",\n \"custom\": {},\n \"date_code\": \"<string>\",\n \"description\": \"<string>\",\n \"eccn\": \"<string>\",\n \"lot_no\": \"<string>\",\n \"moq\": 123,\n \"mpq\": 123,\n \"packaging\": \"<string>\"\n },\n \"batch_id\": \"<string>\",\n \"company\": \"<string>\",\n \"contact\": {\n \"methods\": [\n \"<string>\"\n ],\n \"reply_url\": \"<string>\"\n },\n \"encrypted\": {\n \"ciphertext\": \"<string>\",\n \"payload\": {}\n },\n \"errors\": {},\n \"image_url\": \"<string>\",\n \"internal_no\": \"<string>\",\n \"material_no\": \"<string>\",\n \"mfr\": \"<string>\",\n \"qty\": 123,\n \"timing\": {\n \"expiry\": 123,\n \"lead_time\": \"<string>\",\n \"lead_time_int\": 123,\n \"required_date\": 123\n },\n \"type\": \"<string>\",\n \"unit_price\": 123\n }\n ],\n \"urls\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"detail": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Was this page helpful?
⌘I

