3. Product Update

This service is used for updating the products you have created before.

  • You need to send "storeFrontCode" as Header Parameter.
  • You can only update stock through the stock update service.
  • For approved products, the barcode, productMainId, brandId, categoryId fields, and attribute values defined as slicer or varianter, cannot be updated.
❗️

Check BatchRequest Result While createProducts, updateProducts, updatePriceAndInventory methods are processed by the queue in Trendyol System, a batchRequestId information is returned in each successful request result. By checking the "status" field in the return of the batchRequest service, you can check whether the batch has been completed. If an item in the batch results has an error, the failureReasons field can be checked to see error reasoN

HTTP method:PUT

Sample Service Request

{
  "items": [
    {
      "barcode": "string",
      "stockCode": "string",
      "title": "string",
      "productMainId": "string",
      "brandId": 0,
      "categoryId": 0,
      "description": "string",
      "vatRate": 0,
      "shipmentAddressId": 0,
      "returningAddressId": 0,
      "deliveryOption": {
        "deliveryDuration": 1,
      }
      "images": [
        {
          "url": "string"
        }
      ],
      "attributes": [
        {
          "attributeId": 47,
          "customAttributeValue": "Red"
        },
        {
          "attributeId": 3,
          "attributeValueId": 998
        }
      ]
    }
  ]
}

Sample Service Response

{
  "batchRequestId": "8d30c8d3-0800-11ed-8fdd-cac59bbd2b08-1658317798"
}