update_price_and_stock
Batch update stock and price for existing Trendyol products using barcodes. Supports up to 1000 items per request.
Instructions
WRITE: batch-update stock quantity and/or prices for existing products.
Refuses unless the environment variable TRENDYOL_ALLOW_WRITES=true is set.
Args: items_json: JSON array of item objects, e.g. '[{"barcode": "BC123", "quantity": 10, "salePrice": 99.9, "listPrice": 129.9}]' Each item needs "barcode"; "quantity", "salePrice" and "listPrice" are optional (update only what you send). Max 1000 items per call.
Returns the batchRequestId Trendyol assigns; the update is processed asynchronously on their side.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items_json | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||