---
title: OF03 - Get the Error Report File for an Import
slug: of03-get-the-error-report-file-for-an-import
docTags: 
createdAt: 2023-02-28T19:24:00.000Z
---

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://saksus2-dev.mirakl.net/api/offers/imports/{import}/error_report",
  "name": "OF03 - Get the Error Report File for an Import",
  "method": "GET",
  "request": {
    "pathParameters": [
      {
        "kind": "required",
        "name": "import",
        "type": "Integer",
        "children": [],
        "description": "Import identifier"
      }
    ],
    "queryParameters": [
      {
        "kind": "optional",
        "name": "shop_id",
        "type": "Integer",
        "children": [],
        "description": "Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used."
      }
    ],
    "headerParameters": [
      {
        "kind": "required",
        "name": "Authorization",
        "type": "string",
        "children": [],
        "description": ""
      }
    ],
    "bodyDataParameters": [],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "xmfx98ly0WGpEN_-TG0xC",
        "code": "",
        "language": "200",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "xmfx98ly0WGpEN_-TG0xC"
  },
  "examples": {
    "languages": [
      {
        "id": "IgrOuV17oD08ZC7b4KqVj",
        "code": "curl --location -g --request GET 'https://saksus2-dev.mirakl.net/api/offers/imports/{import}/error_report?shop_id=Integer' \\\n--header 'Accept: application/json' \\\n--header 'Authorization: string'",
        "language": "curl",
        "customLabel": ""
      },
      {
        "id": "ffQBLwO-aw02GKi2U4f8W",
        "code": "var request = require('request');\nvar options = {\n   'method': 'GET',\n   'url': 'https://saksus2-dev.mirakl.net/api/offers/imports/{import}/error_report?shop_id=Integer',\n   'headers': {\n      'Accept': 'application/json',\n      'Authorization': 'string'\n   }\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "language": "nodejs",
        "customLabel": ""
      },
      {
        "id": "-8pGGWPRjUOow61TiAVsb",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Authorization\", \"string\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://saksus2-dev.mirakl.net/api/offers/imports/{import}/error_report?shop_id=Integer\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "language": "javascript",
        "customLabel": ""
      },
      {
        "id": "4f337ZBAK_HZPZ0c4-c1T",
        "code": "import requests\n\nurl = \"https://saksus2-dev.mirakl.net/api/offers/imports/{import}/error_report?shop_id=Integer\"\n\npayload={}\nheaders = {\n   'Accept': 'application/json',\n   'Authorization': 'string'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "language": "python",
        "customLabel": ""
      },
      {
        "id": "6ewY79SIajj3cKQtPeadX",
        "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"https://saksus2-dev.mirakl.net/api/offers/imports/{import}/error_report?shop_id=Integer\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Authorization\"] = \"string\"\n\nresponse = https.request(request)\nputs response.read_body\n",
        "language": "ruby",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "IgrOuV17oD08ZC7b4KqVj"
  },
  "description": "Used when OF02 reports an error.  This API returns a CSV, XLSX or XML file, depending on the file format provided by the seller.",
  "currentNewParameter": {
    "label": "Header Parameter",
    "value": "headerParameters"
  },
  "autoGeneratedAnchorSlug": "of03-get-the-error-report-file-for-an-import",
  "legacyHash": "evru1yXdgP10BRHpf7ls_"
}
```
:::

::::VerticalSplit{layout="middle"}
:::VerticalSplitItem
**CALL FREQUENCIES**
:::

:::VerticalSplitItem
Recommended: After each OF02 call, every 5 minutes

Maximum: Once per minute
:::
::::

