Product Update - Unapproved Product v2
This service allows you to update unapproved (draft) products in your Trendyol store.
- You need to send "storeFrontCode" as Header Parameter.
- In order to update products in Romanian, Greek and Arabic language, you can add "Accept-Language" as Header Parameter.
- ro is used for listing in the Romanian language on the RO storefront
- el is used for listing in the Greek language on the GR storefront
- ar is used for listing in the Arabic language on the SA, AE and KW storefronts
- If you want to listing the products information in English, you need to send it with "Accept-Language" as en.
- Only product information is updated via this service.
- Passing a field as null in update requests (e.g., "title": null) will completely delete the existing value of that field from the product. If you do not want a field's data to be deleted or changed, simply omit that field from the request body entirely.
- All fields required for product creation must be included in the request body when updating an unapproved product. You can check the mandatory fields for product creation requests here.
- Since new categories and category attribute values may be added, we recommend verifying that the category, category attributes, and category attribute values you are using are up-to-date via the getCategoryTree, getCategoryAttributes, and getCategoryAttributesValues services before performing product updates.
- The maximum number of items that can be sent in a single request is 1,000.
CHECK BATCH REQUEST 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
POST updateProducts
Sample Service Request
{
"items": [
{
"barcode": "barcodelarrtest1",
"title": "string",
"description": "string",
"productMainId": "string",
"brandId": 1,
"categoryId": 1,
"stockCode": "string",
"origin": "AD",
"dimensionalWeight": 0,
"vatRate": 0,
"deliveryOption": {
"deliveryDuration": 0
},
"locationBasedDelivery": "string", //"ENABLED", "DISABLED" yada null değerlerini alabilir
"lotNumber": "string",
"cargoProviders": ["cargo company code"],
"shipmentAddressId": 0,
"returningAddressId": 0,
"images": [
{
"url": "trendyol.com/test.jpeg"
}
],
"attributes": [
{
"attributeId": 1,
"attributeValueId": 1
},
{
"attributeId": 2,
"customAttributeValue": "String"
}
],
"sgrPrice": 10.0
}
]
}Updated 5 days ago
Did this page help you?