Create nomenclature
curl --request POST \
--url https://api.nomi.tools/v1/nomenclature \
--header 'Accept: <accept>' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"unitId": "<string>",
"id": "<string>",
"categoryId": "<string>",
"externalId": "<string>",
"notes": "<string>",
"sku": "<string>",
"defaultSellingPrice": 123,
"defaultSellingCurrencyId": "<string>",
"averagePriceCurrencyId": "<string>",
"legalEntityId": "<string>",
"dateOfReceipt": "2023-12-25",
"initialStockQuantity": 123,
"averagePrice": 123,
"isArchived": true,
"isIgnoreCostRecalc": true
}
'import requests
url = "https://api.nomi.tools/v1/nomenclature"
payload = {
"name": "<string>",
"unitId": "<string>",
"id": "<string>",
"categoryId": "<string>",
"externalId": "<string>",
"notes": "<string>",
"sku": "<string>",
"defaultSellingPrice": 123,
"defaultSellingCurrencyId": "<string>",
"averagePriceCurrencyId": "<string>",
"legalEntityId": "<string>",
"dateOfReceipt": "2023-12-25",
"initialStockQuantity": 123,
"averagePrice": 123,
"isArchived": True,
"isIgnoreCostRecalc": True
}
headers = {
"Accept": "<accept>",
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Accept: '<accept>',
Authorization: 'Basic <encoded-value>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
unitId: '<string>',
id: '<string>',
categoryId: '<string>',
externalId: '<string>',
notes: '<string>',
sku: '<string>',
defaultSellingPrice: 123,
defaultSellingCurrencyId: '<string>',
averagePriceCurrencyId: '<string>',
legalEntityId: '<string>',
dateOfReceipt: '2023-12-25',
initialStockQuantity: 123,
averagePrice: 123,
isArchived: true,
isIgnoreCostRecalc: true
})
};
fetch('https://api.nomi.tools/v1/nomenclature', 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.nomi.tools/v1/nomenclature",
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([
'name' => '<string>',
'unitId' => '<string>',
'id' => '<string>',
'categoryId' => '<string>',
'externalId' => '<string>',
'notes' => '<string>',
'sku' => '<string>',
'defaultSellingPrice' => 123,
'defaultSellingCurrencyId' => '<string>',
'averagePriceCurrencyId' => '<string>',
'legalEntityId' => '<string>',
'dateOfReceipt' => '2023-12-25',
'initialStockQuantity' => 123,
'averagePrice' => 123,
'isArchived' => true,
'isIgnoreCostRecalc' => true
]),
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"Authorization: Basic <encoded-value>",
"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.nomi.tools/v1/nomenclature"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"unitId\": \"<string>\",\n \"id\": \"<string>\",\n \"categoryId\": \"<string>\",\n \"externalId\": \"<string>\",\n \"notes\": \"<string>\",\n \"sku\": \"<string>\",\n \"defaultSellingPrice\": 123,\n \"defaultSellingCurrencyId\": \"<string>\",\n \"averagePriceCurrencyId\": \"<string>\",\n \"legalEntityId\": \"<string>\",\n \"dateOfReceipt\": \"2023-12-25\",\n \"initialStockQuantity\": 123,\n \"averagePrice\": 123,\n \"isArchived\": true,\n \"isIgnoreCostRecalc\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Accept", "<accept>")
req.Header.Add("Authorization", "Basic <encoded-value>")
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.nomi.tools/v1/nomenclature")
.header("Accept", "<accept>")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"unitId\": \"<string>\",\n \"id\": \"<string>\",\n \"categoryId\": \"<string>\",\n \"externalId\": \"<string>\",\n \"notes\": \"<string>\",\n \"sku\": \"<string>\",\n \"defaultSellingPrice\": 123,\n \"defaultSellingCurrencyId\": \"<string>\",\n \"averagePriceCurrencyId\": \"<string>\",\n \"legalEntityId\": \"<string>\",\n \"dateOfReceipt\": \"2023-12-25\",\n \"initialStockQuantity\": 123,\n \"averagePrice\": 123,\n \"isArchived\": true,\n \"isIgnoreCostRecalc\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nomi.tools/v1/nomenclature")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Accept"] = '<accept>'
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"unitId\": \"<string>\",\n \"id\": \"<string>\",\n \"categoryId\": \"<string>\",\n \"externalId\": \"<string>\",\n \"notes\": \"<string>\",\n \"sku\": \"<string>\",\n \"defaultSellingPrice\": 123,\n \"defaultSellingCurrencyId\": \"<string>\",\n \"averagePriceCurrencyId\": \"<string>\",\n \"legalEntityId\": \"<string>\",\n \"dateOfReceipt\": \"2023-12-25\",\n \"initialStockQuantity\": 123,\n \"averagePrice\": 123,\n \"isArchived\": true,\n \"isIgnoreCostRecalc\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>"
}Nomenclature
Create nomenclature
Create a new nomenclature item.
POST
/
v1
/
nomenclature
Create nomenclature
curl --request POST \
--url https://api.nomi.tools/v1/nomenclature \
--header 'Accept: <accept>' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"unitId": "<string>",
"id": "<string>",
"categoryId": "<string>",
"externalId": "<string>",
"notes": "<string>",
"sku": "<string>",
"defaultSellingPrice": 123,
"defaultSellingCurrencyId": "<string>",
"averagePriceCurrencyId": "<string>",
"legalEntityId": "<string>",
"dateOfReceipt": "2023-12-25",
"initialStockQuantity": 123,
"averagePrice": 123,
"isArchived": true,
"isIgnoreCostRecalc": true
}
'import requests
url = "https://api.nomi.tools/v1/nomenclature"
payload = {
"name": "<string>",
"unitId": "<string>",
"id": "<string>",
"categoryId": "<string>",
"externalId": "<string>",
"notes": "<string>",
"sku": "<string>",
"defaultSellingPrice": 123,
"defaultSellingCurrencyId": "<string>",
"averagePriceCurrencyId": "<string>",
"legalEntityId": "<string>",
"dateOfReceipt": "2023-12-25",
"initialStockQuantity": 123,
"averagePrice": 123,
"isArchived": True,
"isIgnoreCostRecalc": True
}
headers = {
"Accept": "<accept>",
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Accept: '<accept>',
Authorization: 'Basic <encoded-value>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
unitId: '<string>',
id: '<string>',
categoryId: '<string>',
externalId: '<string>',
notes: '<string>',
sku: '<string>',
defaultSellingPrice: 123,
defaultSellingCurrencyId: '<string>',
averagePriceCurrencyId: '<string>',
legalEntityId: '<string>',
dateOfReceipt: '2023-12-25',
initialStockQuantity: 123,
averagePrice: 123,
isArchived: true,
isIgnoreCostRecalc: true
})
};
fetch('https://api.nomi.tools/v1/nomenclature', 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.nomi.tools/v1/nomenclature",
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([
'name' => '<string>',
'unitId' => '<string>',
'id' => '<string>',
'categoryId' => '<string>',
'externalId' => '<string>',
'notes' => '<string>',
'sku' => '<string>',
'defaultSellingPrice' => 123,
'defaultSellingCurrencyId' => '<string>',
'averagePriceCurrencyId' => '<string>',
'legalEntityId' => '<string>',
'dateOfReceipt' => '2023-12-25',
'initialStockQuantity' => 123,
'averagePrice' => 123,
'isArchived' => true,
'isIgnoreCostRecalc' => true
]),
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"Authorization: Basic <encoded-value>",
"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.nomi.tools/v1/nomenclature"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"unitId\": \"<string>\",\n \"id\": \"<string>\",\n \"categoryId\": \"<string>\",\n \"externalId\": \"<string>\",\n \"notes\": \"<string>\",\n \"sku\": \"<string>\",\n \"defaultSellingPrice\": 123,\n \"defaultSellingCurrencyId\": \"<string>\",\n \"averagePriceCurrencyId\": \"<string>\",\n \"legalEntityId\": \"<string>\",\n \"dateOfReceipt\": \"2023-12-25\",\n \"initialStockQuantity\": 123,\n \"averagePrice\": 123,\n \"isArchived\": true,\n \"isIgnoreCostRecalc\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Accept", "<accept>")
req.Header.Add("Authorization", "Basic <encoded-value>")
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.nomi.tools/v1/nomenclature")
.header("Accept", "<accept>")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"unitId\": \"<string>\",\n \"id\": \"<string>\",\n \"categoryId\": \"<string>\",\n \"externalId\": \"<string>\",\n \"notes\": \"<string>\",\n \"sku\": \"<string>\",\n \"defaultSellingPrice\": 123,\n \"defaultSellingCurrencyId\": \"<string>\",\n \"averagePriceCurrencyId\": \"<string>\",\n \"legalEntityId\": \"<string>\",\n \"dateOfReceipt\": \"2023-12-25\",\n \"initialStockQuantity\": 123,\n \"averagePrice\": 123,\n \"isArchived\": true,\n \"isIgnoreCostRecalc\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nomi.tools/v1/nomenclature")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Accept"] = '<accept>'
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"unitId\": \"<string>\",\n \"id\": \"<string>\",\n \"categoryId\": \"<string>\",\n \"externalId\": \"<string>\",\n \"notes\": \"<string>\",\n \"sku\": \"<string>\",\n \"defaultSellingPrice\": 123,\n \"defaultSellingCurrencyId\": \"<string>\",\n \"averagePriceCurrencyId\": \"<string>\",\n \"legalEntityId\": \"<string>\",\n \"dateOfReceipt\": \"2023-12-25\",\n \"initialStockQuantity\": 123,\n \"averagePrice\": 123,\n \"isArchived\": true,\n \"isIgnoreCostRecalc\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>"
}Authorizations
Use HTTP Basic Authentication. Provide your email as login and PPT token as the password.
Headers
Available options:
application/json Body
application/json
Available options:
product, service Response
200 - application/json
Nomenclature created successfully