8. Check Batchrequest Result

While creating products, updating products and updating price and inventory in TrendyolSystem, batchRequestId information is returned in each successful request result.

By checking the "status" field in the return of the service, you can check whether the batch has been completed. If more than one item in the batch results in an error, the failureReasons field can be checked to see error reason.

  • You need to send "storeFrontCode" as Header Parameter.

  • "batch-request-id" is a path variable that should get from Product Create / Product Update / Price and Inventory Update response model.

  • Batch Request Result response model may be differ by type

HTTP method: GET

Sample Service Response for ProductCreate

{
    "batchRequestId": "83000af7-8bc1-41d4-b825-7c5cc8186cdb-1736180162",
    "items": [
        {
            "requestItem": {
                "product": {
                    "barcode": "11111122224",
                    "title": "Test Product Title",
                    "productMainId": "11111122222test",
                    "brandId": 187803,
                    "categoryId": 91266,
                    "quantity": 50,
                    "description": "Test Product Description",
                    "originalPrice": 6,
                    "salePrice": 6,
                    "vatRate": 5,
                    "stockCode": "STK-test",
                    "images": [
                        {
                            "url": "https://cdn.ae1stcry.com/brainbees/images/products/zoom/3453114a.jpg"
                        }
                    ],
                    "attributes": [
                        {
                            "attributeId": 293,
                            "attributeValueId": 2904,
                            "customAttributeValue": null
                        },
                        {
                            "attributeId": 47,
                            "attributeValueId": null,
                            "customAttributeValue": "White"
                        },
                        {
                            "attributeId": 17620,
                            "attributeValueId": null,
                            "customAttributeValue": "Metal"
                        },
                        {
                            "attributeId": 294,
                            "attributeValueId": 2878,
                            "customAttributeValue": null
                        },
                        {
                            "attributeId": 296,
                            "attributeValueId": 2873,
                            "customAttributeValue": null
                        },
                        {
                            "attributeId": 295,
                            "attributeValueId": 2893,
                            "customAttributeValue": null
                        }
                    ]
                },
                "storeFrontCode": "AE",
                "barcode": "11111122224"
            },
            "status": "SUCCESS",
            "failureReasons": []
        }
    ],
    "status": "COMPLETED",
    "creationDate": 1736154962342,
    "lastModification": 1736154965209,
    "sourceType": "API",
    "itemCount": 1,
    "failedItemCount": 0,
    "batchRequestType": "GlobalProductCreate"
}

Sample Service Response for ProductUpdate

{
    "batchRequestId": "c55d0547-3569-4695-81c3-d53156d8adbb-1736175815",
    "items": [
        {
            "requestItem": {
                "product": {
                    "barcode": "11111122222",
                    "title": "Test Product Title v2",
                    "productMainId": "11111122222test",
                    "stockCode": "STK-test",
                    "brandId": 187803,
                    "categoryId": 91266,
                    "description": "Test Product Description",
                    "vatRate": 5,
                    "images": [
                        {
                            "url": "https://cdn.ae1stcry.com/brainbees/images/products/zoom/3453114a.jpg"
                        }
                    ],
                    "attributes": [
                        {
                            "attributeId": 293,
                            "attributeValueId": 2904,
                            "customAttributeValue": null
                        },
                        {
                            "attributeId": 47,
                            "attributeValueId": null,
                            "customAttributeValue": "White"
                        },
                        {
                            "attributeId": 17620,
                            "attributeValueId": null,
                            "customAttributeValue": "metal"
                        },
                        {
                            "attributeId": 294,
                            "attributeValueId": 2878,
                            "customAttributeValue": null
                        },
                        {
                            "attributeId": 296,
                            "attributeValueId": 2873,
                            "customAttributeValue": null
                        },
                        {
                            "attributeId": 295,
                            "attributeValueId": 2893,
                            "customAttributeValue": null
                        }
                    ],
                    "ignoreEmptyOriginalPrice": null
                },
                "barcode": "11111122222"
            },
            "status": "SUCCESS",
            "failureReasons": []
        }
    ],
    "status": "COMPLETED",
    "creationDate": 1736150615275,
    "lastModification": 1736150617204,
    "sourceType": "API",
    "itemCount": 1,
    "failedItemCount": 0,
    "batchRequestType": "GlobalProductUpdate"
}

Sample Service Response for Stock&PriceUpdate

{
    "batchRequestId": "0e468547-2c00-11f0-8802-82cbb1120f9c-1746718319",
    "items": [
        {
            "requestItem": {
                "updateRequestDate": "2025-05-08T11:32:00.340+00:00",
                "quantity": 150,
                "salePrice": 10,
                "barcode": "11111111111",
                "listPrice": 10
            },
            "status": "SUCCESS",
            "failureReasons": []
        }
    ],
    "status": "COMPLETED",
    "creationDate": 1746703920335,
    "lastModification": 1746703920335,
    "sourceType": "API",
    "itemCount": 1,
    "failedItemCount": 0,
    "batchRequestType": "ProductInventoryUpdate"
}

Sample Service Response for Product Archive

{
  "batchRequestId": "8e12d3fe-2d72-4ed0-b1e5-a4e4d7290bd5-1754145895",
  "items": [
    {
      "requestItem": {
        "archived": true,
        "supplierId": 2748,
        "barcode": "11111111111"
      },
      "status": "SUCCESS",
      "failureReasons": [],
      "batchRequestLogId": "1ebea453-6ed2-4638-8977-1713bb34845d"
    }
  ],
  "status": "COMPLETED",
  "creationDate": 1753886695467,
  "lastModification": 1753886695467,
  "sourceType": "WEB",
  "itemCount": 1,
  "failedItemCount": 0,
  "batchRequestType": "ProductArchiveUpdate",
  "notes": null
}

Sample Service Response for Product Delete

{
  "batchRequestId": "8e0fbad0-ea9d-4fca-ac8c-1837062ea6bf-1757328512",
  "items": [
    {
      "requestItem": {
        "barcode": "11111111111"
      },
      "status": "SUCCESS",
      "failureReasons": []
    }
  ],
  "status": "COMPLETED",
  "creationDate": 1757314112508,
  "lastModification": 1757314114851,
  "sourceType": "API",
  "itemCount": 1,
  "failedItemCount": 0,
  "batchRequestType": "ProductDeletion"
}