10. 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"
- When updating only stock or price, sending the other field is not required.
- List price is product original price. It is the price crossed out when the selling price is low.
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"
}Updated about 16 hours ago
Did this page help you?