PATCH product/{productId}
This call allows to PATCH product. Null fields are ignored, and so are empty ones apart from the customs text fields: an empty CPSC, EUDR, ProductMidCode or NonStandardMidCode value clears it, and an empty PgaReferenceNumber removes the PGA reference.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| productId | integer | Required |
Body Parameters
Product patch you want to perform
ProductPatchModel
| Name | Description | Type | Additional information |
|---|---|---|---|
| PricingInformation | Product pricing info for instance: Price, RRP | ProductPatchPricingInfoModel | None. |
| WarehouseInformation | This contains warehouse information like Weight, Packagin etc. | ProductPatchWarehouseInformationModel | None. |
| GlobalTradeIdentifiers | EAN, UPC and additional barcodes; omit any to leave it unchanged. | ProductGlobalTradeIdentifiers | None. |
| ProductSpecialAttribute | The Products Special Attribute. | string | None. |
| Discontinued | Whether the product is discontinued. Leave null to leave unchanged. | boolean | None. |
| Archived | Whether the product is archived. Leave null to leave unchanged. | boolean | None. |
| CustomAttributes | Custom attributes to add or update on the product. Each entry identifies a custom attribute by CustomAttributeID or CustomAttributeName. If the product already has that attribute the value is updated; otherwise the attribute is assigned to the product with the supplied value. Attributes not included are left untouched. Custom attributes CANNOT be removed via PATCH - use the PUT product endpoint to remove them. Omit this field to leave custom attributes unchanged. | Collection of ProductCustomAttributeModel | None. |
| Description | The product's description. Omit to leave unchanged. | string | None. |
| ProductImages | Images to add to the product, each supplied as a URL or Base64 source. Images are appended to the product's gallery - existing images are not removed. Variant-level association is not supported via PATCH. Omit this field to leave images unchanged. | Collection of ProductImageCreateModel | None. |
Request Formats
application/json, text/json
Sample:
{
"PricingInformation": {
"Price": 10.99,
"RRP": 12.99
},
"WarehouseInformation": {
"Weight": 0.5,
"Dimensions": {
"HeightMM": 100.0,
"WidthMM": 102.76,
"LengthMM": 50.0
},
"PackagingId": 5,
"PackagingQuantity": 1,
"ShippingCost": 2.5,
"ProductHarmonizedCode": "123456",
"CountryOfManufacture": "GB",
"StockLocations": {
"Mode": "Add",
"Locations": [
{
"IDType": "StockLocationReference",
"Value": "A-1"
}
]
}
},
"ProductSpecialAttribute": "Special Attribute",
"Archived": false,
"CustomAttributes": [
{
"CustomAttribute": {
"CustomAttributeName": "Colour"
},
"Value": "Red"
}
],
"Description": "Product description",
"ProductImages": [
{
"Image": {
"SourceType": "URL",
"SourceValue": "https://example.com/image.jpg"
}
}
]
}
application/xml, text/xml
Sample:
<ProductPatchModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<PricingInformation>
<Price>10.99</Price>
<RRP>12.99</RRP>
</PricingInformation>
<WarehouseInformation>
<IsCpscRegulated xsi:nil="true" />
<Weight>0.5</Weight>
<IsBladed xsi:nil="true" />
<IsFirearm xsi:nil="true" />
<IsLqdg xsi:nil="true" />
<ClearLqdgOverride xsi:nil="true" />
<Dimensions>
<HeightMM>100</HeightMM>
<WidthMM>102.76</WidthMM>
<LengthMM>50</LengthMM>
</Dimensions>
<PackagingId>5</PackagingId>
<PackagingQuantity>1</PackagingQuantity>
<ShippingCost>2.50</ShippingCost>
<ProductHarmonizedCode>123456</ProductHarmonizedCode>
<CountryOfManufacture>GB</CountryOfManufacture>
<StockLocations>
<Mode>Add</Mode>
<Locations>
<StockLocationIDTypeModel>
<IDType>StockLocationReference</IDType>
<Value>A-1</Value>
</StockLocationIDTypeModel>
</Locations>
</StockLocations>
</WarehouseInformation>
<ProductSpecialAttribute>Special Attribute</ProductSpecialAttribute>
<Discontinued xsi:nil="true" />
<Archived>false</Archived>
<CustomAttributes>
<ProductCustomAttributeModel>
<CustomAttribute>
<CustomAttributeID xsi:nil="true" />
<CustomAttributeName>Colour</CustomAttributeName>
</CustomAttribute>
<Value>Red</Value>
</ProductCustomAttributeModel>
</CustomAttributes>
<Description>Product description</Description>
<ProductImages>
<ProductImageCreateModel>
<Image>
<SourceType>URL</SourceType>
<SourceValue>https://example.com/image.jpg</SourceValue>
</Image>
</ProductImageCreateModel>
</ProductImages>
</ProductPatchModel>
Response Information
Resource Description
This call allows to PATCH product. Null fields are ignored, and so are empty ones apart from the customs text fields: an empty CPSC, EUDR, ProductMidCode or NonStandardMidCode value clears it, and an empty PgaReferenceNumber removes the PGA reference.
ProductPatchModelResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductPatch | ProductPatchModelId | None. | |
| Success | Whether the action was successful | boolean | None. |
| Error | Any errors that were received Success will always be false if an error is returned. | string | None. |
Response Formats
application/json, text/json
Sample:
{
"ProductPatch": {
"ProductIDType": {
"IDType": "SKU",
"Value": "SKU123"
},
"Product": {
"PricingInformation": {
"Price": 10.99,
"RRP": 12.99
},
"WarehouseInformation": {
"Weight": 0.5,
"Dimensions": {
"HeightMM": 100.0,
"WidthMM": 102.76,
"LengthMM": 50.0
},
"PackagingId": 5,
"PackagingQuantity": 1,
"ShippingCost": 2.5,
"ProductHarmonizedCode": "123456",
"CountryOfManufacture": "GB",
"StockLocations": {
"Mode": "Add",
"Locations": [
{
"IDType": "StockLocationReference",
"Value": "A-1"
}
]
}
},
"ProductSpecialAttribute": "Special Attribute",
"Archived": false,
"CustomAttributes": [
{
"CustomAttribute": {
"CustomAttributeName": "Colour"
},
"Value": "Red"
}
],
"Description": "Product description",
"ProductImages": [
{
"Image": {
"SourceType": "URL",
"SourceValue": "https://example.com/image.jpg"
}
}
]
}
},
"Success": true
}