---
title: Gets the mapped identities by provider.
slug: commerce-connect-15/service-api/cBTv-gets-the-mapped-identities-by-provider
docTags: 
createdAt: 2026-10-09T17:33:30.457Z
---

{
  "id": "NdyTElphqQhKsL49l3J9h",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "/episerverapi/commerce/identities/{providerName}",
    "servers": [],
    "name": "Gets the mapped identities by provider.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "providerName",
          "type": "string",
          "description": "Name of the provider.",
          "default": "default"
        }
      ],
      "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": "Return the mapped identities by provider.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "description": "Class to get list of Mapped Identities.",
            "customType": "IdentityMapping[]",
            "schema": [
              {
                "name": "integrationId",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "Gets or sets the integration identifier."
              },
              {
                "name": "internalId",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "Gets or sets the internal identifier."
              },
              {
                "name": "modified",
                "kind": "optional",
                "type": "string<date-time>",
                "nullable": true,
                "description": "Gets or sets the modified date.",
                "format": "date-time"
              },
              {
                "name": "providerName",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "Gets or sets the name of the provider."
              }
            ],
            "modelRef": "#/components/schemas/IdentityMapping",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "If user does not have enough permission for the request.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "If provider identities does not exist.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "f2QhYwH8xta-T_2KU-r8L",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url /episerverapi/commerce/identities/{providerName} \\\n     --header 'accept: text/plain'"
        },
        {
          "id": "Vn9lq-xUgJXija2qEUoZv",
          "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/identities/{providerName}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "RNmUqJSb9szkc_ZgHZdNP",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/episerverapi/commerce/identities/{providerName}\")\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": "Npo0u97OuQSzCqIobxWPy",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/episerverapi/commerce/identities/{providerName}\"\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": "f2QhYwH8xta-T_2KU-r8L"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Return the mapped identities by provider.\n[\n  {\n    \"integrationId\": \"\",\n    \"internalId\": \"\",\n    \"modified\": \"\",\n    \"providerName\": \"\"\n  }\n]"
        },
        {
          "id": "response-1-401",
          "language": "401",
          "code": "// If user does not have enough permission for the request.\n"
        },
        {
          "id": "response-2-404",
          "language": "404",
          "code": "// If provider identities does not exist.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}