curl --request PATCH \
--url https://api.jtl-cloud.com/erp/v2/items/{itemId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-tenant-id: <x-tenant-id>' \
--data '
{
"productGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"shippingClassId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"manufacturerId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"categories": {
"categories": [
{
"categoryId": "b45f6432-2462-4c6f-b00f-1d9d01000000"
}
]
},
"identifiers": {
"sku": "<string>",
"amazonFnsku": "<string>",
"gtin": "<string>",
"manufacturerNumber": "<string>",
"isbn": "<string>",
"tariccode": "<string>",
"upc": "<string>",
"unNumber": "<string>",
"hazardNumber": "<string>",
"ownIdentifier": "<string>",
"defaultAsin": "<string>",
"jfsku": "<string>"
},
"descriptions": {
"defaultDescriptions": [
{
"languageIso": "<string>",
"descriptionData": {
"itemName": "<string>",
"shortDescription": "<string>",
"description": "<string>",
"metaDescription": "<string>",
"metaKeywords": "<string>",
"titleTag": "<string>",
"urlPath": "<string>"
}
}
],
"salesChannelDescriptions": [
{
"salesChannelId": "<string>",
"languageIso": "<string>",
"descriptionData": {
"itemName": "<string>",
"shortDescription": "<string>",
"description": "<string>",
"metaDescription": "<string>",
"metaKeywords": "<string>",
"titleTag": "<string>",
"urlPath": "<string>"
}
}
],
"platformDescriptions": [
{
"platformId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"languageIso": "<string>",
"descriptionData": {
"itemName": "<string>",
"shortDescription": "<string>",
"description": "<string>",
"metaDescription": "<string>",
"metaKeywords": "<string>",
"titleTag": "<string>",
"urlPath": "<string>"
}
}
]
},
"prices": {
"ignoreDiscounts": true,
"salesPriceNet": 123,
"suggestedRetailPrice": 123,
"purchasePriceNet": 123,
"ebayPrice": 123,
"amazonPrice": 123,
"salesChannelPrices": [
{
"saleschannelId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"customerGroupPrices": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"prices": [
{
"fromQuantity": 123,
"netPrice": 123,
"reduceStandardPriceByPercent": 123
}
]
}
],
"isActive": true
}
],
"customerPrices": [
{
"customerId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"prices": [
{
"fromQuantity": 123,
"netPrice": 123,
"reduceStandardPriceByPercent": 123
}
]
}
],
"defaultPrices": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"prices": [
{
"fromQuantity": 123,
"netPrice": 123,
"reduceStandardPriceByPercent": 123
}
]
}
]
},
"measurements": {
"height": 123,
"length": 123,
"shippingWeight": 123,
"weight": 123,
"width": 123
},
"images": {
"defaultImages": [
{
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sortNumber": 123,
"isMainImage": true
}
],
"platformImages": [
{
"platformId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"images": [
{
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sortNumber": 123,
"isMainImage": true
}
]
}
],
"saleschannelImages": [
{
"saleschannelId": "<string>",
"images": [
{
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sortNumber": 123,
"isMainImage": true
}
]
}
],
"ebayImages": [
{
"ebayAccountId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"images": [
{
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sortNumber": 123,
"isMainImage": true
}
]
}
]
},
"suppliers": {
"defaultSupplier": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"defaultDropshippingSupplier": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"suppliers": [
{
"supplierId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"supplierItemName": "<string>",
"supplierItemNumber": "<string>",
"stockLevel": 123,
"netPurchasePrice": 123,
"minimumPurchaseQuantity": 123,
"deliveryTimeInDays": 123,
"isDropshippingActive": true,
"packageUnitDescription": "<string>",
"packageUnitQuantity": 123,
"notes": "<string>",
"vatRate": 123,
"useSupplierDeliveryTime": true,
"includeSupplierStock": true,
"purchaseInterval": 123,
"scalePrices": [
{
"fromQuantity": 123,
"usePercentageDiscount": true,
"netPrice": 123,
"percentageDiscount": 123
}
]
}
]
},
"variations": {
"variations": [
{
"variationId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"position": 123,
"descriptions": [
{
"languageIso": "<string>",
"name": "<string>"
}
],
"values": [
{
"variationValueId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"itemNumber": "<string>",
"gTIN": "<string>",
"weightOffset": 123,
"descriptions": [
{
"languageIso": "<string>",
"name": "<string>"
}
],
"surcharges": {
"defaultSurchargeNet": 123,
"customerGroupSurcharges": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"surcharge": 123,
"isActive": true
}
],
"salesChannelSurcharges": [
{
"salesChannelId": "<string>",
"surcharges": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"surcharge": 123,
"isActive": true
}
]
}
]
},
"position": 123,
"image": "b45f6432-2462-4c6f-b00f-1d9d01000000"
}
]
}
]
},
"deliveryStatusId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"includeInPriceList": true,
"ignoreOrderSuggestions": true,
"ignoreDiscounts": true,
"countryOfOrigin": "<string>",
"notes": "<string>",
"features": {
"features": [
{
"featureId": "b45f6432-2462-4c6f-b00f-1d9d01000000"
}
]
},
"attributes": {
"values": [
{
"attributeId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"defaultValues": [
{
"languageIso": "<string>",
"value": "<string>"
}
],
"salesChannelValues": [
{
"salesChannelId": "<string>",
"values": [
{
"languageIso": "<string>",
"value": "<string>"
}
]
}
]
}
]
},
"unitPricing": {
"salesUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"packagingUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"innerQuantity": 123,
"innerQuantityUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"isBasePriceDeclared": true,
"basePriceReferenceUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"basePriceReferenceAmount": 123
},
"specialPrices": {
"isActive": true,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"isEndDateActive": true,
"minimumStockQuantity": 123,
"isStockRestrictionActive": true,
"salesChannelSpecialPrices": [
{
"salesChannelId": "<string>",
"specialPrices": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"netPrice": 123,
"isActive": true
}
]
}
]
},
"storageConstraints": {
"allowNegativeStock": true,
"itemPlatformNegativeStocks": [
{
"platformId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"isNegativeStockAllowed": true
}
],
"itemSalesChannelNegativeStocks": [
{
"salesChannelId": "<string>",
"isNegativeStockAllowed": true
}
],
"buffer": 123,
"globalMinimumStockLevel": 123,
"hasBatch": true,
"isInventoryManagementActive": true,
"isBestBeforeManaged": true,
"isStockDivisible": true
}
}
'import requests
url = "https://api.jtl-cloud.com/erp/v2/items/{itemId}"
payload = {
"productGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"shippingClassId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"manufacturerId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"categories": { "categories": [{ "categoryId": "b45f6432-2462-4c6f-b00f-1d9d01000000" }] },
"identifiers": {
"sku": "<string>",
"amazonFnsku": "<string>",
"gtin": "<string>",
"manufacturerNumber": "<string>",
"isbn": "<string>",
"tariccode": "<string>",
"upc": "<string>",
"unNumber": "<string>",
"hazardNumber": "<string>",
"ownIdentifier": "<string>",
"defaultAsin": "<string>",
"jfsku": "<string>"
},
"descriptions": {
"defaultDescriptions": [
{
"languageIso": "<string>",
"descriptionData": {
"itemName": "<string>",
"shortDescription": "<string>",
"description": "<string>",
"metaDescription": "<string>",
"metaKeywords": "<string>",
"titleTag": "<string>",
"urlPath": "<string>"
}
}
],
"salesChannelDescriptions": [
{
"salesChannelId": "<string>",
"languageIso": "<string>",
"descriptionData": {
"itemName": "<string>",
"shortDescription": "<string>",
"description": "<string>",
"metaDescription": "<string>",
"metaKeywords": "<string>",
"titleTag": "<string>",
"urlPath": "<string>"
}
}
],
"platformDescriptions": [
{
"platformId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"languageIso": "<string>",
"descriptionData": {
"itemName": "<string>",
"shortDescription": "<string>",
"description": "<string>",
"metaDescription": "<string>",
"metaKeywords": "<string>",
"titleTag": "<string>",
"urlPath": "<string>"
}
}
]
},
"prices": {
"ignoreDiscounts": True,
"salesPriceNet": 123,
"suggestedRetailPrice": 123,
"purchasePriceNet": 123,
"ebayPrice": 123,
"amazonPrice": 123,
"salesChannelPrices": [
{
"saleschannelId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"customerGroupPrices": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"prices": [
{
"fromQuantity": 123,
"netPrice": 123,
"reduceStandardPriceByPercent": 123
}
]
}
],
"isActive": True
}
],
"customerPrices": [
{
"customerId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"prices": [
{
"fromQuantity": 123,
"netPrice": 123,
"reduceStandardPriceByPercent": 123
}
]
}
],
"defaultPrices": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"prices": [
{
"fromQuantity": 123,
"netPrice": 123,
"reduceStandardPriceByPercent": 123
}
]
}
]
},
"measurements": {
"height": 123,
"length": 123,
"shippingWeight": 123,
"weight": 123,
"width": 123
},
"images": {
"defaultImages": [
{
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sortNumber": 123,
"isMainImage": True
}
],
"platformImages": [
{
"platformId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"images": [
{
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sortNumber": 123,
"isMainImage": True
}
]
}
],
"saleschannelImages": [
{
"saleschannelId": "<string>",
"images": [
{
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sortNumber": 123,
"isMainImage": True
}
]
}
],
"ebayImages": [
{
"ebayAccountId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"images": [
{
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sortNumber": 123,
"isMainImage": True
}
]
}
]
},
"suppliers": {
"defaultSupplier": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"defaultDropshippingSupplier": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"suppliers": [
{
"supplierId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"supplierItemName": "<string>",
"supplierItemNumber": "<string>",
"stockLevel": 123,
"netPurchasePrice": 123,
"minimumPurchaseQuantity": 123,
"deliveryTimeInDays": 123,
"isDropshippingActive": True,
"packageUnitDescription": "<string>",
"packageUnitQuantity": 123,
"notes": "<string>",
"vatRate": 123,
"useSupplierDeliveryTime": True,
"includeSupplierStock": True,
"purchaseInterval": 123,
"scalePrices": [
{
"fromQuantity": 123,
"usePercentageDiscount": True,
"netPrice": 123,
"percentageDiscount": 123
}
]
}
]
},
"variations": { "variations": [
{
"variationId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"position": 123,
"descriptions": [
{
"languageIso": "<string>",
"name": "<string>"
}
],
"values": [
{
"variationValueId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"itemNumber": "<string>",
"gTIN": "<string>",
"weightOffset": 123,
"descriptions": [
{
"languageIso": "<string>",
"name": "<string>"
}
],
"surcharges": {
"defaultSurchargeNet": 123,
"customerGroupSurcharges": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"surcharge": 123,
"isActive": True
}
],
"salesChannelSurcharges": [
{
"salesChannelId": "<string>",
"surcharges": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"surcharge": 123,
"isActive": True
}
]
}
]
},
"position": 123,
"image": "b45f6432-2462-4c6f-b00f-1d9d01000000"
}
]
}
] },
"deliveryStatusId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"includeInPriceList": True,
"ignoreOrderSuggestions": True,
"ignoreDiscounts": True,
"countryOfOrigin": "<string>",
"notes": "<string>",
"features": { "features": [{ "featureId": "b45f6432-2462-4c6f-b00f-1d9d01000000" }] },
"attributes": { "values": [
{
"attributeId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"defaultValues": [
{
"languageIso": "<string>",
"value": "<string>"
}
],
"salesChannelValues": [
{
"salesChannelId": "<string>",
"values": [
{
"languageIso": "<string>",
"value": "<string>"
}
]
}
]
}
] },
"unitPricing": {
"salesUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"packagingUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"innerQuantity": 123,
"innerQuantityUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"isBasePriceDeclared": True,
"basePriceReferenceUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"basePriceReferenceAmount": 123
},
"specialPrices": {
"isActive": True,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"isEndDateActive": True,
"minimumStockQuantity": 123,
"isStockRestrictionActive": True,
"salesChannelSpecialPrices": [
{
"salesChannelId": "<string>",
"specialPrices": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"netPrice": 123,
"isActive": True
}
]
}
]
},
"storageConstraints": {
"allowNegativeStock": True,
"itemPlatformNegativeStocks": [
{
"platformId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"isNegativeStockAllowed": True
}
],
"itemSalesChannelNegativeStocks": [
{
"salesChannelId": "<string>",
"isNegativeStockAllowed": True
}
],
"buffer": 123,
"globalMinimumStockLevel": 123,
"hasBatch": True,
"isInventoryManagementActive": True,
"isBestBeforeManaged": True,
"isStockDivisible": True
}
}
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({
productGroupId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
shippingClassId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
manufacturerId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
categories: {categories: [{categoryId: 'b45f6432-2462-4c6f-b00f-1d9d01000000'}]},
identifiers: {
sku: '<string>',
amazonFnsku: '<string>',
gtin: '<string>',
manufacturerNumber: '<string>',
isbn: '<string>',
tariccode: '<string>',
upc: '<string>',
unNumber: '<string>',
hazardNumber: '<string>',
ownIdentifier: '<string>',
defaultAsin: '<string>',
jfsku: '<string>'
},
descriptions: {
defaultDescriptions: [
{
languageIso: '<string>',
descriptionData: {
itemName: '<string>',
shortDescription: '<string>',
description: '<string>',
metaDescription: '<string>',
metaKeywords: '<string>',
titleTag: '<string>',
urlPath: '<string>'
}
}
],
salesChannelDescriptions: [
{
salesChannelId: '<string>',
languageIso: '<string>',
descriptionData: {
itemName: '<string>',
shortDescription: '<string>',
description: '<string>',
metaDescription: '<string>',
metaKeywords: '<string>',
titleTag: '<string>',
urlPath: '<string>'
}
}
],
platformDescriptions: [
{
platformId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
languageIso: '<string>',
descriptionData: {
itemName: '<string>',
shortDescription: '<string>',
description: '<string>',
metaDescription: '<string>',
metaKeywords: '<string>',
titleTag: '<string>',
urlPath: '<string>'
}
}
]
},
prices: {
ignoreDiscounts: true,
salesPriceNet: 123,
suggestedRetailPrice: 123,
purchasePriceNet: 123,
ebayPrice: 123,
amazonPrice: 123,
salesChannelPrices: [
{
saleschannelId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
customerGroupPrices: [
{
customerGroupId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
prices: [{fromQuantity: 123, netPrice: 123, reduceStandardPriceByPercent: 123}]
}
],
isActive: true
}
],
customerPrices: [
{
customerId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
prices: [{fromQuantity: 123, netPrice: 123, reduceStandardPriceByPercent: 123}]
}
],
defaultPrices: [
{
customerGroupId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
prices: [{fromQuantity: 123, netPrice: 123, reduceStandardPriceByPercent: 123}]
}
]
},
measurements: {height: 123, length: 123, shippingWeight: 123, weight: 123, width: 123},
images: {
defaultImages: [
{
blobIdentifier: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
sortNumber: 123,
isMainImage: true
}
],
platformImages: [
{
platformId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
images: [
{
blobIdentifier: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
sortNumber: 123,
isMainImage: true
}
]
}
],
saleschannelImages: [
{
saleschannelId: '<string>',
images: [
{
blobIdentifier: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
sortNumber: 123,
isMainImage: true
}
]
}
],
ebayImages: [
{
ebayAccountId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
images: [
{
blobIdentifier: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
sortNumber: 123,
isMainImage: true
}
]
}
]
},
suppliers: {
defaultSupplier: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
defaultDropshippingSupplier: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
suppliers: [
{
supplierId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
supplierItemName: '<string>',
supplierItemNumber: '<string>',
stockLevel: 123,
netPurchasePrice: 123,
minimumPurchaseQuantity: 123,
deliveryTimeInDays: 123,
isDropshippingActive: true,
packageUnitDescription: '<string>',
packageUnitQuantity: 123,
notes: '<string>',
vatRate: 123,
useSupplierDeliveryTime: true,
includeSupplierStock: true,
purchaseInterval: 123,
scalePrices: [
{
fromQuantity: 123,
usePercentageDiscount: true,
netPrice: 123,
percentageDiscount: 123
}
]
}
]
},
variations: {
variations: [
{
variationId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
position: 123,
descriptions: [{languageIso: '<string>', name: '<string>'}],
values: [
{
variationValueId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
itemNumber: '<string>',
gTIN: '<string>',
weightOffset: 123,
descriptions: [{languageIso: '<string>', name: '<string>'}],
surcharges: {
defaultSurchargeNet: 123,
customerGroupSurcharges: [
{
customerGroupId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
surcharge: 123,
isActive: true
}
],
salesChannelSurcharges: [
{
salesChannelId: '<string>',
surcharges: [
{
customerGroupId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
surcharge: 123,
isActive: true
}
]
}
]
},
position: 123,
image: 'b45f6432-2462-4c6f-b00f-1d9d01000000'
}
]
}
]
},
deliveryStatusId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
includeInPriceList: true,
ignoreOrderSuggestions: true,
ignoreDiscounts: true,
countryOfOrigin: '<string>',
notes: '<string>',
features: {features: [{featureId: 'b45f6432-2462-4c6f-b00f-1d9d01000000'}]},
attributes: {
values: [
{
attributeId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
defaultValues: [{languageIso: '<string>', value: '<string>'}],
salesChannelValues: [
{
salesChannelId: '<string>',
values: [{languageIso: '<string>', value: '<string>'}]
}
]
}
]
},
unitPricing: {
salesUnitId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
packagingUnitId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
innerQuantity: 123,
innerQuantityUnitId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
isBasePriceDeclared: true,
basePriceReferenceUnitId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
basePriceReferenceAmount: 123
},
specialPrices: {
isActive: true,
startDate: '2023-11-07T05:31:56Z',
endDate: '2023-11-07T05:31:56Z',
isEndDateActive: true,
minimumStockQuantity: 123,
isStockRestrictionActive: true,
salesChannelSpecialPrices: [
{
salesChannelId: '<string>',
specialPrices: [
{
customerGroupId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
netPrice: 123,
isActive: true
}
]
}
]
},
storageConstraints: {
allowNegativeStock: true,
itemPlatformNegativeStocks: [
{
platformId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
isNegativeStockAllowed: true
}
],
itemSalesChannelNegativeStocks: [{salesChannelId: '<string>', isNegativeStockAllowed: true}],
buffer: 123,
globalMinimumStockLevel: 123,
hasBatch: true,
isInventoryManagementActive: true,
isBestBeforeManaged: true,
isStockDivisible: true
}
})
};
fetch('https://api.jtl-cloud.com/erp/v2/items/{itemId}', 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/items/{itemId}",
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([
'productGroupId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'shippingClassId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'manufacturerId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'categories' => [
'categories' => [
[
'categoryId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000'
]
]
],
'identifiers' => [
'sku' => '<string>',
'amazonFnsku' => '<string>',
'gtin' => '<string>',
'manufacturerNumber' => '<string>',
'isbn' => '<string>',
'tariccode' => '<string>',
'upc' => '<string>',
'unNumber' => '<string>',
'hazardNumber' => '<string>',
'ownIdentifier' => '<string>',
'defaultAsin' => '<string>',
'jfsku' => '<string>'
],
'descriptions' => [
'defaultDescriptions' => [
[
'languageIso' => '<string>',
'descriptionData' => [
'itemName' => '<string>',
'shortDescription' => '<string>',
'description' => '<string>',
'metaDescription' => '<string>',
'metaKeywords' => '<string>',
'titleTag' => '<string>',
'urlPath' => '<string>'
]
]
],
'salesChannelDescriptions' => [
[
'salesChannelId' => '<string>',
'languageIso' => '<string>',
'descriptionData' => [
'itemName' => '<string>',
'shortDescription' => '<string>',
'description' => '<string>',
'metaDescription' => '<string>',
'metaKeywords' => '<string>',
'titleTag' => '<string>',
'urlPath' => '<string>'
]
]
],
'platformDescriptions' => [
[
'platformId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'languageIso' => '<string>',
'descriptionData' => [
'itemName' => '<string>',
'shortDescription' => '<string>',
'description' => '<string>',
'metaDescription' => '<string>',
'metaKeywords' => '<string>',
'titleTag' => '<string>',
'urlPath' => '<string>'
]
]
]
],
'prices' => [
'ignoreDiscounts' => true,
'salesPriceNet' => 123,
'suggestedRetailPrice' => 123,
'purchasePriceNet' => 123,
'ebayPrice' => 123,
'amazonPrice' => 123,
'salesChannelPrices' => [
[
'saleschannelId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'customerGroupPrices' => [
[
'customerGroupId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'prices' => [
[
'fromQuantity' => 123,
'netPrice' => 123,
'reduceStandardPriceByPercent' => 123
]
]
]
],
'isActive' => true
]
],
'customerPrices' => [
[
'customerId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'prices' => [
[
'fromQuantity' => 123,
'netPrice' => 123,
'reduceStandardPriceByPercent' => 123
]
]
]
],
'defaultPrices' => [
[
'customerGroupId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'prices' => [
[
'fromQuantity' => 123,
'netPrice' => 123,
'reduceStandardPriceByPercent' => 123
]
]
]
]
],
'measurements' => [
'height' => 123,
'length' => 123,
'shippingWeight' => 123,
'weight' => 123,
'width' => 123
],
'images' => [
'defaultImages' => [
[
'blobIdentifier' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'sortNumber' => 123,
'isMainImage' => true
]
],
'platformImages' => [
[
'platformId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'images' => [
[
'blobIdentifier' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'sortNumber' => 123,
'isMainImage' => true
]
]
]
],
'saleschannelImages' => [
[
'saleschannelId' => '<string>',
'images' => [
[
'blobIdentifier' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'sortNumber' => 123,
'isMainImage' => true
]
]
]
],
'ebayImages' => [
[
'ebayAccountId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'images' => [
[
'blobIdentifier' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'sortNumber' => 123,
'isMainImage' => true
]
]
]
]
],
'suppliers' => [
'defaultSupplier' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'defaultDropshippingSupplier' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'suppliers' => [
[
'supplierId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'supplierItemName' => '<string>',
'supplierItemNumber' => '<string>',
'stockLevel' => 123,
'netPurchasePrice' => 123,
'minimumPurchaseQuantity' => 123,
'deliveryTimeInDays' => 123,
'isDropshippingActive' => true,
'packageUnitDescription' => '<string>',
'packageUnitQuantity' => 123,
'notes' => '<string>',
'vatRate' => 123,
'useSupplierDeliveryTime' => true,
'includeSupplierStock' => true,
'purchaseInterval' => 123,
'scalePrices' => [
[
'fromQuantity' => 123,
'usePercentageDiscount' => true,
'netPrice' => 123,
'percentageDiscount' => 123
]
]
]
]
],
'variations' => [
'variations' => [
[
'variationId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'position' => 123,
'descriptions' => [
[
'languageIso' => '<string>',
'name' => '<string>'
]
],
'values' => [
[
'variationValueId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'itemNumber' => '<string>',
'gTIN' => '<string>',
'weightOffset' => 123,
'descriptions' => [
[
'languageIso' => '<string>',
'name' => '<string>'
]
],
'surcharges' => [
'defaultSurchargeNet' => 123,
'customerGroupSurcharges' => [
[
'customerGroupId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'surcharge' => 123,
'isActive' => true
]
],
'salesChannelSurcharges' => [
[
'salesChannelId' => '<string>',
'surcharges' => [
[
'customerGroupId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'surcharge' => 123,
'isActive' => true
]
]
]
]
],
'position' => 123,
'image' => 'b45f6432-2462-4c6f-b00f-1d9d01000000'
]
]
]
]
],
'deliveryStatusId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'includeInPriceList' => true,
'ignoreOrderSuggestions' => true,
'ignoreDiscounts' => true,
'countryOfOrigin' => '<string>',
'notes' => '<string>',
'features' => [
'features' => [
[
'featureId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000'
]
]
],
'attributes' => [
'values' => [
[
'attributeId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'defaultValues' => [
[
'languageIso' => '<string>',
'value' => '<string>'
]
],
'salesChannelValues' => [
[
'salesChannelId' => '<string>',
'values' => [
[
'languageIso' => '<string>',
'value' => '<string>'
]
]
]
]
]
]
],
'unitPricing' => [
'salesUnitId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'packagingUnitId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'innerQuantity' => 123,
'innerQuantityUnitId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'isBasePriceDeclared' => true,
'basePriceReferenceUnitId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'basePriceReferenceAmount' => 123
],
'specialPrices' => [
'isActive' => true,
'startDate' => '2023-11-07T05:31:56Z',
'endDate' => '2023-11-07T05:31:56Z',
'isEndDateActive' => true,
'minimumStockQuantity' => 123,
'isStockRestrictionActive' => true,
'salesChannelSpecialPrices' => [
[
'salesChannelId' => '<string>',
'specialPrices' => [
[
'customerGroupId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'netPrice' => 123,
'isActive' => true
]
]
]
]
],
'storageConstraints' => [
'allowNegativeStock' => true,
'itemPlatformNegativeStocks' => [
[
'platformId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'isNegativeStockAllowed' => true
]
],
'itemSalesChannelNegativeStocks' => [
[
'salesChannelId' => '<string>',
'isNegativeStockAllowed' => true
]
],
'buffer' => 123,
'globalMinimumStockLevel' => 123,
'hasBatch' => true,
'isInventoryManagementActive' => true,
'isBestBeforeManaged' => true,
'isStockDivisible' => true
]
]),
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/items/{itemId}"
payload := strings.NewReader("{\n \"productGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"shippingClassId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"manufacturerId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"categories\": {\n \"categories\": [\n {\n \"categoryId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\"\n }\n ]\n },\n \"identifiers\": {\n \"sku\": \"<string>\",\n \"amazonFnsku\": \"<string>\",\n \"gtin\": \"<string>\",\n \"manufacturerNumber\": \"<string>\",\n \"isbn\": \"<string>\",\n \"tariccode\": \"<string>\",\n \"upc\": \"<string>\",\n \"unNumber\": \"<string>\",\n \"hazardNumber\": \"<string>\",\n \"ownIdentifier\": \"<string>\",\n \"defaultAsin\": \"<string>\",\n \"jfsku\": \"<string>\"\n },\n \"descriptions\": {\n \"defaultDescriptions\": [\n {\n \"languageIso\": \"<string>\",\n \"descriptionData\": {\n \"itemName\": \"<string>\",\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"metaDescription\": \"<string>\",\n \"metaKeywords\": \"<string>\",\n \"titleTag\": \"<string>\",\n \"urlPath\": \"<string>\"\n }\n }\n ],\n \"salesChannelDescriptions\": [\n {\n \"salesChannelId\": \"<string>\",\n \"languageIso\": \"<string>\",\n \"descriptionData\": {\n \"itemName\": \"<string>\",\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"metaDescription\": \"<string>\",\n \"metaKeywords\": \"<string>\",\n \"titleTag\": \"<string>\",\n \"urlPath\": \"<string>\"\n }\n }\n ],\n \"platformDescriptions\": [\n {\n \"platformId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"languageIso\": \"<string>\",\n \"descriptionData\": {\n \"itemName\": \"<string>\",\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"metaDescription\": \"<string>\",\n \"metaKeywords\": \"<string>\",\n \"titleTag\": \"<string>\",\n \"urlPath\": \"<string>\"\n }\n }\n ]\n },\n \"prices\": {\n \"ignoreDiscounts\": true,\n \"salesPriceNet\": 123,\n \"suggestedRetailPrice\": 123,\n \"purchasePriceNet\": 123,\n \"ebayPrice\": 123,\n \"amazonPrice\": 123,\n \"salesChannelPrices\": [\n {\n \"saleschannelId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"customerGroupPrices\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"prices\": [\n {\n \"fromQuantity\": 123,\n \"netPrice\": 123,\n \"reduceStandardPriceByPercent\": 123\n }\n ]\n }\n ],\n \"isActive\": true\n }\n ],\n \"customerPrices\": [\n {\n \"customerId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"prices\": [\n {\n \"fromQuantity\": 123,\n \"netPrice\": 123,\n \"reduceStandardPriceByPercent\": 123\n }\n ]\n }\n ],\n \"defaultPrices\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"prices\": [\n {\n \"fromQuantity\": 123,\n \"netPrice\": 123,\n \"reduceStandardPriceByPercent\": 123\n }\n ]\n }\n ]\n },\n \"measurements\": {\n \"height\": 123,\n \"length\": 123,\n \"shippingWeight\": 123,\n \"weight\": 123,\n \"width\": 123\n },\n \"images\": {\n \"defaultImages\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ],\n \"platformImages\": [\n {\n \"platformId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"images\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ]\n }\n ],\n \"saleschannelImages\": [\n {\n \"saleschannelId\": \"<string>\",\n \"images\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ]\n }\n ],\n \"ebayImages\": [\n {\n \"ebayAccountId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"images\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ]\n }\n ]\n },\n \"suppliers\": {\n \"defaultSupplier\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"defaultDropshippingSupplier\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"suppliers\": [\n {\n \"supplierId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"supplierItemName\": \"<string>\",\n \"supplierItemNumber\": \"<string>\",\n \"stockLevel\": 123,\n \"netPurchasePrice\": 123,\n \"minimumPurchaseQuantity\": 123,\n \"deliveryTimeInDays\": 123,\n \"isDropshippingActive\": true,\n \"packageUnitDescription\": \"<string>\",\n \"packageUnitQuantity\": 123,\n \"notes\": \"<string>\",\n \"vatRate\": 123,\n \"useSupplierDeliveryTime\": true,\n \"includeSupplierStock\": true,\n \"purchaseInterval\": 123,\n \"scalePrices\": [\n {\n \"fromQuantity\": 123,\n \"usePercentageDiscount\": true,\n \"netPrice\": 123,\n \"percentageDiscount\": 123\n }\n ]\n }\n ]\n },\n \"variations\": {\n \"variations\": [\n {\n \"variationId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"position\": 123,\n \"descriptions\": [\n {\n \"languageIso\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"values\": [\n {\n \"variationValueId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"itemNumber\": \"<string>\",\n \"gTIN\": \"<string>\",\n \"weightOffset\": 123,\n \"descriptions\": [\n {\n \"languageIso\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"surcharges\": {\n \"defaultSurchargeNet\": 123,\n \"customerGroupSurcharges\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"surcharge\": 123,\n \"isActive\": true\n }\n ],\n \"salesChannelSurcharges\": [\n {\n \"salesChannelId\": \"<string>\",\n \"surcharges\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"surcharge\": 123,\n \"isActive\": true\n }\n ]\n }\n ]\n },\n \"position\": 123,\n \"image\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\"\n }\n ]\n }\n ]\n },\n \"deliveryStatusId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"includeInPriceList\": true,\n \"ignoreOrderSuggestions\": true,\n \"ignoreDiscounts\": true,\n \"countryOfOrigin\": \"<string>\",\n \"notes\": \"<string>\",\n \"features\": {\n \"features\": [\n {\n \"featureId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\"\n }\n ]\n },\n \"attributes\": {\n \"values\": [\n {\n \"attributeId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"defaultValues\": [\n {\n \"languageIso\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"salesChannelValues\": [\n {\n \"salesChannelId\": \"<string>\",\n \"values\": [\n {\n \"languageIso\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ]\n }\n ]\n },\n \"unitPricing\": {\n \"salesUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"packagingUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"innerQuantity\": 123,\n \"innerQuantityUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"isBasePriceDeclared\": true,\n \"basePriceReferenceUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"basePriceReferenceAmount\": 123\n },\n \"specialPrices\": {\n \"isActive\": true,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"isEndDateActive\": true,\n \"minimumStockQuantity\": 123,\n \"isStockRestrictionActive\": true,\n \"salesChannelSpecialPrices\": [\n {\n \"salesChannelId\": \"<string>\",\n \"specialPrices\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"netPrice\": 123,\n \"isActive\": true\n }\n ]\n }\n ]\n },\n \"storageConstraints\": {\n \"allowNegativeStock\": true,\n \"itemPlatformNegativeStocks\": [\n {\n \"platformId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"isNegativeStockAllowed\": true\n }\n ],\n \"itemSalesChannelNegativeStocks\": [\n {\n \"salesChannelId\": \"<string>\",\n \"isNegativeStockAllowed\": true\n }\n ],\n \"buffer\": 123,\n \"globalMinimumStockLevel\": 123,\n \"hasBatch\": true,\n \"isInventoryManagementActive\": true,\n \"isBestBeforeManaged\": true,\n \"isStockDivisible\": true\n }\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/items/{itemId}")
.header("x-tenant-id", "<x-tenant-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"productGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"shippingClassId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"manufacturerId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"categories\": {\n \"categories\": [\n {\n \"categoryId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\"\n }\n ]\n },\n \"identifiers\": {\n \"sku\": \"<string>\",\n \"amazonFnsku\": \"<string>\",\n \"gtin\": \"<string>\",\n \"manufacturerNumber\": \"<string>\",\n \"isbn\": \"<string>\",\n \"tariccode\": \"<string>\",\n \"upc\": \"<string>\",\n \"unNumber\": \"<string>\",\n \"hazardNumber\": \"<string>\",\n \"ownIdentifier\": \"<string>\",\n \"defaultAsin\": \"<string>\",\n \"jfsku\": \"<string>\"\n },\n \"descriptions\": {\n \"defaultDescriptions\": [\n {\n \"languageIso\": \"<string>\",\n \"descriptionData\": {\n \"itemName\": \"<string>\",\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"metaDescription\": \"<string>\",\n \"metaKeywords\": \"<string>\",\n \"titleTag\": \"<string>\",\n \"urlPath\": \"<string>\"\n }\n }\n ],\n \"salesChannelDescriptions\": [\n {\n \"salesChannelId\": \"<string>\",\n \"languageIso\": \"<string>\",\n \"descriptionData\": {\n \"itemName\": \"<string>\",\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"metaDescription\": \"<string>\",\n \"metaKeywords\": \"<string>\",\n \"titleTag\": \"<string>\",\n \"urlPath\": \"<string>\"\n }\n }\n ],\n \"platformDescriptions\": [\n {\n \"platformId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"languageIso\": \"<string>\",\n \"descriptionData\": {\n \"itemName\": \"<string>\",\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"metaDescription\": \"<string>\",\n \"metaKeywords\": \"<string>\",\n \"titleTag\": \"<string>\",\n \"urlPath\": \"<string>\"\n }\n }\n ]\n },\n \"prices\": {\n \"ignoreDiscounts\": true,\n \"salesPriceNet\": 123,\n \"suggestedRetailPrice\": 123,\n \"purchasePriceNet\": 123,\n \"ebayPrice\": 123,\n \"amazonPrice\": 123,\n \"salesChannelPrices\": [\n {\n \"saleschannelId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"customerGroupPrices\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"prices\": [\n {\n \"fromQuantity\": 123,\n \"netPrice\": 123,\n \"reduceStandardPriceByPercent\": 123\n }\n ]\n }\n ],\n \"isActive\": true\n }\n ],\n \"customerPrices\": [\n {\n \"customerId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"prices\": [\n {\n \"fromQuantity\": 123,\n \"netPrice\": 123,\n \"reduceStandardPriceByPercent\": 123\n }\n ]\n }\n ],\n \"defaultPrices\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"prices\": [\n {\n \"fromQuantity\": 123,\n \"netPrice\": 123,\n \"reduceStandardPriceByPercent\": 123\n }\n ]\n }\n ]\n },\n \"measurements\": {\n \"height\": 123,\n \"length\": 123,\n \"shippingWeight\": 123,\n \"weight\": 123,\n \"width\": 123\n },\n \"images\": {\n \"defaultImages\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ],\n \"platformImages\": [\n {\n \"platformId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"images\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ]\n }\n ],\n \"saleschannelImages\": [\n {\n \"saleschannelId\": \"<string>\",\n \"images\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ]\n }\n ],\n \"ebayImages\": [\n {\n \"ebayAccountId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"images\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ]\n }\n ]\n },\n \"suppliers\": {\n \"defaultSupplier\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"defaultDropshippingSupplier\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"suppliers\": [\n {\n \"supplierId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"supplierItemName\": \"<string>\",\n \"supplierItemNumber\": \"<string>\",\n \"stockLevel\": 123,\n \"netPurchasePrice\": 123,\n \"minimumPurchaseQuantity\": 123,\n \"deliveryTimeInDays\": 123,\n \"isDropshippingActive\": true,\n \"packageUnitDescription\": \"<string>\",\n \"packageUnitQuantity\": 123,\n \"notes\": \"<string>\",\n \"vatRate\": 123,\n \"useSupplierDeliveryTime\": true,\n \"includeSupplierStock\": true,\n \"purchaseInterval\": 123,\n \"scalePrices\": [\n {\n \"fromQuantity\": 123,\n \"usePercentageDiscount\": true,\n \"netPrice\": 123,\n \"percentageDiscount\": 123\n }\n ]\n }\n ]\n },\n \"variations\": {\n \"variations\": [\n {\n \"variationId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"position\": 123,\n \"descriptions\": [\n {\n \"languageIso\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"values\": [\n {\n \"variationValueId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"itemNumber\": \"<string>\",\n \"gTIN\": \"<string>\",\n \"weightOffset\": 123,\n \"descriptions\": [\n {\n \"languageIso\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"surcharges\": {\n \"defaultSurchargeNet\": 123,\n \"customerGroupSurcharges\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"surcharge\": 123,\n \"isActive\": true\n }\n ],\n \"salesChannelSurcharges\": [\n {\n \"salesChannelId\": \"<string>\",\n \"surcharges\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"surcharge\": 123,\n \"isActive\": true\n }\n ]\n }\n ]\n },\n \"position\": 123,\n \"image\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\"\n }\n ]\n }\n ]\n },\n \"deliveryStatusId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"includeInPriceList\": true,\n \"ignoreOrderSuggestions\": true,\n \"ignoreDiscounts\": true,\n \"countryOfOrigin\": \"<string>\",\n \"notes\": \"<string>\",\n \"features\": {\n \"features\": [\n {\n \"featureId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\"\n }\n ]\n },\n \"attributes\": {\n \"values\": [\n {\n \"attributeId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"defaultValues\": [\n {\n \"languageIso\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"salesChannelValues\": [\n {\n \"salesChannelId\": \"<string>\",\n \"values\": [\n {\n \"languageIso\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ]\n }\n ]\n },\n \"unitPricing\": {\n \"salesUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"packagingUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"innerQuantity\": 123,\n \"innerQuantityUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"isBasePriceDeclared\": true,\n \"basePriceReferenceUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"basePriceReferenceAmount\": 123\n },\n \"specialPrices\": {\n \"isActive\": true,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"isEndDateActive\": true,\n \"minimumStockQuantity\": 123,\n \"isStockRestrictionActive\": true,\n \"salesChannelSpecialPrices\": [\n {\n \"salesChannelId\": \"<string>\",\n \"specialPrices\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"netPrice\": 123,\n \"isActive\": true\n }\n ]\n }\n ]\n },\n \"storageConstraints\": {\n \"allowNegativeStock\": true,\n \"itemPlatformNegativeStocks\": [\n {\n \"platformId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"isNegativeStockAllowed\": true\n }\n ],\n \"itemSalesChannelNegativeStocks\": [\n {\n \"salesChannelId\": \"<string>\",\n \"isNegativeStockAllowed\": true\n }\n ],\n \"buffer\": 123,\n \"globalMinimumStockLevel\": 123,\n \"hasBatch\": true,\n \"isInventoryManagementActive\": true,\n \"isBestBeforeManaged\": true,\n \"isStockDivisible\": true\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jtl-cloud.com/erp/v2/items/{itemId}")
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 \"productGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"shippingClassId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"manufacturerId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"categories\": {\n \"categories\": [\n {\n \"categoryId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\"\n }\n ]\n },\n \"identifiers\": {\n \"sku\": \"<string>\",\n \"amazonFnsku\": \"<string>\",\n \"gtin\": \"<string>\",\n \"manufacturerNumber\": \"<string>\",\n \"isbn\": \"<string>\",\n \"tariccode\": \"<string>\",\n \"upc\": \"<string>\",\n \"unNumber\": \"<string>\",\n \"hazardNumber\": \"<string>\",\n \"ownIdentifier\": \"<string>\",\n \"defaultAsin\": \"<string>\",\n \"jfsku\": \"<string>\"\n },\n \"descriptions\": {\n \"defaultDescriptions\": [\n {\n \"languageIso\": \"<string>\",\n \"descriptionData\": {\n \"itemName\": \"<string>\",\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"metaDescription\": \"<string>\",\n \"metaKeywords\": \"<string>\",\n \"titleTag\": \"<string>\",\n \"urlPath\": \"<string>\"\n }\n }\n ],\n \"salesChannelDescriptions\": [\n {\n \"salesChannelId\": \"<string>\",\n \"languageIso\": \"<string>\",\n \"descriptionData\": {\n \"itemName\": \"<string>\",\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"metaDescription\": \"<string>\",\n \"metaKeywords\": \"<string>\",\n \"titleTag\": \"<string>\",\n \"urlPath\": \"<string>\"\n }\n }\n ],\n \"platformDescriptions\": [\n {\n \"platformId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"languageIso\": \"<string>\",\n \"descriptionData\": {\n \"itemName\": \"<string>\",\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"metaDescription\": \"<string>\",\n \"metaKeywords\": \"<string>\",\n \"titleTag\": \"<string>\",\n \"urlPath\": \"<string>\"\n }\n }\n ]\n },\n \"prices\": {\n \"ignoreDiscounts\": true,\n \"salesPriceNet\": 123,\n \"suggestedRetailPrice\": 123,\n \"purchasePriceNet\": 123,\n \"ebayPrice\": 123,\n \"amazonPrice\": 123,\n \"salesChannelPrices\": [\n {\n \"saleschannelId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"customerGroupPrices\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"prices\": [\n {\n \"fromQuantity\": 123,\n \"netPrice\": 123,\n \"reduceStandardPriceByPercent\": 123\n }\n ]\n }\n ],\n \"isActive\": true\n }\n ],\n \"customerPrices\": [\n {\n \"customerId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"prices\": [\n {\n \"fromQuantity\": 123,\n \"netPrice\": 123,\n \"reduceStandardPriceByPercent\": 123\n }\n ]\n }\n ],\n \"defaultPrices\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"prices\": [\n {\n \"fromQuantity\": 123,\n \"netPrice\": 123,\n \"reduceStandardPriceByPercent\": 123\n }\n ]\n }\n ]\n },\n \"measurements\": {\n \"height\": 123,\n \"length\": 123,\n \"shippingWeight\": 123,\n \"weight\": 123,\n \"width\": 123\n },\n \"images\": {\n \"defaultImages\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ],\n \"platformImages\": [\n {\n \"platformId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"images\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ]\n }\n ],\n \"saleschannelImages\": [\n {\n \"saleschannelId\": \"<string>\",\n \"images\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ]\n }\n ],\n \"ebayImages\": [\n {\n \"ebayAccountId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"images\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ]\n }\n ]\n },\n \"suppliers\": {\n \"defaultSupplier\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"defaultDropshippingSupplier\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"suppliers\": [\n {\n \"supplierId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"supplierItemName\": \"<string>\",\n \"supplierItemNumber\": \"<string>\",\n \"stockLevel\": 123,\n \"netPurchasePrice\": 123,\n \"minimumPurchaseQuantity\": 123,\n \"deliveryTimeInDays\": 123,\n \"isDropshippingActive\": true,\n \"packageUnitDescription\": \"<string>\",\n \"packageUnitQuantity\": 123,\n \"notes\": \"<string>\",\n \"vatRate\": 123,\n \"useSupplierDeliveryTime\": true,\n \"includeSupplierStock\": true,\n \"purchaseInterval\": 123,\n \"scalePrices\": [\n {\n \"fromQuantity\": 123,\n \"usePercentageDiscount\": true,\n \"netPrice\": 123,\n \"percentageDiscount\": 123\n }\n ]\n }\n ]\n },\n \"variations\": {\n \"variations\": [\n {\n \"variationId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"position\": 123,\n \"descriptions\": [\n {\n \"languageIso\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"values\": [\n {\n \"variationValueId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"itemNumber\": \"<string>\",\n \"gTIN\": \"<string>\",\n \"weightOffset\": 123,\n \"descriptions\": [\n {\n \"languageIso\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"surcharges\": {\n \"defaultSurchargeNet\": 123,\n \"customerGroupSurcharges\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"surcharge\": 123,\n \"isActive\": true\n }\n ],\n \"salesChannelSurcharges\": [\n {\n \"salesChannelId\": \"<string>\",\n \"surcharges\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"surcharge\": 123,\n \"isActive\": true\n }\n ]\n }\n ]\n },\n \"position\": 123,\n \"image\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\"\n }\n ]\n }\n ]\n },\n \"deliveryStatusId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"includeInPriceList\": true,\n \"ignoreOrderSuggestions\": true,\n \"ignoreDiscounts\": true,\n \"countryOfOrigin\": \"<string>\",\n \"notes\": \"<string>\",\n \"features\": {\n \"features\": [\n {\n \"featureId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\"\n }\n ]\n },\n \"attributes\": {\n \"values\": [\n {\n \"attributeId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"defaultValues\": [\n {\n \"languageIso\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"salesChannelValues\": [\n {\n \"salesChannelId\": \"<string>\",\n \"values\": [\n {\n \"languageIso\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ]\n }\n ]\n },\n \"unitPricing\": {\n \"salesUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"packagingUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"innerQuantity\": 123,\n \"innerQuantityUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"isBasePriceDeclared\": true,\n \"basePriceReferenceUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"basePriceReferenceAmount\": 123\n },\n \"specialPrices\": {\n \"isActive\": true,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"isEndDateActive\": true,\n \"minimumStockQuantity\": 123,\n \"isStockRestrictionActive\": true,\n \"salesChannelSpecialPrices\": [\n {\n \"salesChannelId\": \"<string>\",\n \"specialPrices\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"netPrice\": 123,\n \"isActive\": true\n }\n ]\n }\n ]\n },\n \"storageConstraints\": {\n \"allowNegativeStock\": true,\n \"itemPlatformNegativeStocks\": [\n {\n \"platformId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"isNegativeStockAllowed\": true\n }\n ],\n \"itemSalesChannelNegativeStocks\": [\n {\n \"salesChannelId\": \"<string>\",\n \"isNegativeStockAllowed\": true\n }\n ],\n \"buffer\": 123,\n \"globalMinimumStockLevel\": 123,\n \"hasBatch\": true,\n \"isInventoryManagementActive\": true,\n \"isBestBeforeManaged\": true,\n \"isStockDivisible\": true\n }\n}"
response = http.request(request)
puts response.read_body{
"item": {
"id": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"identifiers": {
"sku": "<string>",
"amazonFnsku": "<string>",
"gtin": "<string>",
"manufacturerNumber": "<string>",
"isbn": "<string>",
"tariccode": "<string>",
"upc": "<string>",
"unNumber": "<string>",
"hazardNumber": "<string>",
"ownIdentifier": "<string>",
"defaultAsin": "<string>",
"jfsku": "<string>"
},
"productGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"shippingClassId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"manufacturerId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"categories": {
"categories": [
{
"categoryId": "b45f6432-2462-4c6f-b00f-1d9d01000000"
}
]
},
"descriptions": {
"defaultDescriptions": [
{
"languageIso": "<string>",
"descriptionData": {
"itemName": "<string>",
"shortDescription": "<string>",
"description": "<string>",
"metaDescription": "<string>",
"metaKeywords": "<string>",
"titleTag": "<string>",
"urlPath": "<string>"
}
}
],
"salesChannelDescriptions": [
{
"salesChannelId": "<string>",
"languageIso": "<string>",
"descriptionData": {
"itemName": "<string>",
"shortDescription": "<string>",
"description": "<string>",
"metaDescription": "<string>",
"metaKeywords": "<string>",
"titleTag": "<string>",
"urlPath": "<string>"
}
}
],
"platformDescriptions": [
{
"platformId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"languageIso": "<string>",
"descriptionData": {
"itemName": "<string>",
"shortDescription": "<string>",
"description": "<string>",
"metaDescription": "<string>",
"metaKeywords": "<string>",
"titleTag": "<string>",
"urlPath": "<string>"
}
}
]
},
"prices": {
"ignoreDiscounts": true,
"salesPriceNet": 123,
"suggestedRetailPrice": 123,
"purchasePriceNet": 123,
"ebayPrice": 123,
"amazonPrice": 123,
"salesChannelPrices": [
{
"saleschannelId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"customerGroupPrices": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"prices": [
{
"fromQuantity": 123,
"netPrice": 123,
"reduceStandardPriceByPercent": 123
}
]
}
],
"isActive": true
}
],
"customerPrices": [
{
"customerId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"prices": [
{
"fromQuantity": 123,
"netPrice": 123,
"reduceStandardPriceByPercent": 123
}
]
}
],
"defaultPrices": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"prices": [
{
"fromQuantity": 123,
"netPrice": 123,
"reduceStandardPriceByPercent": 123
}
]
}
]
},
"images": {
"defaultImages": [
{
"sortNumber": 123,
"isMainImage": true,
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"previewUrl": "<string>"
}
],
"platformImages": [
{
"platformId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"images": [
{
"sortNumber": 123,
"isMainImage": true,
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"previewUrl": "<string>"
}
]
}
],
"saleschannelImages": [
{
"saleschannelId": "<string>",
"images": [
{
"sortNumber": 123,
"isMainImage": true,
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"previewUrl": "<string>"
}
]
}
],
"ebayImages": [
{
"ebayAccountId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"images": [
{
"sortNumber": 123,
"isMainImage": true,
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"previewUrl": "<string>"
}
]
}
]
},
"measurements": {
"height": 123,
"length": 123,
"shippingWeight": 123,
"weight": 123,
"width": 123
},
"customFields": {
"fieldValues": [
{
"fieldId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"value": "<string>",
"valueCultureName": "<string>"
}
]
},
"suppliers": {
"defaultSupplier": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"defaultDropshippingSupplier": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"suppliers": [
{
"supplierId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"supplierItemName": "<string>",
"supplierItemNumber": "<string>",
"stockLevel": 123,
"netPurchasePrice": 123,
"minimumPurchaseQuantity": 123,
"deliveryTimeInDays": 123,
"isDropshippingActive": true,
"packageUnitDescription": "<string>",
"packageUnitQuantity": 123,
"notes": "<string>",
"vatRate": 123,
"useSupplierDeliveryTime": true,
"includeSupplierStock": true,
"purchaseInterval": 123,
"scalePrices": [
{
"fromQuantity": 123,
"usePercentageDiscount": true,
"netPrice": 123,
"percentageDiscount": 123
}
]
}
]
},
"includeInPriceList": true,
"ignoreOrderSuggestions": true,
"ignoreDiscounts": true,
"countryOfOrigin": "<string>",
"notes": "<string>",
"variations": {
"variations": [
{
"variationId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"position": 123,
"descriptions": [
{
"languageIso": "<string>",
"name": "<string>"
}
],
"values": [
{
"variationValueId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"itemNumber": "<string>",
"gTIN": "<string>",
"weightOffset": 123,
"descriptions": [
{
"languageIso": "<string>",
"name": "<string>"
}
],
"surcharges": {
"defaultSurchargeNet": 123,
"customerGroupSurcharges": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"surcharge": 123,
"isActive": true
}
],
"salesChannelSurcharges": [
{
"salesChannelId": "<string>",
"surcharges": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"surcharge": 123,
"isActive": true
}
]
}
]
},
"position": 123,
"image": "b45f6432-2462-4c6f-b00f-1d9d01000000"
}
]
}
]
},
"features": {
"features": [
{
"featureId": "b45f6432-2462-4c6f-b00f-1d9d01000000"
}
]
},
"attributes": {
"values": [
{
"attributeId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"defaultValues": [
{
"languageIso": "<string>",
"value": "<string>"
}
],
"salesChannelValues": [
{
"salesChannelId": "<string>",
"values": [
{
"languageIso": "<string>",
"value": "<string>"
}
]
}
]
}
]
},
"unitPricing": {
"salesUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"packagingUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"innerQuantity": 123,
"innerQuantityUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"isBasePriceDeclared": true,
"basePriceReferenceUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"basePriceReferenceAmount": 123
},
"specialPrices": {
"isActive": true,
"isEndDateActive": true,
"isStockRestrictionActive": true,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"minimumStockQuantity": 123,
"salesChannelSpecialPrices": [
{
"salesChannelId": "<string>",
"specialPrices": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"isActive": true,
"netPrice": 123
}
]
}
]
},
"storageConstraints": {
"allowNegativeStock": true,
"itemPlatformNegativeStocks": [
{
"platformId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"isNegativeStockAllowed": true
}
],
"itemSalesChannelNegativeStocks": [
{
"salesChannelId": "<string>",
"isNegativeStockAllowed": true
}
],
"buffer": 123,
"globalMinimumStockLevel": 123,
"hasBatch": true,
"isInventoryManagementActive": true,
"isBestBeforeManaged": true,
"isStockDivisible": true
}
}
}Update Item
Modifies an existing regular item with all specified properties. This command enables complete reconfiguration of an item including identifiers, descriptions, prices, measurements, and miscellaneous information.
curl --request PATCH \
--url https://api.jtl-cloud.com/erp/v2/items/{itemId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-tenant-id: <x-tenant-id>' \
--data '
{
"productGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"shippingClassId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"manufacturerId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"categories": {
"categories": [
{
"categoryId": "b45f6432-2462-4c6f-b00f-1d9d01000000"
}
]
},
"identifiers": {
"sku": "<string>",
"amazonFnsku": "<string>",
"gtin": "<string>",
"manufacturerNumber": "<string>",
"isbn": "<string>",
"tariccode": "<string>",
"upc": "<string>",
"unNumber": "<string>",
"hazardNumber": "<string>",
"ownIdentifier": "<string>",
"defaultAsin": "<string>",
"jfsku": "<string>"
},
"descriptions": {
"defaultDescriptions": [
{
"languageIso": "<string>",
"descriptionData": {
"itemName": "<string>",
"shortDescription": "<string>",
"description": "<string>",
"metaDescription": "<string>",
"metaKeywords": "<string>",
"titleTag": "<string>",
"urlPath": "<string>"
}
}
],
"salesChannelDescriptions": [
{
"salesChannelId": "<string>",
"languageIso": "<string>",
"descriptionData": {
"itemName": "<string>",
"shortDescription": "<string>",
"description": "<string>",
"metaDescription": "<string>",
"metaKeywords": "<string>",
"titleTag": "<string>",
"urlPath": "<string>"
}
}
],
"platformDescriptions": [
{
"platformId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"languageIso": "<string>",
"descriptionData": {
"itemName": "<string>",
"shortDescription": "<string>",
"description": "<string>",
"metaDescription": "<string>",
"metaKeywords": "<string>",
"titleTag": "<string>",
"urlPath": "<string>"
}
}
]
},
"prices": {
"ignoreDiscounts": true,
"salesPriceNet": 123,
"suggestedRetailPrice": 123,
"purchasePriceNet": 123,
"ebayPrice": 123,
"amazonPrice": 123,
"salesChannelPrices": [
{
"saleschannelId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"customerGroupPrices": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"prices": [
{
"fromQuantity": 123,
"netPrice": 123,
"reduceStandardPriceByPercent": 123
}
]
}
],
"isActive": true
}
],
"customerPrices": [
{
"customerId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"prices": [
{
"fromQuantity": 123,
"netPrice": 123,
"reduceStandardPriceByPercent": 123
}
]
}
],
"defaultPrices": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"prices": [
{
"fromQuantity": 123,
"netPrice": 123,
"reduceStandardPriceByPercent": 123
}
]
}
]
},
"measurements": {
"height": 123,
"length": 123,
"shippingWeight": 123,
"weight": 123,
"width": 123
},
"images": {
"defaultImages": [
{
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sortNumber": 123,
"isMainImage": true
}
],
"platformImages": [
{
"platformId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"images": [
{
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sortNumber": 123,
"isMainImage": true
}
]
}
],
"saleschannelImages": [
{
"saleschannelId": "<string>",
"images": [
{
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sortNumber": 123,
"isMainImage": true
}
]
}
],
"ebayImages": [
{
"ebayAccountId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"images": [
{
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sortNumber": 123,
"isMainImage": true
}
]
}
]
},
"suppliers": {
"defaultSupplier": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"defaultDropshippingSupplier": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"suppliers": [
{
"supplierId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"supplierItemName": "<string>",
"supplierItemNumber": "<string>",
"stockLevel": 123,
"netPurchasePrice": 123,
"minimumPurchaseQuantity": 123,
"deliveryTimeInDays": 123,
"isDropshippingActive": true,
"packageUnitDescription": "<string>",
"packageUnitQuantity": 123,
"notes": "<string>",
"vatRate": 123,
"useSupplierDeliveryTime": true,
"includeSupplierStock": true,
"purchaseInterval": 123,
"scalePrices": [
{
"fromQuantity": 123,
"usePercentageDiscount": true,
"netPrice": 123,
"percentageDiscount": 123
}
]
}
]
},
"variations": {
"variations": [
{
"variationId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"position": 123,
"descriptions": [
{
"languageIso": "<string>",
"name": "<string>"
}
],
"values": [
{
"variationValueId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"itemNumber": "<string>",
"gTIN": "<string>",
"weightOffset": 123,
"descriptions": [
{
"languageIso": "<string>",
"name": "<string>"
}
],
"surcharges": {
"defaultSurchargeNet": 123,
"customerGroupSurcharges": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"surcharge": 123,
"isActive": true
}
],
"salesChannelSurcharges": [
{
"salesChannelId": "<string>",
"surcharges": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"surcharge": 123,
"isActive": true
}
]
}
]
},
"position": 123,
"image": "b45f6432-2462-4c6f-b00f-1d9d01000000"
}
]
}
]
},
"deliveryStatusId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"includeInPriceList": true,
"ignoreOrderSuggestions": true,
"ignoreDiscounts": true,
"countryOfOrigin": "<string>",
"notes": "<string>",
"features": {
"features": [
{
"featureId": "b45f6432-2462-4c6f-b00f-1d9d01000000"
}
]
},
"attributes": {
"values": [
{
"attributeId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"defaultValues": [
{
"languageIso": "<string>",
"value": "<string>"
}
],
"salesChannelValues": [
{
"salesChannelId": "<string>",
"values": [
{
"languageIso": "<string>",
"value": "<string>"
}
]
}
]
}
]
},
"unitPricing": {
"salesUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"packagingUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"innerQuantity": 123,
"innerQuantityUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"isBasePriceDeclared": true,
"basePriceReferenceUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"basePriceReferenceAmount": 123
},
"specialPrices": {
"isActive": true,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"isEndDateActive": true,
"minimumStockQuantity": 123,
"isStockRestrictionActive": true,
"salesChannelSpecialPrices": [
{
"salesChannelId": "<string>",
"specialPrices": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"netPrice": 123,
"isActive": true
}
]
}
]
},
"storageConstraints": {
"allowNegativeStock": true,
"itemPlatformNegativeStocks": [
{
"platformId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"isNegativeStockAllowed": true
}
],
"itemSalesChannelNegativeStocks": [
{
"salesChannelId": "<string>",
"isNegativeStockAllowed": true
}
],
"buffer": 123,
"globalMinimumStockLevel": 123,
"hasBatch": true,
"isInventoryManagementActive": true,
"isBestBeforeManaged": true,
"isStockDivisible": true
}
}
'import requests
url = "https://api.jtl-cloud.com/erp/v2/items/{itemId}"
payload = {
"productGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"shippingClassId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"manufacturerId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"categories": { "categories": [{ "categoryId": "b45f6432-2462-4c6f-b00f-1d9d01000000" }] },
"identifiers": {
"sku": "<string>",
"amazonFnsku": "<string>",
"gtin": "<string>",
"manufacturerNumber": "<string>",
"isbn": "<string>",
"tariccode": "<string>",
"upc": "<string>",
"unNumber": "<string>",
"hazardNumber": "<string>",
"ownIdentifier": "<string>",
"defaultAsin": "<string>",
"jfsku": "<string>"
},
"descriptions": {
"defaultDescriptions": [
{
"languageIso": "<string>",
"descriptionData": {
"itemName": "<string>",
"shortDescription": "<string>",
"description": "<string>",
"metaDescription": "<string>",
"metaKeywords": "<string>",
"titleTag": "<string>",
"urlPath": "<string>"
}
}
],
"salesChannelDescriptions": [
{
"salesChannelId": "<string>",
"languageIso": "<string>",
"descriptionData": {
"itemName": "<string>",
"shortDescription": "<string>",
"description": "<string>",
"metaDescription": "<string>",
"metaKeywords": "<string>",
"titleTag": "<string>",
"urlPath": "<string>"
}
}
],
"platformDescriptions": [
{
"platformId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"languageIso": "<string>",
"descriptionData": {
"itemName": "<string>",
"shortDescription": "<string>",
"description": "<string>",
"metaDescription": "<string>",
"metaKeywords": "<string>",
"titleTag": "<string>",
"urlPath": "<string>"
}
}
]
},
"prices": {
"ignoreDiscounts": True,
"salesPriceNet": 123,
"suggestedRetailPrice": 123,
"purchasePriceNet": 123,
"ebayPrice": 123,
"amazonPrice": 123,
"salesChannelPrices": [
{
"saleschannelId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"customerGroupPrices": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"prices": [
{
"fromQuantity": 123,
"netPrice": 123,
"reduceStandardPriceByPercent": 123
}
]
}
],
"isActive": True
}
],
"customerPrices": [
{
"customerId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"prices": [
{
"fromQuantity": 123,
"netPrice": 123,
"reduceStandardPriceByPercent": 123
}
]
}
],
"defaultPrices": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"prices": [
{
"fromQuantity": 123,
"netPrice": 123,
"reduceStandardPriceByPercent": 123
}
]
}
]
},
"measurements": {
"height": 123,
"length": 123,
"shippingWeight": 123,
"weight": 123,
"width": 123
},
"images": {
"defaultImages": [
{
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sortNumber": 123,
"isMainImage": True
}
],
"platformImages": [
{
"platformId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"images": [
{
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sortNumber": 123,
"isMainImage": True
}
]
}
],
"saleschannelImages": [
{
"saleschannelId": "<string>",
"images": [
{
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sortNumber": 123,
"isMainImage": True
}
]
}
],
"ebayImages": [
{
"ebayAccountId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"images": [
{
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sortNumber": 123,
"isMainImage": True
}
]
}
]
},
"suppliers": {
"defaultSupplier": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"defaultDropshippingSupplier": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"suppliers": [
{
"supplierId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"supplierItemName": "<string>",
"supplierItemNumber": "<string>",
"stockLevel": 123,
"netPurchasePrice": 123,
"minimumPurchaseQuantity": 123,
"deliveryTimeInDays": 123,
"isDropshippingActive": True,
"packageUnitDescription": "<string>",
"packageUnitQuantity": 123,
"notes": "<string>",
"vatRate": 123,
"useSupplierDeliveryTime": True,
"includeSupplierStock": True,
"purchaseInterval": 123,
"scalePrices": [
{
"fromQuantity": 123,
"usePercentageDiscount": True,
"netPrice": 123,
"percentageDiscount": 123
}
]
}
]
},
"variations": { "variations": [
{
"variationId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"position": 123,
"descriptions": [
{
"languageIso": "<string>",
"name": "<string>"
}
],
"values": [
{
"variationValueId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"itemNumber": "<string>",
"gTIN": "<string>",
"weightOffset": 123,
"descriptions": [
{
"languageIso": "<string>",
"name": "<string>"
}
],
"surcharges": {
"defaultSurchargeNet": 123,
"customerGroupSurcharges": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"surcharge": 123,
"isActive": True
}
],
"salesChannelSurcharges": [
{
"salesChannelId": "<string>",
"surcharges": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"surcharge": 123,
"isActive": True
}
]
}
]
},
"position": 123,
"image": "b45f6432-2462-4c6f-b00f-1d9d01000000"
}
]
}
] },
"deliveryStatusId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"includeInPriceList": True,
"ignoreOrderSuggestions": True,
"ignoreDiscounts": True,
"countryOfOrigin": "<string>",
"notes": "<string>",
"features": { "features": [{ "featureId": "b45f6432-2462-4c6f-b00f-1d9d01000000" }] },
"attributes": { "values": [
{
"attributeId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"defaultValues": [
{
"languageIso": "<string>",
"value": "<string>"
}
],
"salesChannelValues": [
{
"salesChannelId": "<string>",
"values": [
{
"languageIso": "<string>",
"value": "<string>"
}
]
}
]
}
] },
"unitPricing": {
"salesUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"packagingUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"innerQuantity": 123,
"innerQuantityUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"isBasePriceDeclared": True,
"basePriceReferenceUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"basePriceReferenceAmount": 123
},
"specialPrices": {
"isActive": True,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"isEndDateActive": True,
"minimumStockQuantity": 123,
"isStockRestrictionActive": True,
"salesChannelSpecialPrices": [
{
"salesChannelId": "<string>",
"specialPrices": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"netPrice": 123,
"isActive": True
}
]
}
]
},
"storageConstraints": {
"allowNegativeStock": True,
"itemPlatformNegativeStocks": [
{
"platformId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"isNegativeStockAllowed": True
}
],
"itemSalesChannelNegativeStocks": [
{
"salesChannelId": "<string>",
"isNegativeStockAllowed": True
}
],
"buffer": 123,
"globalMinimumStockLevel": 123,
"hasBatch": True,
"isInventoryManagementActive": True,
"isBestBeforeManaged": True,
"isStockDivisible": True
}
}
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({
productGroupId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
shippingClassId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
manufacturerId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
categories: {categories: [{categoryId: 'b45f6432-2462-4c6f-b00f-1d9d01000000'}]},
identifiers: {
sku: '<string>',
amazonFnsku: '<string>',
gtin: '<string>',
manufacturerNumber: '<string>',
isbn: '<string>',
tariccode: '<string>',
upc: '<string>',
unNumber: '<string>',
hazardNumber: '<string>',
ownIdentifier: '<string>',
defaultAsin: '<string>',
jfsku: '<string>'
},
descriptions: {
defaultDescriptions: [
{
languageIso: '<string>',
descriptionData: {
itemName: '<string>',
shortDescription: '<string>',
description: '<string>',
metaDescription: '<string>',
metaKeywords: '<string>',
titleTag: '<string>',
urlPath: '<string>'
}
}
],
salesChannelDescriptions: [
{
salesChannelId: '<string>',
languageIso: '<string>',
descriptionData: {
itemName: '<string>',
shortDescription: '<string>',
description: '<string>',
metaDescription: '<string>',
metaKeywords: '<string>',
titleTag: '<string>',
urlPath: '<string>'
}
}
],
platformDescriptions: [
{
platformId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
languageIso: '<string>',
descriptionData: {
itemName: '<string>',
shortDescription: '<string>',
description: '<string>',
metaDescription: '<string>',
metaKeywords: '<string>',
titleTag: '<string>',
urlPath: '<string>'
}
}
]
},
prices: {
ignoreDiscounts: true,
salesPriceNet: 123,
suggestedRetailPrice: 123,
purchasePriceNet: 123,
ebayPrice: 123,
amazonPrice: 123,
salesChannelPrices: [
{
saleschannelId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
customerGroupPrices: [
{
customerGroupId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
prices: [{fromQuantity: 123, netPrice: 123, reduceStandardPriceByPercent: 123}]
}
],
isActive: true
}
],
customerPrices: [
{
customerId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
prices: [{fromQuantity: 123, netPrice: 123, reduceStandardPriceByPercent: 123}]
}
],
defaultPrices: [
{
customerGroupId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
prices: [{fromQuantity: 123, netPrice: 123, reduceStandardPriceByPercent: 123}]
}
]
},
measurements: {height: 123, length: 123, shippingWeight: 123, weight: 123, width: 123},
images: {
defaultImages: [
{
blobIdentifier: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
sortNumber: 123,
isMainImage: true
}
],
platformImages: [
{
platformId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
images: [
{
blobIdentifier: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
sortNumber: 123,
isMainImage: true
}
]
}
],
saleschannelImages: [
{
saleschannelId: '<string>',
images: [
{
blobIdentifier: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
sortNumber: 123,
isMainImage: true
}
]
}
],
ebayImages: [
{
ebayAccountId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
images: [
{
blobIdentifier: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
sortNumber: 123,
isMainImage: true
}
]
}
]
},
suppliers: {
defaultSupplier: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
defaultDropshippingSupplier: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
suppliers: [
{
supplierId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
supplierItemName: '<string>',
supplierItemNumber: '<string>',
stockLevel: 123,
netPurchasePrice: 123,
minimumPurchaseQuantity: 123,
deliveryTimeInDays: 123,
isDropshippingActive: true,
packageUnitDescription: '<string>',
packageUnitQuantity: 123,
notes: '<string>',
vatRate: 123,
useSupplierDeliveryTime: true,
includeSupplierStock: true,
purchaseInterval: 123,
scalePrices: [
{
fromQuantity: 123,
usePercentageDiscount: true,
netPrice: 123,
percentageDiscount: 123
}
]
}
]
},
variations: {
variations: [
{
variationId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
position: 123,
descriptions: [{languageIso: '<string>', name: '<string>'}],
values: [
{
variationValueId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
itemNumber: '<string>',
gTIN: '<string>',
weightOffset: 123,
descriptions: [{languageIso: '<string>', name: '<string>'}],
surcharges: {
defaultSurchargeNet: 123,
customerGroupSurcharges: [
{
customerGroupId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
surcharge: 123,
isActive: true
}
],
salesChannelSurcharges: [
{
salesChannelId: '<string>',
surcharges: [
{
customerGroupId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
surcharge: 123,
isActive: true
}
]
}
]
},
position: 123,
image: 'b45f6432-2462-4c6f-b00f-1d9d01000000'
}
]
}
]
},
deliveryStatusId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
includeInPriceList: true,
ignoreOrderSuggestions: true,
ignoreDiscounts: true,
countryOfOrigin: '<string>',
notes: '<string>',
features: {features: [{featureId: 'b45f6432-2462-4c6f-b00f-1d9d01000000'}]},
attributes: {
values: [
{
attributeId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
defaultValues: [{languageIso: '<string>', value: '<string>'}],
salesChannelValues: [
{
salesChannelId: '<string>',
values: [{languageIso: '<string>', value: '<string>'}]
}
]
}
]
},
unitPricing: {
salesUnitId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
packagingUnitId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
innerQuantity: 123,
innerQuantityUnitId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
isBasePriceDeclared: true,
basePriceReferenceUnitId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
basePriceReferenceAmount: 123
},
specialPrices: {
isActive: true,
startDate: '2023-11-07T05:31:56Z',
endDate: '2023-11-07T05:31:56Z',
isEndDateActive: true,
minimumStockQuantity: 123,
isStockRestrictionActive: true,
salesChannelSpecialPrices: [
{
salesChannelId: '<string>',
specialPrices: [
{
customerGroupId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
netPrice: 123,
isActive: true
}
]
}
]
},
storageConstraints: {
allowNegativeStock: true,
itemPlatformNegativeStocks: [
{
platformId: 'b45f6432-2462-4c6f-b00f-1d9d01000000',
isNegativeStockAllowed: true
}
],
itemSalesChannelNegativeStocks: [{salesChannelId: '<string>', isNegativeStockAllowed: true}],
buffer: 123,
globalMinimumStockLevel: 123,
hasBatch: true,
isInventoryManagementActive: true,
isBestBeforeManaged: true,
isStockDivisible: true
}
})
};
fetch('https://api.jtl-cloud.com/erp/v2/items/{itemId}', 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/items/{itemId}",
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([
'productGroupId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'shippingClassId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'manufacturerId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'categories' => [
'categories' => [
[
'categoryId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000'
]
]
],
'identifiers' => [
'sku' => '<string>',
'amazonFnsku' => '<string>',
'gtin' => '<string>',
'manufacturerNumber' => '<string>',
'isbn' => '<string>',
'tariccode' => '<string>',
'upc' => '<string>',
'unNumber' => '<string>',
'hazardNumber' => '<string>',
'ownIdentifier' => '<string>',
'defaultAsin' => '<string>',
'jfsku' => '<string>'
],
'descriptions' => [
'defaultDescriptions' => [
[
'languageIso' => '<string>',
'descriptionData' => [
'itemName' => '<string>',
'shortDescription' => '<string>',
'description' => '<string>',
'metaDescription' => '<string>',
'metaKeywords' => '<string>',
'titleTag' => '<string>',
'urlPath' => '<string>'
]
]
],
'salesChannelDescriptions' => [
[
'salesChannelId' => '<string>',
'languageIso' => '<string>',
'descriptionData' => [
'itemName' => '<string>',
'shortDescription' => '<string>',
'description' => '<string>',
'metaDescription' => '<string>',
'metaKeywords' => '<string>',
'titleTag' => '<string>',
'urlPath' => '<string>'
]
]
],
'platformDescriptions' => [
[
'platformId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'languageIso' => '<string>',
'descriptionData' => [
'itemName' => '<string>',
'shortDescription' => '<string>',
'description' => '<string>',
'metaDescription' => '<string>',
'metaKeywords' => '<string>',
'titleTag' => '<string>',
'urlPath' => '<string>'
]
]
]
],
'prices' => [
'ignoreDiscounts' => true,
'salesPriceNet' => 123,
'suggestedRetailPrice' => 123,
'purchasePriceNet' => 123,
'ebayPrice' => 123,
'amazonPrice' => 123,
'salesChannelPrices' => [
[
'saleschannelId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'customerGroupPrices' => [
[
'customerGroupId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'prices' => [
[
'fromQuantity' => 123,
'netPrice' => 123,
'reduceStandardPriceByPercent' => 123
]
]
]
],
'isActive' => true
]
],
'customerPrices' => [
[
'customerId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'prices' => [
[
'fromQuantity' => 123,
'netPrice' => 123,
'reduceStandardPriceByPercent' => 123
]
]
]
],
'defaultPrices' => [
[
'customerGroupId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'prices' => [
[
'fromQuantity' => 123,
'netPrice' => 123,
'reduceStandardPriceByPercent' => 123
]
]
]
]
],
'measurements' => [
'height' => 123,
'length' => 123,
'shippingWeight' => 123,
'weight' => 123,
'width' => 123
],
'images' => [
'defaultImages' => [
[
'blobIdentifier' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'sortNumber' => 123,
'isMainImage' => true
]
],
'platformImages' => [
[
'platformId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'images' => [
[
'blobIdentifier' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'sortNumber' => 123,
'isMainImage' => true
]
]
]
],
'saleschannelImages' => [
[
'saleschannelId' => '<string>',
'images' => [
[
'blobIdentifier' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'sortNumber' => 123,
'isMainImage' => true
]
]
]
],
'ebayImages' => [
[
'ebayAccountId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'images' => [
[
'blobIdentifier' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'sortNumber' => 123,
'isMainImage' => true
]
]
]
]
],
'suppliers' => [
'defaultSupplier' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'defaultDropshippingSupplier' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'suppliers' => [
[
'supplierId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'supplierItemName' => '<string>',
'supplierItemNumber' => '<string>',
'stockLevel' => 123,
'netPurchasePrice' => 123,
'minimumPurchaseQuantity' => 123,
'deliveryTimeInDays' => 123,
'isDropshippingActive' => true,
'packageUnitDescription' => '<string>',
'packageUnitQuantity' => 123,
'notes' => '<string>',
'vatRate' => 123,
'useSupplierDeliveryTime' => true,
'includeSupplierStock' => true,
'purchaseInterval' => 123,
'scalePrices' => [
[
'fromQuantity' => 123,
'usePercentageDiscount' => true,
'netPrice' => 123,
'percentageDiscount' => 123
]
]
]
]
],
'variations' => [
'variations' => [
[
'variationId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'position' => 123,
'descriptions' => [
[
'languageIso' => '<string>',
'name' => '<string>'
]
],
'values' => [
[
'variationValueId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'itemNumber' => '<string>',
'gTIN' => '<string>',
'weightOffset' => 123,
'descriptions' => [
[
'languageIso' => '<string>',
'name' => '<string>'
]
],
'surcharges' => [
'defaultSurchargeNet' => 123,
'customerGroupSurcharges' => [
[
'customerGroupId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'surcharge' => 123,
'isActive' => true
]
],
'salesChannelSurcharges' => [
[
'salesChannelId' => '<string>',
'surcharges' => [
[
'customerGroupId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'surcharge' => 123,
'isActive' => true
]
]
]
]
],
'position' => 123,
'image' => 'b45f6432-2462-4c6f-b00f-1d9d01000000'
]
]
]
]
],
'deliveryStatusId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'includeInPriceList' => true,
'ignoreOrderSuggestions' => true,
'ignoreDiscounts' => true,
'countryOfOrigin' => '<string>',
'notes' => '<string>',
'features' => [
'features' => [
[
'featureId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000'
]
]
],
'attributes' => [
'values' => [
[
'attributeId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'defaultValues' => [
[
'languageIso' => '<string>',
'value' => '<string>'
]
],
'salesChannelValues' => [
[
'salesChannelId' => '<string>',
'values' => [
[
'languageIso' => '<string>',
'value' => '<string>'
]
]
]
]
]
]
],
'unitPricing' => [
'salesUnitId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'packagingUnitId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'innerQuantity' => 123,
'innerQuantityUnitId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'isBasePriceDeclared' => true,
'basePriceReferenceUnitId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'basePriceReferenceAmount' => 123
],
'specialPrices' => [
'isActive' => true,
'startDate' => '2023-11-07T05:31:56Z',
'endDate' => '2023-11-07T05:31:56Z',
'isEndDateActive' => true,
'minimumStockQuantity' => 123,
'isStockRestrictionActive' => true,
'salesChannelSpecialPrices' => [
[
'salesChannelId' => '<string>',
'specialPrices' => [
[
'customerGroupId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'netPrice' => 123,
'isActive' => true
]
]
]
]
],
'storageConstraints' => [
'allowNegativeStock' => true,
'itemPlatformNegativeStocks' => [
[
'platformId' => 'b45f6432-2462-4c6f-b00f-1d9d01000000',
'isNegativeStockAllowed' => true
]
],
'itemSalesChannelNegativeStocks' => [
[
'salesChannelId' => '<string>',
'isNegativeStockAllowed' => true
]
],
'buffer' => 123,
'globalMinimumStockLevel' => 123,
'hasBatch' => true,
'isInventoryManagementActive' => true,
'isBestBeforeManaged' => true,
'isStockDivisible' => true
]
]),
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/items/{itemId}"
payload := strings.NewReader("{\n \"productGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"shippingClassId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"manufacturerId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"categories\": {\n \"categories\": [\n {\n \"categoryId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\"\n }\n ]\n },\n \"identifiers\": {\n \"sku\": \"<string>\",\n \"amazonFnsku\": \"<string>\",\n \"gtin\": \"<string>\",\n \"manufacturerNumber\": \"<string>\",\n \"isbn\": \"<string>\",\n \"tariccode\": \"<string>\",\n \"upc\": \"<string>\",\n \"unNumber\": \"<string>\",\n \"hazardNumber\": \"<string>\",\n \"ownIdentifier\": \"<string>\",\n \"defaultAsin\": \"<string>\",\n \"jfsku\": \"<string>\"\n },\n \"descriptions\": {\n \"defaultDescriptions\": [\n {\n \"languageIso\": \"<string>\",\n \"descriptionData\": {\n \"itemName\": \"<string>\",\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"metaDescription\": \"<string>\",\n \"metaKeywords\": \"<string>\",\n \"titleTag\": \"<string>\",\n \"urlPath\": \"<string>\"\n }\n }\n ],\n \"salesChannelDescriptions\": [\n {\n \"salesChannelId\": \"<string>\",\n \"languageIso\": \"<string>\",\n \"descriptionData\": {\n \"itemName\": \"<string>\",\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"metaDescription\": \"<string>\",\n \"metaKeywords\": \"<string>\",\n \"titleTag\": \"<string>\",\n \"urlPath\": \"<string>\"\n }\n }\n ],\n \"platformDescriptions\": [\n {\n \"platformId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"languageIso\": \"<string>\",\n \"descriptionData\": {\n \"itemName\": \"<string>\",\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"metaDescription\": \"<string>\",\n \"metaKeywords\": \"<string>\",\n \"titleTag\": \"<string>\",\n \"urlPath\": \"<string>\"\n }\n }\n ]\n },\n \"prices\": {\n \"ignoreDiscounts\": true,\n \"salesPriceNet\": 123,\n \"suggestedRetailPrice\": 123,\n \"purchasePriceNet\": 123,\n \"ebayPrice\": 123,\n \"amazonPrice\": 123,\n \"salesChannelPrices\": [\n {\n \"saleschannelId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"customerGroupPrices\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"prices\": [\n {\n \"fromQuantity\": 123,\n \"netPrice\": 123,\n \"reduceStandardPriceByPercent\": 123\n }\n ]\n }\n ],\n \"isActive\": true\n }\n ],\n \"customerPrices\": [\n {\n \"customerId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"prices\": [\n {\n \"fromQuantity\": 123,\n \"netPrice\": 123,\n \"reduceStandardPriceByPercent\": 123\n }\n ]\n }\n ],\n \"defaultPrices\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"prices\": [\n {\n \"fromQuantity\": 123,\n \"netPrice\": 123,\n \"reduceStandardPriceByPercent\": 123\n }\n ]\n }\n ]\n },\n \"measurements\": {\n \"height\": 123,\n \"length\": 123,\n \"shippingWeight\": 123,\n \"weight\": 123,\n \"width\": 123\n },\n \"images\": {\n \"defaultImages\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ],\n \"platformImages\": [\n {\n \"platformId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"images\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ]\n }\n ],\n \"saleschannelImages\": [\n {\n \"saleschannelId\": \"<string>\",\n \"images\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ]\n }\n ],\n \"ebayImages\": [\n {\n \"ebayAccountId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"images\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ]\n }\n ]\n },\n \"suppliers\": {\n \"defaultSupplier\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"defaultDropshippingSupplier\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"suppliers\": [\n {\n \"supplierId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"supplierItemName\": \"<string>\",\n \"supplierItemNumber\": \"<string>\",\n \"stockLevel\": 123,\n \"netPurchasePrice\": 123,\n \"minimumPurchaseQuantity\": 123,\n \"deliveryTimeInDays\": 123,\n \"isDropshippingActive\": true,\n \"packageUnitDescription\": \"<string>\",\n \"packageUnitQuantity\": 123,\n \"notes\": \"<string>\",\n \"vatRate\": 123,\n \"useSupplierDeliveryTime\": true,\n \"includeSupplierStock\": true,\n \"purchaseInterval\": 123,\n \"scalePrices\": [\n {\n \"fromQuantity\": 123,\n \"usePercentageDiscount\": true,\n \"netPrice\": 123,\n \"percentageDiscount\": 123\n }\n ]\n }\n ]\n },\n \"variations\": {\n \"variations\": [\n {\n \"variationId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"position\": 123,\n \"descriptions\": [\n {\n \"languageIso\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"values\": [\n {\n \"variationValueId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"itemNumber\": \"<string>\",\n \"gTIN\": \"<string>\",\n \"weightOffset\": 123,\n \"descriptions\": [\n {\n \"languageIso\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"surcharges\": {\n \"defaultSurchargeNet\": 123,\n \"customerGroupSurcharges\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"surcharge\": 123,\n \"isActive\": true\n }\n ],\n \"salesChannelSurcharges\": [\n {\n \"salesChannelId\": \"<string>\",\n \"surcharges\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"surcharge\": 123,\n \"isActive\": true\n }\n ]\n }\n ]\n },\n \"position\": 123,\n \"image\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\"\n }\n ]\n }\n ]\n },\n \"deliveryStatusId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"includeInPriceList\": true,\n \"ignoreOrderSuggestions\": true,\n \"ignoreDiscounts\": true,\n \"countryOfOrigin\": \"<string>\",\n \"notes\": \"<string>\",\n \"features\": {\n \"features\": [\n {\n \"featureId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\"\n }\n ]\n },\n \"attributes\": {\n \"values\": [\n {\n \"attributeId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"defaultValues\": [\n {\n \"languageIso\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"salesChannelValues\": [\n {\n \"salesChannelId\": \"<string>\",\n \"values\": [\n {\n \"languageIso\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ]\n }\n ]\n },\n \"unitPricing\": {\n \"salesUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"packagingUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"innerQuantity\": 123,\n \"innerQuantityUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"isBasePriceDeclared\": true,\n \"basePriceReferenceUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"basePriceReferenceAmount\": 123\n },\n \"specialPrices\": {\n \"isActive\": true,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"isEndDateActive\": true,\n \"minimumStockQuantity\": 123,\n \"isStockRestrictionActive\": true,\n \"salesChannelSpecialPrices\": [\n {\n \"salesChannelId\": \"<string>\",\n \"specialPrices\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"netPrice\": 123,\n \"isActive\": true\n }\n ]\n }\n ]\n },\n \"storageConstraints\": {\n \"allowNegativeStock\": true,\n \"itemPlatformNegativeStocks\": [\n {\n \"platformId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"isNegativeStockAllowed\": true\n }\n ],\n \"itemSalesChannelNegativeStocks\": [\n {\n \"salesChannelId\": \"<string>\",\n \"isNegativeStockAllowed\": true\n }\n ],\n \"buffer\": 123,\n \"globalMinimumStockLevel\": 123,\n \"hasBatch\": true,\n \"isInventoryManagementActive\": true,\n \"isBestBeforeManaged\": true,\n \"isStockDivisible\": true\n }\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/items/{itemId}")
.header("x-tenant-id", "<x-tenant-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"productGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"shippingClassId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"manufacturerId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"categories\": {\n \"categories\": [\n {\n \"categoryId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\"\n }\n ]\n },\n \"identifiers\": {\n \"sku\": \"<string>\",\n \"amazonFnsku\": \"<string>\",\n \"gtin\": \"<string>\",\n \"manufacturerNumber\": \"<string>\",\n \"isbn\": \"<string>\",\n \"tariccode\": \"<string>\",\n \"upc\": \"<string>\",\n \"unNumber\": \"<string>\",\n \"hazardNumber\": \"<string>\",\n \"ownIdentifier\": \"<string>\",\n \"defaultAsin\": \"<string>\",\n \"jfsku\": \"<string>\"\n },\n \"descriptions\": {\n \"defaultDescriptions\": [\n {\n \"languageIso\": \"<string>\",\n \"descriptionData\": {\n \"itemName\": \"<string>\",\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"metaDescription\": \"<string>\",\n \"metaKeywords\": \"<string>\",\n \"titleTag\": \"<string>\",\n \"urlPath\": \"<string>\"\n }\n }\n ],\n \"salesChannelDescriptions\": [\n {\n \"salesChannelId\": \"<string>\",\n \"languageIso\": \"<string>\",\n \"descriptionData\": {\n \"itemName\": \"<string>\",\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"metaDescription\": \"<string>\",\n \"metaKeywords\": \"<string>\",\n \"titleTag\": \"<string>\",\n \"urlPath\": \"<string>\"\n }\n }\n ],\n \"platformDescriptions\": [\n {\n \"platformId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"languageIso\": \"<string>\",\n \"descriptionData\": {\n \"itemName\": \"<string>\",\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"metaDescription\": \"<string>\",\n \"metaKeywords\": \"<string>\",\n \"titleTag\": \"<string>\",\n \"urlPath\": \"<string>\"\n }\n }\n ]\n },\n \"prices\": {\n \"ignoreDiscounts\": true,\n \"salesPriceNet\": 123,\n \"suggestedRetailPrice\": 123,\n \"purchasePriceNet\": 123,\n \"ebayPrice\": 123,\n \"amazonPrice\": 123,\n \"salesChannelPrices\": [\n {\n \"saleschannelId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"customerGroupPrices\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"prices\": [\n {\n \"fromQuantity\": 123,\n \"netPrice\": 123,\n \"reduceStandardPriceByPercent\": 123\n }\n ]\n }\n ],\n \"isActive\": true\n }\n ],\n \"customerPrices\": [\n {\n \"customerId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"prices\": [\n {\n \"fromQuantity\": 123,\n \"netPrice\": 123,\n \"reduceStandardPriceByPercent\": 123\n }\n ]\n }\n ],\n \"defaultPrices\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"prices\": [\n {\n \"fromQuantity\": 123,\n \"netPrice\": 123,\n \"reduceStandardPriceByPercent\": 123\n }\n ]\n }\n ]\n },\n \"measurements\": {\n \"height\": 123,\n \"length\": 123,\n \"shippingWeight\": 123,\n \"weight\": 123,\n \"width\": 123\n },\n \"images\": {\n \"defaultImages\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ],\n \"platformImages\": [\n {\n \"platformId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"images\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ]\n }\n ],\n \"saleschannelImages\": [\n {\n \"saleschannelId\": \"<string>\",\n \"images\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ]\n }\n ],\n \"ebayImages\": [\n {\n \"ebayAccountId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"images\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ]\n }\n ]\n },\n \"suppliers\": {\n \"defaultSupplier\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"defaultDropshippingSupplier\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"suppliers\": [\n {\n \"supplierId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"supplierItemName\": \"<string>\",\n \"supplierItemNumber\": \"<string>\",\n \"stockLevel\": 123,\n \"netPurchasePrice\": 123,\n \"minimumPurchaseQuantity\": 123,\n \"deliveryTimeInDays\": 123,\n \"isDropshippingActive\": true,\n \"packageUnitDescription\": \"<string>\",\n \"packageUnitQuantity\": 123,\n \"notes\": \"<string>\",\n \"vatRate\": 123,\n \"useSupplierDeliveryTime\": true,\n \"includeSupplierStock\": true,\n \"purchaseInterval\": 123,\n \"scalePrices\": [\n {\n \"fromQuantity\": 123,\n \"usePercentageDiscount\": true,\n \"netPrice\": 123,\n \"percentageDiscount\": 123\n }\n ]\n }\n ]\n },\n \"variations\": {\n \"variations\": [\n {\n \"variationId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"position\": 123,\n \"descriptions\": [\n {\n \"languageIso\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"values\": [\n {\n \"variationValueId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"itemNumber\": \"<string>\",\n \"gTIN\": \"<string>\",\n \"weightOffset\": 123,\n \"descriptions\": [\n {\n \"languageIso\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"surcharges\": {\n \"defaultSurchargeNet\": 123,\n \"customerGroupSurcharges\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"surcharge\": 123,\n \"isActive\": true\n }\n ],\n \"salesChannelSurcharges\": [\n {\n \"salesChannelId\": \"<string>\",\n \"surcharges\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"surcharge\": 123,\n \"isActive\": true\n }\n ]\n }\n ]\n },\n \"position\": 123,\n \"image\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\"\n }\n ]\n }\n ]\n },\n \"deliveryStatusId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"includeInPriceList\": true,\n \"ignoreOrderSuggestions\": true,\n \"ignoreDiscounts\": true,\n \"countryOfOrigin\": \"<string>\",\n \"notes\": \"<string>\",\n \"features\": {\n \"features\": [\n {\n \"featureId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\"\n }\n ]\n },\n \"attributes\": {\n \"values\": [\n {\n \"attributeId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"defaultValues\": [\n {\n \"languageIso\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"salesChannelValues\": [\n {\n \"salesChannelId\": \"<string>\",\n \"values\": [\n {\n \"languageIso\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ]\n }\n ]\n },\n \"unitPricing\": {\n \"salesUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"packagingUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"innerQuantity\": 123,\n \"innerQuantityUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"isBasePriceDeclared\": true,\n \"basePriceReferenceUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"basePriceReferenceAmount\": 123\n },\n \"specialPrices\": {\n \"isActive\": true,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"isEndDateActive\": true,\n \"minimumStockQuantity\": 123,\n \"isStockRestrictionActive\": true,\n \"salesChannelSpecialPrices\": [\n {\n \"salesChannelId\": \"<string>\",\n \"specialPrices\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"netPrice\": 123,\n \"isActive\": true\n }\n ]\n }\n ]\n },\n \"storageConstraints\": {\n \"allowNegativeStock\": true,\n \"itemPlatformNegativeStocks\": [\n {\n \"platformId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"isNegativeStockAllowed\": true\n }\n ],\n \"itemSalesChannelNegativeStocks\": [\n {\n \"salesChannelId\": \"<string>\",\n \"isNegativeStockAllowed\": true\n }\n ],\n \"buffer\": 123,\n \"globalMinimumStockLevel\": 123,\n \"hasBatch\": true,\n \"isInventoryManagementActive\": true,\n \"isBestBeforeManaged\": true,\n \"isStockDivisible\": true\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jtl-cloud.com/erp/v2/items/{itemId}")
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 \"productGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"shippingClassId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"manufacturerId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"categories\": {\n \"categories\": [\n {\n \"categoryId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\"\n }\n ]\n },\n \"identifiers\": {\n \"sku\": \"<string>\",\n \"amazonFnsku\": \"<string>\",\n \"gtin\": \"<string>\",\n \"manufacturerNumber\": \"<string>\",\n \"isbn\": \"<string>\",\n \"tariccode\": \"<string>\",\n \"upc\": \"<string>\",\n \"unNumber\": \"<string>\",\n \"hazardNumber\": \"<string>\",\n \"ownIdentifier\": \"<string>\",\n \"defaultAsin\": \"<string>\",\n \"jfsku\": \"<string>\"\n },\n \"descriptions\": {\n \"defaultDescriptions\": [\n {\n \"languageIso\": \"<string>\",\n \"descriptionData\": {\n \"itemName\": \"<string>\",\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"metaDescription\": \"<string>\",\n \"metaKeywords\": \"<string>\",\n \"titleTag\": \"<string>\",\n \"urlPath\": \"<string>\"\n }\n }\n ],\n \"salesChannelDescriptions\": [\n {\n \"salesChannelId\": \"<string>\",\n \"languageIso\": \"<string>\",\n \"descriptionData\": {\n \"itemName\": \"<string>\",\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"metaDescription\": \"<string>\",\n \"metaKeywords\": \"<string>\",\n \"titleTag\": \"<string>\",\n \"urlPath\": \"<string>\"\n }\n }\n ],\n \"platformDescriptions\": [\n {\n \"platformId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"languageIso\": \"<string>\",\n \"descriptionData\": {\n \"itemName\": \"<string>\",\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"metaDescription\": \"<string>\",\n \"metaKeywords\": \"<string>\",\n \"titleTag\": \"<string>\",\n \"urlPath\": \"<string>\"\n }\n }\n ]\n },\n \"prices\": {\n \"ignoreDiscounts\": true,\n \"salesPriceNet\": 123,\n \"suggestedRetailPrice\": 123,\n \"purchasePriceNet\": 123,\n \"ebayPrice\": 123,\n \"amazonPrice\": 123,\n \"salesChannelPrices\": [\n {\n \"saleschannelId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"customerGroupPrices\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"prices\": [\n {\n \"fromQuantity\": 123,\n \"netPrice\": 123,\n \"reduceStandardPriceByPercent\": 123\n }\n ]\n }\n ],\n \"isActive\": true\n }\n ],\n \"customerPrices\": [\n {\n \"customerId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"prices\": [\n {\n \"fromQuantity\": 123,\n \"netPrice\": 123,\n \"reduceStandardPriceByPercent\": 123\n }\n ]\n }\n ],\n \"defaultPrices\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"prices\": [\n {\n \"fromQuantity\": 123,\n \"netPrice\": 123,\n \"reduceStandardPriceByPercent\": 123\n }\n ]\n }\n ]\n },\n \"measurements\": {\n \"height\": 123,\n \"length\": 123,\n \"shippingWeight\": 123,\n \"weight\": 123,\n \"width\": 123\n },\n \"images\": {\n \"defaultImages\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ],\n \"platformImages\": [\n {\n \"platformId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"images\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ]\n }\n ],\n \"saleschannelImages\": [\n {\n \"saleschannelId\": \"<string>\",\n \"images\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ]\n }\n ],\n \"ebayImages\": [\n {\n \"ebayAccountId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"images\": [\n {\n \"blobIdentifier\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sortNumber\": 123,\n \"isMainImage\": true\n }\n ]\n }\n ]\n },\n \"suppliers\": {\n \"defaultSupplier\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"defaultDropshippingSupplier\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"suppliers\": [\n {\n \"supplierId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"supplierItemName\": \"<string>\",\n \"supplierItemNumber\": \"<string>\",\n \"stockLevel\": 123,\n \"netPurchasePrice\": 123,\n \"minimumPurchaseQuantity\": 123,\n \"deliveryTimeInDays\": 123,\n \"isDropshippingActive\": true,\n \"packageUnitDescription\": \"<string>\",\n \"packageUnitQuantity\": 123,\n \"notes\": \"<string>\",\n \"vatRate\": 123,\n \"useSupplierDeliveryTime\": true,\n \"includeSupplierStock\": true,\n \"purchaseInterval\": 123,\n \"scalePrices\": [\n {\n \"fromQuantity\": 123,\n \"usePercentageDiscount\": true,\n \"netPrice\": 123,\n \"percentageDiscount\": 123\n }\n ]\n }\n ]\n },\n \"variations\": {\n \"variations\": [\n {\n \"variationId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"position\": 123,\n \"descriptions\": [\n {\n \"languageIso\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"values\": [\n {\n \"variationValueId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"itemNumber\": \"<string>\",\n \"gTIN\": \"<string>\",\n \"weightOffset\": 123,\n \"descriptions\": [\n {\n \"languageIso\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"surcharges\": {\n \"defaultSurchargeNet\": 123,\n \"customerGroupSurcharges\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"surcharge\": 123,\n \"isActive\": true\n }\n ],\n \"salesChannelSurcharges\": [\n {\n \"salesChannelId\": \"<string>\",\n \"surcharges\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"surcharge\": 123,\n \"isActive\": true\n }\n ]\n }\n ]\n },\n \"position\": 123,\n \"image\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\"\n }\n ]\n }\n ]\n },\n \"deliveryStatusId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"includeInPriceList\": true,\n \"ignoreOrderSuggestions\": true,\n \"ignoreDiscounts\": true,\n \"countryOfOrigin\": \"<string>\",\n \"notes\": \"<string>\",\n \"features\": {\n \"features\": [\n {\n \"featureId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\"\n }\n ]\n },\n \"attributes\": {\n \"values\": [\n {\n \"attributeId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"defaultValues\": [\n {\n \"languageIso\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"salesChannelValues\": [\n {\n \"salesChannelId\": \"<string>\",\n \"values\": [\n {\n \"languageIso\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ]\n }\n ]\n },\n \"unitPricing\": {\n \"salesUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"packagingUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"innerQuantity\": 123,\n \"innerQuantityUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"isBasePriceDeclared\": true,\n \"basePriceReferenceUnitId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"basePriceReferenceAmount\": 123\n },\n \"specialPrices\": {\n \"isActive\": true,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"isEndDateActive\": true,\n \"minimumStockQuantity\": 123,\n \"isStockRestrictionActive\": true,\n \"salesChannelSpecialPrices\": [\n {\n \"salesChannelId\": \"<string>\",\n \"specialPrices\": [\n {\n \"customerGroupId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"netPrice\": 123,\n \"isActive\": true\n }\n ]\n }\n ]\n },\n \"storageConstraints\": {\n \"allowNegativeStock\": true,\n \"itemPlatformNegativeStocks\": [\n {\n \"platformId\": \"b45f6432-2462-4c6f-b00f-1d9d01000000\",\n \"isNegativeStockAllowed\": true\n }\n ],\n \"itemSalesChannelNegativeStocks\": [\n {\n \"salesChannelId\": \"<string>\",\n \"isNegativeStockAllowed\": true\n }\n ],\n \"buffer\": 123,\n \"globalMinimumStockLevel\": 123,\n \"hasBatch\": true,\n \"isInventoryManagementActive\": true,\n \"isBestBeforeManaged\": true,\n \"isStockDivisible\": true\n }\n}"
response = http.request(request)
puts response.read_body{
"item": {
"id": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"identifiers": {
"sku": "<string>",
"amazonFnsku": "<string>",
"gtin": "<string>",
"manufacturerNumber": "<string>",
"isbn": "<string>",
"tariccode": "<string>",
"upc": "<string>",
"unNumber": "<string>",
"hazardNumber": "<string>",
"ownIdentifier": "<string>",
"defaultAsin": "<string>",
"jfsku": "<string>"
},
"productGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"shippingClassId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"manufacturerId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"categories": {
"categories": [
{
"categoryId": "b45f6432-2462-4c6f-b00f-1d9d01000000"
}
]
},
"descriptions": {
"defaultDescriptions": [
{
"languageIso": "<string>",
"descriptionData": {
"itemName": "<string>",
"shortDescription": "<string>",
"description": "<string>",
"metaDescription": "<string>",
"metaKeywords": "<string>",
"titleTag": "<string>",
"urlPath": "<string>"
}
}
],
"salesChannelDescriptions": [
{
"salesChannelId": "<string>",
"languageIso": "<string>",
"descriptionData": {
"itemName": "<string>",
"shortDescription": "<string>",
"description": "<string>",
"metaDescription": "<string>",
"metaKeywords": "<string>",
"titleTag": "<string>",
"urlPath": "<string>"
}
}
],
"platformDescriptions": [
{
"platformId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"languageIso": "<string>",
"descriptionData": {
"itemName": "<string>",
"shortDescription": "<string>",
"description": "<string>",
"metaDescription": "<string>",
"metaKeywords": "<string>",
"titleTag": "<string>",
"urlPath": "<string>"
}
}
]
},
"prices": {
"ignoreDiscounts": true,
"salesPriceNet": 123,
"suggestedRetailPrice": 123,
"purchasePriceNet": 123,
"ebayPrice": 123,
"amazonPrice": 123,
"salesChannelPrices": [
{
"saleschannelId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"customerGroupPrices": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"prices": [
{
"fromQuantity": 123,
"netPrice": 123,
"reduceStandardPriceByPercent": 123
}
]
}
],
"isActive": true
}
],
"customerPrices": [
{
"customerId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"prices": [
{
"fromQuantity": 123,
"netPrice": 123,
"reduceStandardPriceByPercent": 123
}
]
}
],
"defaultPrices": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"prices": [
{
"fromQuantity": 123,
"netPrice": 123,
"reduceStandardPriceByPercent": 123
}
]
}
]
},
"images": {
"defaultImages": [
{
"sortNumber": 123,
"isMainImage": true,
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"previewUrl": "<string>"
}
],
"platformImages": [
{
"platformId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"images": [
{
"sortNumber": 123,
"isMainImage": true,
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"previewUrl": "<string>"
}
]
}
],
"saleschannelImages": [
{
"saleschannelId": "<string>",
"images": [
{
"sortNumber": 123,
"isMainImage": true,
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"previewUrl": "<string>"
}
]
}
],
"ebayImages": [
{
"ebayAccountId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"images": [
{
"sortNumber": 123,
"isMainImage": true,
"blobIdentifier": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"previewUrl": "<string>"
}
]
}
]
},
"measurements": {
"height": 123,
"length": 123,
"shippingWeight": 123,
"weight": 123,
"width": 123
},
"customFields": {
"fieldValues": [
{
"fieldId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"value": "<string>",
"valueCultureName": "<string>"
}
]
},
"suppliers": {
"defaultSupplier": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"defaultDropshippingSupplier": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"suppliers": [
{
"supplierId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"supplierItemName": "<string>",
"supplierItemNumber": "<string>",
"stockLevel": 123,
"netPurchasePrice": 123,
"minimumPurchaseQuantity": 123,
"deliveryTimeInDays": 123,
"isDropshippingActive": true,
"packageUnitDescription": "<string>",
"packageUnitQuantity": 123,
"notes": "<string>",
"vatRate": 123,
"useSupplierDeliveryTime": true,
"includeSupplierStock": true,
"purchaseInterval": 123,
"scalePrices": [
{
"fromQuantity": 123,
"usePercentageDiscount": true,
"netPrice": 123,
"percentageDiscount": 123
}
]
}
]
},
"includeInPriceList": true,
"ignoreOrderSuggestions": true,
"ignoreDiscounts": true,
"countryOfOrigin": "<string>",
"notes": "<string>",
"variations": {
"variations": [
{
"variationId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"position": 123,
"descriptions": [
{
"languageIso": "<string>",
"name": "<string>"
}
],
"values": [
{
"variationValueId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"itemNumber": "<string>",
"gTIN": "<string>",
"weightOffset": 123,
"descriptions": [
{
"languageIso": "<string>",
"name": "<string>"
}
],
"surcharges": {
"defaultSurchargeNet": 123,
"customerGroupSurcharges": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"surcharge": 123,
"isActive": true
}
],
"salesChannelSurcharges": [
{
"salesChannelId": "<string>",
"surcharges": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"surcharge": 123,
"isActive": true
}
]
}
]
},
"position": 123,
"image": "b45f6432-2462-4c6f-b00f-1d9d01000000"
}
]
}
]
},
"features": {
"features": [
{
"featureId": "b45f6432-2462-4c6f-b00f-1d9d01000000"
}
]
},
"attributes": {
"values": [
{
"attributeId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"defaultValues": [
{
"languageIso": "<string>",
"value": "<string>"
}
],
"salesChannelValues": [
{
"salesChannelId": "<string>",
"values": [
{
"languageIso": "<string>",
"value": "<string>"
}
]
}
]
}
]
},
"unitPricing": {
"salesUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"packagingUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"innerQuantity": 123,
"innerQuantityUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"isBasePriceDeclared": true,
"basePriceReferenceUnitId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"basePriceReferenceAmount": 123
},
"specialPrices": {
"isActive": true,
"isEndDateActive": true,
"isStockRestrictionActive": true,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"minimumStockQuantity": 123,
"salesChannelSpecialPrices": [
{
"salesChannelId": "<string>",
"specialPrices": [
{
"customerGroupId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"isActive": true,
"netPrice": 123
}
]
}
]
},
"storageConstraints": {
"allowNegativeStock": true,
"itemPlatformNegativeStocks": [
{
"platformId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
"isNegativeStockAllowed": true
}
],
"itemSalesChannelNegativeStocks": [
{
"salesChannelId": "<string>",
"isNegativeStockAllowed": true
}
],
"buffer": 123,
"globalMinimumStockLevel": 123,
"hasBatch": true,
"isInventoryManagementActive": true,
"isBestBeforeManaged": true,
"isStockDivisible": true
}
}
}Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Headers
The Company-Id (int or uuid) of the company on whose behalf the request is executed.
The tenant ID for the target ERP instance.
Path Parameters
"b45f6432-2462-4c6f-b00f-1d9d01000000"
Body
Request parameters
Modifies an existing regular item with all specified properties. This command enables complete reconfiguration of an item including identifiers, descriptions, prices, measurements, and miscellaneous information. - Request
The ID of the product group to which the item should be assigned. Product groups serve for categorical classification of items for reports and analyses.
"b45f6432-2462-4c6f-b00f-1d9d01000000"
The ID of the shipping class to which the item should be assigned.
"b45f6432-2462-4c6f-b00f-1d9d01000000"
The ID of the manufacturer to which the item should be assigned.
"b45f6432-2462-4c6f-b00f-1d9d01000000"
Category assignments of the item. Defines all categories to which the item should be assigned for better organization and navigation.
Show child attributes
Show child attributes
Identifiers of the item with all relevant markings and numbers for unique identification of the item in various systems.
Show child attributes
Show child attributes
Descriptions of the item in different languages and for different platforms/sales channels. Includes names, short and long descriptions as well as SEO-relevant information.
Show child attributes
Show child attributes
Price structures of the item for different sales channels, customer groups and individual customers. Includes sales prices, purchase prices and tier prices.
Show child attributes
Show child attributes
Physical dimensions and weight specifications of the item for storage, shipping and product presentation. Important for shipping cost calculations and storage space optimization.
Show child attributes
Show child attributes
tbd
Show child attributes
Show child attributes
Custom fields defined for the item to store additional information. Useful for special requirements or integrations.
Show child attributes
Show child attributes
Suppliers associated with the item including supplier-specific information such as purchase prices, delivery times and order intervals.
Show child attributes
Show child attributes
Variations of an item
Show child attributes
Show child attributes
Delivery status id determining the availability display of the item (e.g. 'immediately available', '2-3 days'). Tab 'Sonstiges'.
"b45f6432-2462-4c6f-b00f-1d9d01000000"
Indicates whether the item can be included in exported price lists. Tab 'Sonstiges'.
Indicates whether order suggestions should be ignored for this item. If true, the item will not appear in automatic order suggestions. Tab 'Sonstiges'.
Indicates whether the item is not eligible for discounts (Rabatte ignorieren / Nicht Rabattfähig). Tab 'Sonstiges'.
Country of origin (Herkunftsland) - ISO code or country name. Max length 64. Tab 'Sonstiges'.
Additional notes (Anmerkung) for the item - unlimited length. Tab 'Sonstiges'.
Features of an item
Show child attributes
Show child attributes
Attributes of an item
Show child attributes
Show child attributes
UnitPricing information of an item
Show child attributes
Show child attributes
SpecialPrices information of an item
Show child attributes
Show child attributes
ItemStorageConstraints information of an item
Show child attributes
Show child attributes
Response
Item was successfully modified.
Modifies an existing regular item with all specified properties. This command enables complete reconfiguration of an item including identifiers, descriptions, prices, measurements, and miscellaneous information. - Response
The changed item.
Show child attributes
Show child attributes
Was this page helpful?