---
title: Gets the contact.
slug: commerce-connect-15/service-api/gets-the-contact
docTags: 
createdAt: 2026-10-09T17:33:30.457Z
---

{
  "id": "H-wWF0eVhd5zY6tw-ChwE",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "/episerverapi/commerce/customers/contact/{contactId}",
    "servers": [],
    "name": "Gets the contact.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "contactId",
          "type": "string<uuid>",
          "description": "<p>Contact ID (GUID).</p>",
          "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": "Return the contact.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Contact model.",
            "customType": "ContactModel",
            "schema": [
              {
                "name": "primaryKeyId",
                "kind": "optional",
                "type": "string<uuid>",
                "nullable": true,
                "description": "<p>Contact ID (GUID).</p>",
                "format": "uuid"
              },
              {
                "name": "addresses",
                "kind": "optional",
                "type": "array",
                "nullable": true,
                "description": "Contacts addresses.",
                "modelRef": "#/components/schemas/AddressModel",
                "customType": "AddressModel[]",
                "schema": [
                  {
                    "name": "addressId",
                    "kind": "optional",
                    "type": "string<uuid>",
                    "nullable": true,
                    "description": "<p>Address ID (GUID).</p>",
                    "format": "uuid"
                  },
                  {
                    "name": "modified",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "nullable": true,
                    "description": "Last modified date.",
                    "format": "date-time"
                  },
                  {
                    "name": "name",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "Address name."
                  },
                  {
                    "name": "firstName",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "First name."
                  },
                  {
                    "name": "lastName",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "Last name."
                  },
                  {
                    "name": "countryName",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "Country name."
                  },
                  {
                    "name": "countryCode",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "Country code."
                  },
                  {
                    "name": "city",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "City."
                  },
                  {
                    "name": "postalCode",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p>Postal code (Zip code).</p>"
                  },
                  {
                    "name": "line1",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "Address line 1."
                  },
                  {
                    "name": "line2",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "Address line 2."
                  },
                  {
                    "name": "regionName",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "Region name."
                  },
                  {
                    "name": "regionCode",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "Region code."
                  },
                  {
                    "name": "email",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "Email."
                  },
                  {
                    "name": "isShippingAddress",
                    "kind": "optional",
                    "type": "boolean",
                    "description": "Flag to indicate if this is a shipping address or not."
                  },
                  {
                    "name": "isBillingAddress",
                    "kind": "optional",
                    "type": "boolean",
                    "description": "Flag to indicate if this is a billing address or not."
                  },
                  {
                    "name": "daytimePhoneNumber",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "Daytime phone number."
                  },
                  {
                    "name": "eveningPhoneNumber",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "Evening phone number."
                  },
                  {
                    "name": "organization",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "Organization name."
                  },
                  {
                    "name": "addressType",
                    "kind": "optional",
                    "type": "array",
                    "nullable": true,
                    "description": "Address type.",
                    "example": "",
                    "itemType": "integer",
                    "customType": "integer[]",
                    "itemExample": "",
                    "itemDefault": ""
                  }
                ]
              },
              {
                "name": "firstName",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "First name."
              },
              {
                "name": "lastName",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "Last name."
              },
              {
                "name": "email",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "Email."
              },
              {
                "name": "registrationSource",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "Registration source."
              }
            ],
            "modelRef": "#/components/schemas/ContactModel",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "If user does not have enough permission for this request.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "If contact does not exist.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "zKorQeKPIOF2QZBYSP_hQ",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url /episerverapi/commerce/customers/contact/{contactId} \\\n     --header 'accept: text/plain'"
        },
        {
          "id": "S2LW5LE1A1kVAp77T9Vm2",
          "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/customers/contact/{contactId}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "HG2q4GwvQ9m6fGY6hIGov",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/episerverapi/commerce/customers/contact/{contactId}\")\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": "TT85m604x88r9me3miIJ7",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/episerverapi/commerce/customers/contact/{contactId}\"\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": "zKorQeKPIOF2QZBYSP_hQ"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Return the contact.\n{\n  \"primaryKeyId\": \"\",\n  \"addresses\": [\n    {\n      \"addressId\": \"\",\n      \"modified\": \"\",\n      \"name\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"countryName\": \"\",\n      \"countryCode\": \"\",\n      \"city\": \"\",\n      \"postalCode\": \"\",\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"regionName\": \"\",\n      \"regionCode\": \"\",\n      \"email\": \"\",\n      \"isShippingAddress\": false,\n      \"isBillingAddress\": false,\n      \"daytimePhoneNumber\": \"\",\n      \"eveningPhoneNumber\": \"\",\n      \"organization\": \"\",\n      \"addressType\": [\n        0\n      ]\n    }\n  ],\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"registrationSource\": \"\"\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 contact does not exist.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}