9. Stock and Price Update

The price and stock information of the products can be updated using this service.

  • You need to send "storeFrontCode" as Header Parameter.
  • The maximum number of items that can be sent in each request is 1000.
  • "listPrice" cannot be lower than "salePrice"
❗️

While using updatePriceAndInventory method is 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: POST

Sample Service Request

{
  "items": [
    {
      "barcode": "test-barcode",
      "quantity": 0,
      "salePrice": 0,
      "listPrice": 0
    }
  ]
}

Sample Service Response

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