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

{
  "id": "FvpDg54pVdQdG5D5Ln4bu",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "/episerverapi/commerce/customers/contact",
    "servers": [],
    "name": "Gets all the contacts.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "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 contacts.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "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
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "-489VsfatyrZqePXg7RFC",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url /episerverapi/commerce/customers/contact \\\n     --header 'accept: text/plain'"
        },
        {
          "id": "ylbL8j7_epG_ld3QU-84U",
          "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\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "lB2k0eX5To0FbFbZ0UVeT",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/episerverapi/commerce/customers/contact\")\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": "oQvSZKTdtDNPO77s4aw-h",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/episerverapi/commerce/customers/contact\"\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": "-489VsfatyrZqePXg7RFC"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Return the contacts.\n[\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  }\n]"
        },
        {
          "id": "response-1-401",
          "language": "401",
          "code": "// If user does not have enough permission for this request.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}