Creates a Wine Product
curl --request POST \
--url https://api.example.com/api/v1/Products/Skus/Wine \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"supplierId": "<string>",
"sku": "<string>",
"caseQuantity": 123,
"srp": 123,
"brandName": "<string>",
"appellation": "<string>",
"alcoholType": "<string>",
"alcoholPercentage": 123,
"bottleSize": "<string>",
"fancifulName": "<string>",
"varietal": "<string>",
"vineyardDesignation": "<string>",
"countryOfOrigin": "US",
"regionOfOrigin": "<string>",
"colaNumber": "<string>",
"vintage": "<string>",
"sellerAccountNumbers": [
"<string>"
]
}
'import requests
url = "https://api.example.com/api/v1/Products/Skus/Wine"
payload = {
"supplierId": "<string>",
"sku": "<string>",
"caseQuantity": 123,
"srp": 123,
"brandName": "<string>",
"appellation": "<string>",
"alcoholType": "<string>",
"alcoholPercentage": 123,
"bottleSize": "<string>",
"fancifulName": "<string>",
"varietal": "<string>",
"vineyardDesignation": "<string>",
"countryOfOrigin": "US",
"regionOfOrigin": "<string>",
"colaNumber": "<string>",
"vintage": "<string>",
"sellerAccountNumbers": ["<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({
supplierId: '<string>',
sku: '<string>',
caseQuantity: 123,
srp: 123,
brandName: '<string>',
appellation: '<string>',
alcoholType: '<string>',
alcoholPercentage: 123,
bottleSize: '<string>',
fancifulName: '<string>',
varietal: '<string>',
vineyardDesignation: '<string>',
countryOfOrigin: 'US',
regionOfOrigin: '<string>',
colaNumber: '<string>',
vintage: '<string>',
sellerAccountNumbers: ['<string>']
})
};
fetch('https://api.example.com/api/v1/Products/Skus/Wine', 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.example.com/api/v1/Products/Skus/Wine",
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([
'supplierId' => '<string>',
'sku' => '<string>',
'caseQuantity' => 123,
'srp' => 123,
'brandName' => '<string>',
'appellation' => '<string>',
'alcoholType' => '<string>',
'alcoholPercentage' => 123,
'bottleSize' => '<string>',
'fancifulName' => '<string>',
'varietal' => '<string>',
'vineyardDesignation' => '<string>',
'countryOfOrigin' => 'US',
'regionOfOrigin' => '<string>',
'colaNumber' => '<string>',
'vintage' => '<string>',
'sellerAccountNumbers' => [
'<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.example.com/api/v1/Products/Skus/Wine"
payload := strings.NewReader("{\n \"supplierId\": \"<string>\",\n \"sku\": \"<string>\",\n \"caseQuantity\": 123,\n \"srp\": 123,\n \"brandName\": \"<string>\",\n \"appellation\": \"<string>\",\n \"alcoholType\": \"<string>\",\n \"alcoholPercentage\": 123,\n \"bottleSize\": \"<string>\",\n \"fancifulName\": \"<string>\",\n \"varietal\": \"<string>\",\n \"vineyardDesignation\": \"<string>\",\n \"countryOfOrigin\": \"US\",\n \"regionOfOrigin\": \"<string>\",\n \"colaNumber\": \"<string>\",\n \"vintage\": \"<string>\",\n \"sellerAccountNumbers\": [\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.example.com/api/v1/Products/Skus/Wine")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"supplierId\": \"<string>\",\n \"sku\": \"<string>\",\n \"caseQuantity\": 123,\n \"srp\": 123,\n \"brandName\": \"<string>\",\n \"appellation\": \"<string>\",\n \"alcoholType\": \"<string>\",\n \"alcoholPercentage\": 123,\n \"bottleSize\": \"<string>\",\n \"fancifulName\": \"<string>\",\n \"varietal\": \"<string>\",\n \"vineyardDesignation\": \"<string>\",\n \"countryOfOrigin\": \"US\",\n \"regionOfOrigin\": \"<string>\",\n \"colaNumber\": \"<string>\",\n \"vintage\": \"<string>\",\n \"sellerAccountNumbers\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/Products/Skus/Wine")
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 \"supplierId\": \"<string>\",\n \"sku\": \"<string>\",\n \"caseQuantity\": 123,\n \"srp\": 123,\n \"brandName\": \"<string>\",\n \"appellation\": \"<string>\",\n \"alcoholType\": \"<string>\",\n \"alcoholPercentage\": 123,\n \"bottleSize\": \"<string>\",\n \"fancifulName\": \"<string>\",\n \"varietal\": \"<string>\",\n \"vineyardDesignation\": \"<string>\",\n \"countryOfOrigin\": \"US\",\n \"regionOfOrigin\": \"<string>\",\n \"colaNumber\": \"<string>\",\n \"vintage\": \"<string>\",\n \"sellerAccountNumbers\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"isSuccess": true,
"message": "<string>",
"payload": "<string>"
}Creates a Wine Product
POST
/
api
/
v1
/
Products
/
Skus
/
Wine
Creates a Wine Product
curl --request POST \
--url https://api.example.com/api/v1/Products/Skus/Wine \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"supplierId": "<string>",
"sku": "<string>",
"caseQuantity": 123,
"srp": 123,
"brandName": "<string>",
"appellation": "<string>",
"alcoholType": "<string>",
"alcoholPercentage": 123,
"bottleSize": "<string>",
"fancifulName": "<string>",
"varietal": "<string>",
"vineyardDesignation": "<string>",
"countryOfOrigin": "US",
"regionOfOrigin": "<string>",
"colaNumber": "<string>",
"vintage": "<string>",
"sellerAccountNumbers": [
"<string>"
]
}
'import requests
url = "https://api.example.com/api/v1/Products/Skus/Wine"
payload = {
"supplierId": "<string>",
"sku": "<string>",
"caseQuantity": 123,
"srp": 123,
"brandName": "<string>",
"appellation": "<string>",
"alcoholType": "<string>",
"alcoholPercentage": 123,
"bottleSize": "<string>",
"fancifulName": "<string>",
"varietal": "<string>",
"vineyardDesignation": "<string>",
"countryOfOrigin": "US",
"regionOfOrigin": "<string>",
"colaNumber": "<string>",
"vintage": "<string>",
"sellerAccountNumbers": ["<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({
supplierId: '<string>',
sku: '<string>',
caseQuantity: 123,
srp: 123,
brandName: '<string>',
appellation: '<string>',
alcoholType: '<string>',
alcoholPercentage: 123,
bottleSize: '<string>',
fancifulName: '<string>',
varietal: '<string>',
vineyardDesignation: '<string>',
countryOfOrigin: 'US',
regionOfOrigin: '<string>',
colaNumber: '<string>',
vintage: '<string>',
sellerAccountNumbers: ['<string>']
})
};
fetch('https://api.example.com/api/v1/Products/Skus/Wine', 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.example.com/api/v1/Products/Skus/Wine",
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([
'supplierId' => '<string>',
'sku' => '<string>',
'caseQuantity' => 123,
'srp' => 123,
'brandName' => '<string>',
'appellation' => '<string>',
'alcoholType' => '<string>',
'alcoholPercentage' => 123,
'bottleSize' => '<string>',
'fancifulName' => '<string>',
'varietal' => '<string>',
'vineyardDesignation' => '<string>',
'countryOfOrigin' => 'US',
'regionOfOrigin' => '<string>',
'colaNumber' => '<string>',
'vintage' => '<string>',
'sellerAccountNumbers' => [
'<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.example.com/api/v1/Products/Skus/Wine"
payload := strings.NewReader("{\n \"supplierId\": \"<string>\",\n \"sku\": \"<string>\",\n \"caseQuantity\": 123,\n \"srp\": 123,\n \"brandName\": \"<string>\",\n \"appellation\": \"<string>\",\n \"alcoholType\": \"<string>\",\n \"alcoholPercentage\": 123,\n \"bottleSize\": \"<string>\",\n \"fancifulName\": \"<string>\",\n \"varietal\": \"<string>\",\n \"vineyardDesignation\": \"<string>\",\n \"countryOfOrigin\": \"US\",\n \"regionOfOrigin\": \"<string>\",\n \"colaNumber\": \"<string>\",\n \"vintage\": \"<string>\",\n \"sellerAccountNumbers\": [\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.example.com/api/v1/Products/Skus/Wine")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"supplierId\": \"<string>\",\n \"sku\": \"<string>\",\n \"caseQuantity\": 123,\n \"srp\": 123,\n \"brandName\": \"<string>\",\n \"appellation\": \"<string>\",\n \"alcoholType\": \"<string>\",\n \"alcoholPercentage\": 123,\n \"bottleSize\": \"<string>\",\n \"fancifulName\": \"<string>\",\n \"varietal\": \"<string>\",\n \"vineyardDesignation\": \"<string>\",\n \"countryOfOrigin\": \"US\",\n \"regionOfOrigin\": \"<string>\",\n \"colaNumber\": \"<string>\",\n \"vintage\": \"<string>\",\n \"sellerAccountNumbers\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/Products/Skus/Wine")
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 \"supplierId\": \"<string>\",\n \"sku\": \"<string>\",\n \"caseQuantity\": 123,\n \"srp\": 123,\n \"brandName\": \"<string>\",\n \"appellation\": \"<string>\",\n \"alcoholType\": \"<string>\",\n \"alcoholPercentage\": 123,\n \"bottleSize\": \"<string>\",\n \"fancifulName\": \"<string>\",\n \"varietal\": \"<string>\",\n \"vineyardDesignation\": \"<string>\",\n \"countryOfOrigin\": \"US\",\n \"regionOfOrigin\": \"<string>\",\n \"colaNumber\": \"<string>\",\n \"vintage\": \"<string>\",\n \"sellerAccountNumbers\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"isSuccess": true,
"message": "<string>",
"payload": "<string>"
}Authorizations
Enter the Bearer AccessToken; Example: 'Bearer 12345abcdef'
Body
application/json
The product to create
Creates a Wine SKU. The Item type for Wine is 'WINE'
SupplierId is the unique ID for the owner of items in the system
Minimum string length:
1The SKU of the customer
Minimum string length:
2The Case Quantity
Suggested Retail Price
The Brand Name
Required string length:
1 - 100Appellation
Required string length:
1 - 100Alcohol Type
SPARKLING
SPIRIT
STILL
Minimum string length:
1Alcohol Percentage
eg 20
Bottle size in ML
Minimum string length:
1The FancifulName
Maximum string length:
100Varietal
Maximum string length:
100Vineyard Designation
Maximum string length:
150Only US
Maximum string length:
2Region
Maximum string length:
100TTB Approval Number
Maximum string length:
25Vintage
Maximum string length:
25A list of Seller account number who can sell this
Was this page helpful?
⌘I