---
title: Receives a backwards-compatible catalog import file and imports the contents into Commerce.  
The file to be used is based of the upload identifier of a file previously updated using /episerverapi/commerce/import/upload/chunk 
and /episerverapi/commerce
slug: commerce-connect-15/service-api/byX8-receives-a-backwards-compatible-catalog-import-file-and-imports-the-contents-into-commerce-the-file-to-be-used-is-based-of-the-upload-identifier-of-a-file-previously-updated-using-episerverapicommer
docTags: 
createdAt: 2026-10-09T17:33:30.457Z
---

{
  "id": "pqrVPMMcZKvoFe9D7Q0KC",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "/episerverapi/commerce/import/catalog/{uploadId}",
    "servers": [],
    "name": "Receives a backwards-compatible catalog import file and imports the contents into Commerce.  \r\nThe file to be used is based of the upload identifier of a file previously updated using /episerverapi/commerce/import/upload/chunk \r\nand /episerverapi/commerce/import/upload/commit.",
    "description": "Depends on receiving the OAuth security token to validate the session.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "uploadId",
          "type": "string<uuid>",
          "description": "The upload identifier from the chunked upload commit.",
          "format": "uuid"
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "text/plain",
            "application/json",
            "text/json"
          ],
          "default": "text/plain"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "The catalogs are saved.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "string<uuid>",
            "description": "",
            "format": "uuid",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "If user does not have enough permission for this request.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "If file does not exist.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "i91lHE_7D18qehxNkGU4N",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url /episerverapi/commerce/import/catalog/{uploadId} \\\n     --header 'accept: text/plain'"
        },
        {
          "id": "tPErikn52OPXw2cfOjLsV",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"text/plain\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"/episerverapi/commerce/import/catalog/{uploadId}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "kXvvJEWOzYt2bw_0qMwim",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/episerverapi/commerce/import/catalog/{uploadId}\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"text/plain\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "kRdvnlRETmGa299XrUO2O",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/episerverapi/commerce/import/catalog/{uploadId}\"\n\npayload = {}\nheaders = {\n   'accept': 'text/plain',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "i91lHE_7D18qehxNkGU4N"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// The catalogs are saved.\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 file does not exist.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}