curl --request PATCH \
--url https://api.jtl-cloud.com/erp/v2/suppliers/{supplierId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-tenant-id: <x-tenant-id>' \
--data '
{
"supplierNumber": "<string>",
"companyName": "<string>",
"contact": {
"emailAddress": "<string>",
"phoneNumber": "<string>",
"phoneExtension": "<string>",
"faxNumber": "<string>",
"contactName": "<string>"
},
"currencyIso": "<string>",
"languageIso": "<string>",
"status": "<string>",
"canDropship": true,
"supplierAccountNumber": "<string>",
"creditorNumber": 123,
"vatId": "<string>",
"freightCostAmount": 123,
"minimumOrderValueAmount": 123,
"smallQuantitySurchargeAmount": 123,
"cashDiscountPercentage": 123,
"cashDiscountDays": 123,
"paymentTermInDays": 123,
"freeShippingThresholdAmount": 123,
"deliveryTimeInDays": 123,
"website": "<string>",
"deliveryConditionNote": "<string>",
"comment": "<string>",
"defaultCompanyId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"defaultWarehouseId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"isVatExempt": true,
"isExcludedFromPurchaseList": true,
"allowsDropshipCashOnDelivery": true,
"allowsDropshipFreeLineItems": true,
"vatFreePositionThresholdAmount": 123
}
'import requests
url = "https://api.jtl-cloud.com/erp/v2/suppliers/{supplierId}"
payload = {
"supplierNumber": "<string>",
"companyName": "<string>",
"contact": {
"emailAddress": "<string>",
"phoneNumber": "<string>",
"phoneExtension": "<string>",
"faxNumber": "<string>",
"contactName": "<string>"
},
"currencyIso": "<string>",
"languageIso": "<string>",
"status": "<string>",
"canDropship": True,
"supplierAccountNumber": "<string>",
"creditorNumber": 123,
"vatId": "<string>",
"freightCostAmount": 123,
"minimumOrderValueAmount": 123,
"smallQuantitySurchargeAmount": 123,
"cashDiscountPercentage": 123,
"cashDiscountDays": 123,
"paymentTermInDays": 123,
"freeShippingThresholdAmount": 123,
"deliveryTimeInDays": 123,
"website": "<string>",
"deliveryConditionNote": "<string>",
"comment": "<string>",
"defaultCompanyId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"defaultWarehouseId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"isVatExempt": True,
"isExcludedFromPurchaseList": True,
"allowsDropshipCashOnDelivery": True,
"allowsDropshipFreeLineItems": True,
"vatFreePositionThresholdAmount": 123
}
headers = {
"x-tenant-id": "<x-tenant-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'x-tenant-id': '<x-tenant-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
supplierNumber: '<string>',
companyName: '<string>',
contact: {
emailAddress: '<string>',
phoneNumber: '<string>',
phoneExtension: '<string>',
faxNumber: '<string>',
contactName: '<string>'
},
currencyIso: '<string>',
languageIso: '<string>',
status: '<string>',
canDropship: true,
supplierAccountNumber: '<string>',
creditorNumber: 123,
vatId: '<string>',
freightCostAmount: 123,
minimumOrderValueAmount: 123,
smallQuantitySurchargeAmount: 123,
cashDiscountPercentage: 123,
cashDiscountDays: 123,
paymentTermInDays: 123,
freeShippingThresholdAmount: 123,
deliveryTimeInDays: 123,
website: '<string>',
deliveryConditionNote: '<string>',
comment: '<string>',
defaultCompanyId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
defaultWarehouseId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
isVatExempt: true,
isExcludedFromPurchaseList: true,
allowsDropshipCashOnDelivery: true,
allowsDropshipFreeLineItems: true,
vatFreePositionThresholdAmount: 123
})
};
fetch('https://api.jtl-cloud.com/erp/v2/suppliers/{supplierId}', 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.jtl-cloud.com/erp/v2/suppliers/{supplierId}",
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([
'supplierNumber' => '<string>',
'companyName' => '<string>',
'contact' => [
'emailAddress' => '<string>',
'phoneNumber' => '<string>',
'phoneExtension' => '<string>',
'faxNumber' => '<string>',
'contactName' => '<string>'
],
'currencyIso' => '<string>',
'languageIso' => '<string>',
'status' => '<string>',
'canDropship' => true,
'supplierAccountNumber' => '<string>',
'creditorNumber' => 123,
'vatId' => '<string>',
'freightCostAmount' => 123,
'minimumOrderValueAmount' => 123,
'smallQuantitySurchargeAmount' => 123,
'cashDiscountPercentage' => 123,
'cashDiscountDays' => 123,
'paymentTermInDays' => 123,
'freeShippingThresholdAmount' => 123,
'deliveryTimeInDays' => 123,
'website' => '<string>',
'deliveryConditionNote' => '<string>',
'comment' => '<string>',
'defaultCompanyId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'defaultWarehouseId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'isVatExempt' => true,
'isExcludedFromPurchaseList' => true,
'allowsDropshipCashOnDelivery' => true,
'allowsDropshipFreeLineItems' => true,
'vatFreePositionThresholdAmount' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"x-tenant-id: <x-tenant-id>"
],
]);
$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.jtl-cloud.com/erp/v2/suppliers/{supplierId}"
payload := strings.NewReader("{\n \"supplierNumber\": \"<string>\",\n \"companyName\": \"<string>\",\n \"contact\": {\n \"emailAddress\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"phoneExtension\": \"<string>\",\n \"faxNumber\": \"<string>\",\n \"contactName\": \"<string>\"\n },\n \"currencyIso\": \"<string>\",\n \"languageIso\": \"<string>\",\n \"status\": \"<string>\",\n \"canDropship\": true,\n \"supplierAccountNumber\": \"<string>\",\n \"creditorNumber\": 123,\n \"vatId\": \"<string>\",\n \"freightCostAmount\": 123,\n \"minimumOrderValueAmount\": 123,\n \"smallQuantitySurchargeAmount\": 123,\n \"cashDiscountPercentage\": 123,\n \"cashDiscountDays\": 123,\n \"paymentTermInDays\": 123,\n \"freeShippingThresholdAmount\": 123,\n \"deliveryTimeInDays\": 123,\n \"website\": \"<string>\",\n \"deliveryConditionNote\": \"<string>\",\n \"comment\": \"<string>\",\n \"defaultCompanyId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"defaultWarehouseId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"isVatExempt\": true,\n \"isExcludedFromPurchaseList\": true,\n \"allowsDropshipCashOnDelivery\": true,\n \"allowsDropshipFreeLineItems\": true,\n \"vatFreePositionThresholdAmount\": 123\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-tenant-id", "<x-tenant-id>")
req.Header.Add("Authorization", "Bearer <token>")
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.jtl-cloud.com/erp/v2/suppliers/{supplierId}")
.header("x-tenant-id", "<x-tenant-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"supplierNumber\": \"<string>\",\n \"companyName\": \"<string>\",\n \"contact\": {\n \"emailAddress\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"phoneExtension\": \"<string>\",\n \"faxNumber\": \"<string>\",\n \"contactName\": \"<string>\"\n },\n \"currencyIso\": \"<string>\",\n \"languageIso\": \"<string>\",\n \"status\": \"<string>\",\n \"canDropship\": true,\n \"supplierAccountNumber\": \"<string>\",\n \"creditorNumber\": 123,\n \"vatId\": \"<string>\",\n \"freightCostAmount\": 123,\n \"minimumOrderValueAmount\": 123,\n \"smallQuantitySurchargeAmount\": 123,\n \"cashDiscountPercentage\": 123,\n \"cashDiscountDays\": 123,\n \"paymentTermInDays\": 123,\n \"freeShippingThresholdAmount\": 123,\n \"deliveryTimeInDays\": 123,\n \"website\": \"<string>\",\n \"deliveryConditionNote\": \"<string>\",\n \"comment\": \"<string>\",\n \"defaultCompanyId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"defaultWarehouseId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"isVatExempt\": true,\n \"isExcludedFromPurchaseList\": true,\n \"allowsDropshipCashOnDelivery\": true,\n \"allowsDropshipFreeLineItems\": true,\n \"vatFreePositionThresholdAmount\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jtl-cloud.com/erp/v2/suppliers/{supplierId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-tenant-id"] = '<x-tenant-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"supplierNumber\": \"<string>\",\n \"companyName\": \"<string>\",\n \"contact\": {\n \"emailAddress\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"phoneExtension\": \"<string>\",\n \"faxNumber\": \"<string>\",\n \"contactName\": \"<string>\"\n },\n \"currencyIso\": \"<string>\",\n \"languageIso\": \"<string>\",\n \"status\": \"<string>\",\n \"canDropship\": true,\n \"supplierAccountNumber\": \"<string>\",\n \"creditorNumber\": 123,\n \"vatId\": \"<string>\",\n \"freightCostAmount\": 123,\n \"minimumOrderValueAmount\": 123,\n \"smallQuantitySurchargeAmount\": 123,\n \"cashDiscountPercentage\": 123,\n \"cashDiscountDays\": 123,\n \"paymentTermInDays\": 123,\n \"freeShippingThresholdAmount\": 123,\n \"deliveryTimeInDays\": 123,\n \"website\": \"<string>\",\n \"deliveryConditionNote\": \"<string>\",\n \"comment\": \"<string>\",\n \"defaultCompanyId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"defaultWarehouseId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"isVatExempt\": true,\n \"isExcludedFromPurchaseList\": true,\n \"allowsDropshipCashOnDelivery\": true,\n \"allowsDropshipFreeLineItems\": true,\n \"vatFreePositionThresholdAmount\": 123\n}"
response = http.request(request)
puts response.read_body{
"id": "b45f6432-2462-4c6f-b00f-1d9d01000000"
}Updates an existing Default-type supplier with PATCH semantics (omitted fields keep their existing value).
Updates an existing Default-type supplier with PATCH semantics (omitted fields keep their existing value).
curl --request PATCH \
--url https://api.jtl-cloud.com/erp/v2/suppliers/{supplierId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-tenant-id: <x-tenant-id>' \
--data '
{
"supplierNumber": "<string>",
"companyName": "<string>",
"contact": {
"emailAddress": "<string>",
"phoneNumber": "<string>",
"phoneExtension": "<string>",
"faxNumber": "<string>",
"contactName": "<string>"
},
"currencyIso": "<string>",
"languageIso": "<string>",
"status": "<string>",
"canDropship": true,
"supplierAccountNumber": "<string>",
"creditorNumber": 123,
"vatId": "<string>",
"freightCostAmount": 123,
"minimumOrderValueAmount": 123,
"smallQuantitySurchargeAmount": 123,
"cashDiscountPercentage": 123,
"cashDiscountDays": 123,
"paymentTermInDays": 123,
"freeShippingThresholdAmount": 123,
"deliveryTimeInDays": 123,
"website": "<string>",
"deliveryConditionNote": "<string>",
"comment": "<string>",
"defaultCompanyId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"defaultWarehouseId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"isVatExempt": true,
"isExcludedFromPurchaseList": true,
"allowsDropshipCashOnDelivery": true,
"allowsDropshipFreeLineItems": true,
"vatFreePositionThresholdAmount": 123
}
'import requests
url = "https://api.jtl-cloud.com/erp/v2/suppliers/{supplierId}"
payload = {
"supplierNumber": "<string>",
"companyName": "<string>",
"contact": {
"emailAddress": "<string>",
"phoneNumber": "<string>",
"phoneExtension": "<string>",
"faxNumber": "<string>",
"contactName": "<string>"
},
"currencyIso": "<string>",
"languageIso": "<string>",
"status": "<string>",
"canDropship": True,
"supplierAccountNumber": "<string>",
"creditorNumber": 123,
"vatId": "<string>",
"freightCostAmount": 123,
"minimumOrderValueAmount": 123,
"smallQuantitySurchargeAmount": 123,
"cashDiscountPercentage": 123,
"cashDiscountDays": 123,
"paymentTermInDays": 123,
"freeShippingThresholdAmount": 123,
"deliveryTimeInDays": 123,
"website": "<string>",
"deliveryConditionNote": "<string>",
"comment": "<string>",
"defaultCompanyId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"defaultWarehouseId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"isVatExempt": True,
"isExcludedFromPurchaseList": True,
"allowsDropshipCashOnDelivery": True,
"allowsDropshipFreeLineItems": True,
"vatFreePositionThresholdAmount": 123
}
headers = {
"x-tenant-id": "<x-tenant-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'x-tenant-id': '<x-tenant-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
supplierNumber: '<string>',
companyName: '<string>',
contact: {
emailAddress: '<string>',
phoneNumber: '<string>',
phoneExtension: '<string>',
faxNumber: '<string>',
contactName: '<string>'
},
currencyIso: '<string>',
languageIso: '<string>',
status: '<string>',
canDropship: true,
supplierAccountNumber: '<string>',
creditorNumber: 123,
vatId: '<string>',
freightCostAmount: 123,
minimumOrderValueAmount: 123,
smallQuantitySurchargeAmount: 123,
cashDiscountPercentage: 123,
cashDiscountDays: 123,
paymentTermInDays: 123,
freeShippingThresholdAmount: 123,
deliveryTimeInDays: 123,
website: '<string>',
deliveryConditionNote: '<string>',
comment: '<string>',
defaultCompanyId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
defaultWarehouseId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
isVatExempt: true,
isExcludedFromPurchaseList: true,
allowsDropshipCashOnDelivery: true,
allowsDropshipFreeLineItems: true,
vatFreePositionThresholdAmount: 123
})
};
fetch('https://api.jtl-cloud.com/erp/v2/suppliers/{supplierId}', 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.jtl-cloud.com/erp/v2/suppliers/{supplierId}",
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([
'supplierNumber' => '<string>',
'companyName' => '<string>',
'contact' => [
'emailAddress' => '<string>',
'phoneNumber' => '<string>',
'phoneExtension' => '<string>',
'faxNumber' => '<string>',
'contactName' => '<string>'
],
'currencyIso' => '<string>',
'languageIso' => '<string>',
'status' => '<string>',
'canDropship' => true,
'supplierAccountNumber' => '<string>',
'creditorNumber' => 123,
'vatId' => '<string>',
'freightCostAmount' => 123,
'minimumOrderValueAmount' => 123,
'smallQuantitySurchargeAmount' => 123,
'cashDiscountPercentage' => 123,
'cashDiscountDays' => 123,
'paymentTermInDays' => 123,
'freeShippingThresholdAmount' => 123,
'deliveryTimeInDays' => 123,
'website' => '<string>',
'deliveryConditionNote' => '<string>',
'comment' => '<string>',
'defaultCompanyId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'defaultWarehouseId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'isVatExempt' => true,
'isExcludedFromPurchaseList' => true,
'allowsDropshipCashOnDelivery' => true,
'allowsDropshipFreeLineItems' => true,
'vatFreePositionThresholdAmount' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"x-tenant-id: <x-tenant-id>"
],
]);
$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.jtl-cloud.com/erp/v2/suppliers/{supplierId}"
payload := strings.NewReader("{\n \"supplierNumber\": \"<string>\",\n \"companyName\": \"<string>\",\n \"contact\": {\n \"emailAddress\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"phoneExtension\": \"<string>\",\n \"faxNumber\": \"<string>\",\n \"contactName\": \"<string>\"\n },\n \"currencyIso\": \"<string>\",\n \"languageIso\": \"<string>\",\n \"status\": \"<string>\",\n \"canDropship\": true,\n \"supplierAccountNumber\": \"<string>\",\n \"creditorNumber\": 123,\n \"vatId\": \"<string>\",\n \"freightCostAmount\": 123,\n \"minimumOrderValueAmount\": 123,\n \"smallQuantitySurchargeAmount\": 123,\n \"cashDiscountPercentage\": 123,\n \"cashDiscountDays\": 123,\n \"paymentTermInDays\": 123,\n \"freeShippingThresholdAmount\": 123,\n \"deliveryTimeInDays\": 123,\n \"website\": \"<string>\",\n \"deliveryConditionNote\": \"<string>\",\n \"comment\": \"<string>\",\n \"defaultCompanyId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"defaultWarehouseId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"isVatExempt\": true,\n \"isExcludedFromPurchaseList\": true,\n \"allowsDropshipCashOnDelivery\": true,\n \"allowsDropshipFreeLineItems\": true,\n \"vatFreePositionThresholdAmount\": 123\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-tenant-id", "<x-tenant-id>")
req.Header.Add("Authorization", "Bearer <token>")
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.jtl-cloud.com/erp/v2/suppliers/{supplierId}")
.header("x-tenant-id", "<x-tenant-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"supplierNumber\": \"<string>\",\n \"companyName\": \"<string>\",\n \"contact\": {\n \"emailAddress\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"phoneExtension\": \"<string>\",\n \"faxNumber\": \"<string>\",\n \"contactName\": \"<string>\"\n },\n \"currencyIso\": \"<string>\",\n \"languageIso\": \"<string>\",\n \"status\": \"<string>\",\n \"canDropship\": true,\n \"supplierAccountNumber\": \"<string>\",\n \"creditorNumber\": 123,\n \"vatId\": \"<string>\",\n \"freightCostAmount\": 123,\n \"minimumOrderValueAmount\": 123,\n \"smallQuantitySurchargeAmount\": 123,\n \"cashDiscountPercentage\": 123,\n \"cashDiscountDays\": 123,\n \"paymentTermInDays\": 123,\n \"freeShippingThresholdAmount\": 123,\n \"deliveryTimeInDays\": 123,\n \"website\": \"<string>\",\n \"deliveryConditionNote\": \"<string>\",\n \"comment\": \"<string>\",\n \"defaultCompanyId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"defaultWarehouseId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"isVatExempt\": true,\n \"isExcludedFromPurchaseList\": true,\n \"allowsDropshipCashOnDelivery\": true,\n \"allowsDropshipFreeLineItems\": true,\n \"vatFreePositionThresholdAmount\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jtl-cloud.com/erp/v2/suppliers/{supplierId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-tenant-id"] = '<x-tenant-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"supplierNumber\": \"<string>\",\n \"companyName\": \"<string>\",\n \"contact\": {\n \"emailAddress\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"phoneExtension\": \"<string>\",\n \"faxNumber\": \"<string>\",\n \"contactName\": \"<string>\"\n },\n \"currencyIso\": \"<string>\",\n \"languageIso\": \"<string>\",\n \"status\": \"<string>\",\n \"canDropship\": true,\n \"supplierAccountNumber\": \"<string>\",\n \"creditorNumber\": 123,\n \"vatId\": \"<string>\",\n \"freightCostAmount\": 123,\n \"minimumOrderValueAmount\": 123,\n \"smallQuantitySurchargeAmount\": 123,\n \"cashDiscountPercentage\": 123,\n \"cashDiscountDays\": 123,\n \"paymentTermInDays\": 123,\n \"freeShippingThresholdAmount\": 123,\n \"deliveryTimeInDays\": 123,\n \"website\": \"<string>\",\n \"deliveryConditionNote\": \"<string>\",\n \"comment\": \"<string>\",\n \"defaultCompanyId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"defaultWarehouseId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"isVatExempt\": true,\n \"isExcludedFromPurchaseList\": true,\n \"allowsDropshipCashOnDelivery\": true,\n \"allowsDropshipFreeLineItems\": true,\n \"vatFreePositionThresholdAmount\": 123\n}"
response = http.request(request)
puts response.read_body{
"id": "b45f6432-2462-4c6f-b00f-1d9d01000000"
}Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Headers
The tenant ID for the target ERP instance.
Path Parameters
The key of the supplier to update.
"b45f6432-2462-4c6f-b00f-1d9d01000000"
Body
Request model for UpdateSupplier command endpoint. Route parameters bind from the route, query parameters from the query string, everything else from the body.
Supplier number (free-text supplier identifier held at the merchant).
Company name of the supplier.
Postal address of the supplier. Merged at object level (omitted keeps the existing address).
Show child attributes
Show child attributes
Contact information of the supplier. Merged at object level (omitted keeps the existing contact).
Show child attributes
Show child attributes
ISO code of the supplier's currency.
ISO code of the language assigned to the supplier.
Free-text status of the supplier.
Indicates whether the supplier can be used for dropshipping.
The supplier's own customer number for the merchant ("Eigene Kd.-Nr.").
Creditor number of the supplier.
VAT identification number of the supplier.
Freight cost charged by the supplier.
Minimum order value required by the supplier.
Surcharge applied by the supplier for small quantities.
Cash discount percentage granted by the supplier.
Number of days within which the cash discount applies.
Payment term in days agreed with the supplier.
Order value from which the supplier ships free of charge.
Delivery time in days of the supplier.
Website URL of the supplier.
Note on the delivery conditions of the supplier.
Free-text comment on the supplier.
Default own-company used for orders with this supplier.
"b45f6432-2462-4c6f-b00f-1d9d01000000"
Default warehouse used for orders with this supplier.
"b45f6432-2462-4c6f-b00f-1d9d01000000"
Indicates whether the supplier is exempt from VAT.
Indicates whether the supplier is excluded from the purchase list.
Indicates whether cash-on-delivery dropshipping is allowed for the supplier.
Indicates whether free line items are allowed in dropshipping for the supplier.
Order value threshold above which line items are treated as VAT-free.
Response
Supplier changed successfully.
Updates an existing Default-type supplier with PATCH semantics (omitted fields keep their existing value). - Response
The key of the updated supplier.
"b45f6432-2462-4c6f-b00f-1d9d01000000"
Was this page helpful?