---
title: Returns the aggregate status log of a(n import) task at the time of the request.
slug: commerce-connect-15/service-api/jvhB-returns-the-aggregate-status-log-of-an-import-task-at-the-time-of-the-request
docTags: 
createdAt: 2026-10-09T17:33:30.457Z
---

{
  "id": "LrNTAiLUjOqR0wKX9lA_S",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "http://localhost:64424/episerverapi/commerce/task/{taskId}/log",
    "servers": [
      {
        "url": "http://localhost:64424/episerverapi/commerce/task/{taskId}/log"
      },
      {
        "url": "https://localhost:64424/episerverapi/commerce/task/{taskId}/log"
      }
    ],
    "name": "Returns the aggregate status log of a(n import) task at the time of the request.",
    "description": "Depends on receiving the OAuth security token to validate the session.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "taskId",
          "type": "string<uuid>",
          "description": "The ID of the task as returned at the time the task was initiated.",
          "format": "uuid"
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Return the aggregate status log at the time of the request.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "description": "A job message.",
            "customType": "EPiServer.ServiceApi.Models.JobMessage[]",
            "schema": [
              {
                "name": "TimestampUtc",
                "kind": "optional",
                "type": "string<date-time>",
                "description": "<p>Gets or sets the timestamp of the message, in UTC.</p>",
                "format": "date-time"
              },
              {
                "name": "MessageType",
                "kind": "optional",
                "type": "integer<int32>",
                "description": "Gets or sets the type of the message.",
                "format": "int32",
                "enum": [
                  "0",
                  "1",
                  "2",
                  "3",
                  "4",
                  "5"
                ]
              },
              {
                "name": "Message",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the content of the message."
              },
              {
                "name": "StageName",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the name of the current stage of processing."
              },
              {
                "name": "StageIndex",
                "kind": "optional",
                "type": "integer<int32>",
                "description": "<p>Gets or sets the index (zero based) of the current stage.</p>",
                "format": "int32"
              },
              {
                "name": "StageCount",
                "kind": "optional",
                "type": "integer<int32>",
                "description": "Gets or sets the number of stages in the task.",
                "format": "int32"
              },
              {
                "name": "StageProgress",
                "kind": "optional",
                "type": "integer<int32>",
                "description": "Gets or sets the current progress within the current stage of execution.",
                "format": "int32"
              },
              {
                "name": "StageTotalProgress",
                "kind": "optional",
                "type": "integer<int32>",
                "description": "<p>Gets or sets the value of {StageProgress} that indicates completion of the\r\ncurrent stage.</p>",
                "format": "int32"
              },
              {
                "name": "ExceptionMessage",
                "kind": "optional",
                "type": "string",
                "description": "<p>Gets or sets the exception message from {Exception}, or null if\r\n{System.Exception} is null.</p>"
              },
              {
                "name": "ExceptionStackTrace",
                "kind": "optional",
                "type": "string",
                "description": "<p>Gets or sets the stack trace from {Exception}, or null if\r\n{System.Exception} is null.</p>"
              }
            ],
            "modelRef": "#/components/schemas/EPiServer.ServiceApi.Models.JobMessage",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "If user does not have enough permission for this request.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "If task does not exist.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "or-DpoRsUQBLJWkvDAjoE",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url http://localhost:64424/episerverapi/commerce/task/{taskId}/log \\\n     --header 'accept: application/json'"
        },
        {
          "id": "W49Sis7P2WG_uC2xWQdZ8",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"http://localhost:64424/episerverapi/commerce/task/{taskId}/log\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "tnNu1wPR1mGkCVI6FTY8a",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"http://localhost:64424/episerverapi/commerce/task/{taskId}/log\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "e-fa8vtebxDe8T1Qonv7C",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"http://localhost:64424/episerverapi/commerce/task/{taskId}/log\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "or-DpoRsUQBLJWkvDAjoE"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Return the aggregate status log at the time of the request.\n[\n  {\n    \"TimestampUtc\": \"\",\n    \"MessageType\": \"\",\n    \"Message\": \"\",\n    \"StageName\": \"\",\n    \"StageIndex\": \"\",\n    \"StageCount\": \"\",\n    \"StageProgress\": \"\",\n    \"StageTotalProgress\": \"\",\n    \"ExceptionMessage\": \"\",\n    \"ExceptionStackTrace\": \"\"\n  }\n]"
        },
        {
          "id": "response-1-401",
          "language": "401",
          "code": "// If user does not have enough permission for this request.\n"
        },
        {
          "id": "response-2-404",
          "language": "404",
          "code": "// If task does not exist.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}