---
title: Gets all the node entry relations.
slug: commerce-connect-15/service-api/YLhA-gets-all-the-node-entry-relations
docTags: 
createdAt: 2026-10-09T17:33:31.176Z
---

{
  "id": "nOFaDTEoQsiFufnYREKlU",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "/episerverapi/commerce/entries/{entryCode}/nodeentryrelations",
    "servers": [],
    "name": "Gets all the node entry relations.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "entryCode",
          "type": "string",
          "description": ""
        }
      ],
      "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": [
        {
          "kind": "optional",
          "name": "entryCode",
          "type": "string",
          "description": "The entry code."
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Return the node entry relations.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "description": "",
            "customType": "NodeEntryRelation[]",
            "schema": [
              {
                "name": "sortOrder",
                "kind": "optional",
                "type": "integer<int32>",
                "description": "Gets or sets the sort order.",
                "format": "int32"
              },
              {
                "name": "nodeCode",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "Gets or sets the parent node code."
              },
              {
                "name": "entryCode",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "Gets or sets the child node code."
              },
              {
                "name": "isPrimary",
                "kind": "optional",
                "type": "boolean",
                "nullable": true,
                "description": "<p>Gets or sets whether this relation is the primary relation for the entry\r\n(the home category).</p>"
              }
            ],
            "modelRef": "#/components/schemas/NodeEntryRelation",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "If user does not have enough permission for this request.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "<p>If entry or node-entry relation does not exist.</p>",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "oSAvIYdC9Z_oMy7TG8ajb",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url /episerverapi/commerce/entries/{entryCode}/nodeentryrelations \\\n     --header 'accept: text/plain'"
        },
        {
          "id": "B0PDNz6jJkOkNL4MCWr8t",
          "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: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"/episerverapi/commerce/entries/{entryCode}/nodeentryrelations\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "Ei1P4bLBOxvOMJOOJgf-a",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/episerverapi/commerce/entries/{entryCode}/nodeentryrelations\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"text/plain\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "wVmoN_wbaeFdi_LtlNz00",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/episerverapi/commerce/entries/{entryCode}/nodeentryrelations\"\n\npayload = {}\nheaders = {\n   'accept': 'text/plain',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "oSAvIYdC9Z_oMy7TG8ajb"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Return the node entry relations.\n[\n  {\n    \"sortOrder\": \"\",\n    \"nodeCode\": \"\",\n    \"entryCode\": \"\",\n    \"isPrimary\": false\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 entry or node-entry relation does not exist.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}