Updates a Wine Product
curl --request PATCH \
--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": "<string>",
"regionOfOrigin": "<string>",
"colaNumber": "<string>",
"vintage": "<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": "<string>",
"regionOfOrigin": "<string>",
"colaNumber": "<string>",
"vintage": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
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: '<string>',
regionOfOrigin: '<string>',
colaNumber: '<string>',
vintage: '<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 => "PATCH",
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' => '<string>',
'regionOfOrigin' => '<string>',
'colaNumber' => '<string>',
'vintage' => '<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\": \"<string>\",\n \"regionOfOrigin\": \"<string>\",\n \"colaNumber\": \"<string>\",\n \"vintage\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("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\": \"<string>\",\n \"regionOfOrigin\": \"<string>\",\n \"colaNumber\": \"<string>\",\n \"vintage\": \"<string>\"\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::Patch.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\": \"<string>\",\n \"regionOfOrigin\": \"<string>\",\n \"colaNumber\": \"<string>\",\n \"vintage\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"isSuccess": true,
"message": "<string>",
"payload": "<string>"
}Updates a Wine Product
PATCH
/
api
/
v1
/
Products
/
Skus
/
Wine
Updates a Wine Product
curl --request PATCH \
--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": "<string>",
"regionOfOrigin": "<string>",
"colaNumber": "<string>",
"vintage": "<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": "<string>",
"regionOfOrigin": "<string>",
"colaNumber": "<string>",
"vintage": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
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: '<string>',
regionOfOrigin: '<string>',
colaNumber: '<string>',
vintage: '<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 => "PATCH",
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' => '<string>',
'regionOfOrigin' => '<string>',
'colaNumber' => '<string>',
'vintage' => '<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\": \"<string>\",\n \"regionOfOrigin\": \"<string>\",\n \"colaNumber\": \"<string>\",\n \"vintage\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("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\": \"<string>\",\n \"regionOfOrigin\": \"<string>\",\n \"colaNumber\": \"<string>\",\n \"vintage\": \"<string>\"\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::Patch.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\": \"<string>\",\n \"regionOfOrigin\": \"<string>\",\n \"colaNumber\": \"<string>\",\n \"vintage\": \"<string>\"\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 update
SupplierId is the unique ID for the owner of items in the system
Minimum string length:
1The SKU of the customer
Minimum string length:
1The Case Quantity
Suggested Retail Price
The Brand Name
Required string length:
1 - 80Appellation
Minimum string length:
1Alcohol Type
SPARKLING
SPIRIT
STILL
Required string length:
1 - 15Alcohol Percentage
eg 20
Bottle size in ML
Minimum string length:
1The FancifulName
Maximum string length:
150Varietal
Maximum string length:
80Vineyard Designation
Maximum string length:
80Only US
Maximum string length:
2Region
Maximum string length:
80TTB Approval Number
Maximum string length:
25Vintage
Maximum string length:
80Was this page helpful?
⌘I