---
title: Creates the file from the sum of the parts that were uploaded for the upload identifier. Returns the upload identifier if successful.
slug: commerce-connect-15/service-api/JDVj-creates-the-file-from-the-sum-of-the-parts-that-were-uploaded-for-the-upload-identifier-returns-the-upload-identifier-if-successful
docTags: 
createdAt: 2026-10-09T17:33:31.176Z
---

{
  "id": "QhsnYIfMgDPbcfqvSsFol",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "http://localhost:64424/episerverapi/commerce/import/upload/commit/{uploadId}/{overwrite}",
    "servers": [
      {
        "url": "http://localhost:64424/episerverapi/commerce/import/upload/commit/{uploadId}/{overwrite}"
      },
      {
        "url": "https://localhost:64424/episerverapi/commerce/import/upload/commit/{uploadId}/{overwrite}"
      }
    ],
    "name": "Creates the file from the sum of the parts that were uploaded for the upload identifier. Returns the upload identifier if successful.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "uploadId",
          "type": "string<uuid>",
          "description": "The upload identifier.",
          "format": "uuid"
        },
        {
          "kind": "required",
          "name": "overwrite",
          "type": "boolean",
          "description": "The overwrite flag."
        }
      ],
      "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": "The file is uploaded.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "string<uuid>",
            "example": "00000000-0000-0000-0000-000000000000",
            "description": "",
            "format": "uuid",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "If user does not have enough permission for this request.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "PDZjznvgNONxswysaRzLP",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url http://localhost:64424/episerverapi/commerce/import/upload/commit/{uploadId}/{overwrite} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "RQRNcZcXfGffzfwSenMCu",
          "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: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"http://localhost:64424/episerverapi/commerce/import/upload/commit/{uploadId}/{overwrite}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "J66111AdhvPsMQvZVs7Xa",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"http://localhost:64424/episerverapi/commerce/import/upload/commit/{uploadId}/{overwrite}\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "ZYzV2IfJ2xEzkLpWwQoyh",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"http://localhost:64424/episerverapi/commerce/import/upload/commit/{uploadId}/{overwrite}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "PDZjznvgNONxswysaRzLP"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// The file is uploaded.\n\"00000000-0000-0000-0000-000000000000\""
        },
        {
          "id": "response-1-401",
          "language": "401",
          "code": "// If user does not have enough permission for this request.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}