---
title: Create Contact for Customer
slug: create-contact-for-customer
docTags: 
createdAt: 2026-08-25T19:28:59.170Z
---

{
  "id": "MkL76duj_AWbbHvRo9I54",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://api.nue.io/customers/{customerId}/contacts",
    "servers": [
      {
        "url": "https://api.nue.io/customers/{customerId}/contacts",
        "description": "**Production Environment** - Live production server for all customer-facing operations. Use this for production integrations with real customer data and transactions."
      },
      {
        "url": "https://api.sandbox.nue.io/customers/{customerId}/contacts",
        "description": "**Sandbox Environment** - Safe testing environment with sample data for development and integration testing. No rate limits apply. Data is reset weekly. Perfect for prototyping and QA testing."
      }
    ],
    "name": "Create Contact for Customer",
    "description": "This endpoint allows you to create one or more new contacts for a given customer in a single request.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "customerId",
          "type": "string",
          "description": "Customer ID to associate the created contact with."
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "array",
          "description": "",
          "schema": [
            {
              "name": "firstName",
              "kind": "required",
              "type": "string",
              "description": "<p>First name of the contact person, limited to 40 characters</p>",
              "maxLength": 40
            },
            {
              "name": "lastName",
              "kind": "required",
              "type": "string",
              "description": "<p>Last name of the contact person, limited to 80 characters</p>",
              "maxLength": 80
            },
            {
              "name": "name",
              "kind": "required",
              "type": "string",
              "description": "<p>Full name of the contact person, required field, limited to 255 characters</p>",
              "maxLength": 255
            },
            {
              "name": "birthday",
              "kind": "optional",
              "type": "string<date>",
              "description": "<p>Birth date of the contact person in ISO format (YYYY-MM-DD)</p>",
              "format": "date"
            },
            {
              "name": "billingCity",
              "kind": "optional",
              "type": "string",
              "description": "City component of the contact's billing address"
            },
            {
              "name": "billingCountry",
              "kind": "optional",
              "type": "string",
              "description": "Country component of the contact's billing address"
            },
            {
              "name": "billingPostalCode",
              "kind": "optional",
              "type": "string",
              "description": "Postal code component of the contact's billing address"
            },
            {
              "name": "billingState",
              "kind": "optional",
              "type": "string",
              "description": "State or province component of the contact's billing address"
            },
            {
              "name": "billingStreet",
              "kind": "optional",
              "type": "string",
              "description": "Street address component of the contact's billing address"
            },
            {
              "name": "email",
              "kind": "required",
              "type": "string<email>",
              "description": "<p>Email address of the contact person, used for communications</p>",
              "format": "email"
            },
            {
              "name": "middleName",
              "kind": "optional",
              "type": "string",
              "description": "<p>Middle name of the contact person, limited to 40 characters</p>",
              "maxLength": 40
            },
            {
              "name": "mobilePhone",
              "kind": "optional",
              "type": "string",
              "description": "Mobile or cell phone number of the contact person"
            },
            {
              "name": "phone",
              "kind": "optional",
              "type": "string",
              "description": "<p>Primary phone number of the contact person, such as office or home number</p>"
            },
            {
              "name": "shippingCity",
              "kind": "optional",
              "type": "string",
              "description": "City component of the contact's shipping address"
            },
            {
              "name": "shippingCountry",
              "kind": "optional",
              "type": "string",
              "description": "Country component of the contact's shipping address"
            },
            {
              "name": "shippingPostalCode",
              "kind": "optional",
              "type": "string",
              "description": "Postal code component of the contact's shipping address"
            },
            {
              "name": "shippingState",
              "kind": "optional",
              "type": "string",
              "description": "State or province component of the contact's shipping address"
            },
            {
              "name": "shippingStreet",
              "kind": "optional",
              "type": "string",
              "description": "Street address component of the contact's shipping address"
            },
            {
              "name": "suffix",
              "kind": "optional",
              "type": "string",
              "description": "<p>Name suffix of the contact person (e.g., Jr., Sr., III), limited to 40 characters</p>",
              "maxLength": 40
            },
            {
              "name": "title",
              "kind": "optional",
              "type": "string",
              "description": "<p>Professional or organizational title of the contact person (e.g., CEO, Director)</p>"
            }
          ],
          "itemType": "object",
          "customType": "object[]",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "ApiKeyAuth",
          "name": "nue-api-key",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "201",
        "description": "Contacts created successfully",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "status",
                "kind": "optional",
                "type": "string<SUCCESS | PARTIAL_SUCCESS | FAILURE>",
                "description": "Indicates the overall status of the request",
                "enum": [
                  "SUCCESS",
                  "PARTIAL_SUCCESS",
                  "FAILURE"
                ]
              },
              {
                "name": "data",
                "kind": "optional",
                "type": "array",
                "description": "Array of created contacts",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "billingCity",
                    "kind": "optional",
                    "type": "string",
                    "description": "City component of the contact's billing address"
                  },
                  {
                    "name": "billingCountry",
                    "kind": "optional",
                    "type": "string",
                    "description": "Country component of the contact's billing address"
                  },
                  {
                    "name": "billingPostalCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Postal code component of the contact's billing address"
                  },
                  {
                    "name": "billingState",
                    "kind": "optional",
                    "type": "string",
                    "description": "State or province component of the contact's billing address"
                  },
                  {
                    "name": "billingStreet",
                    "kind": "optional",
                    "type": "string",
                    "description": "Street address component of the contact's billing address"
                  },
                  {
                    "name": "birthday",
                    "kind": "optional",
                    "type": "string<date>",
                    "description": "<p>Birth date of the contact person in ISO format (YYYY-MM-DD)</p>",
                    "format": "date"
                  },
                  {
                    "name": "createdById",
                    "kind": "optional",
                    "type": "string",
                    "description": "ID of the user who created the record"
                  },
                  {
                    "name": "createdDate",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "description": "Creation timestamp",
                    "format": "date-time"
                  },
                  {
                    "name": "customerId",
                    "kind": "optional",
                    "type": "string",
                    "description": "ID of the customer associated with the contact"
                  },
                  {
                    "name": "email",
                    "kind": "optional",
                    "type": "string<email>",
                    "description": "<p>Email address of the contact person, used for communications</p>",
                    "format": "email"
                  },
                  {
                    "name": "firstName",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>First name of the contact person, limited to 40 characters</p>"
                  },
                  {
                    "name": "id",
                    "kind": "optional",
                    "type": "string",
                    "description": "Unique identifier for the contact"
                  },
                  {
                    "name": "lastModifiedById",
                    "kind": "optional",
                    "type": "string",
                    "description": "ID of the user who last modified the record"
                  },
                  {
                    "name": "lastModifiedDate",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "description": "Last modification timestamp",
                    "format": "date-time"
                  },
                  {
                    "name": "lastName",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Last name of the contact person, limited to 80 characters</p>"
                  },
                  {
                    "name": "middleName",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Middle name of the contact person, limited to 40 characters</p>"
                  },
                  {
                    "name": "mobilePhone",
                    "kind": "optional",
                    "type": "string",
                    "description": "Mobile or cell phone number of the contact person"
                  },
                  {
                    "name": "name",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Full name of the contact person, required field</p>"
                  },
                  {
                    "name": "phone",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Primary phone number of the contact person, such as office or home number</p>"
                  },
                  {
                    "name": "shippingCity",
                    "kind": "optional",
                    "type": "string",
                    "description": "City component of the contact's shipping address"
                  },
                  {
                    "name": "shippingCountry",
                    "kind": "optional",
                    "type": "string",
                    "description": "Country component of the contact's shipping address"
                  },
                  {
                    "name": "shippingPostalCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Postal code component of the contact's shipping address"
                  },
                  {
                    "name": "shippingState",
                    "kind": "optional",
                    "type": "string",
                    "description": "State or province component of the contact's shipping address"
                  },
                  {
                    "name": "shippingStreet",
                    "kind": "optional",
                    "type": "string",
                    "description": "Street address component of the contact's shipping address"
                  },
                  {
                    "name": "suffix",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Name suffix of the contact person (e.g., Jr., Sr., III), limited to 40 characters</p>"
                  },
                  {
                    "name": "title",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Professional or organizational title of the contact person (e.g., CEO, Director)</p>"
                  }
                ]
              },
              {
                "name": "warnings",
                "kind": "optional",
                "type": "array",
                "description": "Any warnings generated during processing",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "code",
                    "kind": "optional",
                    "type": "string",
                    "description": "Warning code"
                  },
                  {
                    "name": "message",
                    "kind": "optional",
                    "type": "string",
                    "description": "Warning message"
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "<p>Bad Request - The request was malformed or contained invalid parameters</p>",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "401",
        "description": "<p>Unauthorized - Authentication information is missing or invalid</p>",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "EgMGog8lQWSN-QdLL8-aX",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://api.nue.io/customers/{customerId}/contacts \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '[\n     {\n     \"firstName\": \"\",\n     \"lastName\": \"\",\n     \"name\": \"\",\n     \"email\": \"\"\n     }\n     ]'"
        },
        {
          "id": "CMNFD-bcSGvGu5DmYMUsp",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify([\n   {\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"name\": \"\",\n      \"email\": \"\"\n   }\n]);\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.nue.io/customers/{customerId}/contacts\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "wpfgxm1rpex1jsijdyu_g",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.nue.io/customers/{customerId}/contacts\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest.body = JSON.dump([\n   {\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"name\": \"\",\n      \"email\": \"\"\n   }\n])\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "gB1adT11TFtObrq4pZM2g",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.nue.io/customers/{customerId}/contacts\"\n\npayload = json.dumps([\n   {\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"name\": \"\",\n      \"email\": \"\"\n   }\n])\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": "EgMGog8lQWSN-QdLL8-aX"
    },
    "results": {
      "languages": [
        {
          "id": "S0mYUTBZoo9hvEQtJP2nY",
          "language": "201",
          "code": "// Contacts created successfully\n{\n  \"status\": \"\",\n  \"data\": [\n    {\n      \"billingCity\": \"\",\n      \"billingCountry\": \"\",\n      \"billingPostalCode\": \"\",\n      \"billingState\": \"\",\n      \"billingStreet\": \"\",\n      \"birthday\": \"\",\n      \"createdById\": \"\",\n      \"createdDate\": \"\",\n      \"customerId\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastModifiedById\": \"\",\n      \"lastModifiedDate\": \"\",\n      \"lastName\": \"\",\n      \"middleName\": \"\",\n      \"mobilePhone\": \"\",\n      \"name\": \"\",\n      \"phone\": \"\",\n      \"shippingCity\": \"\",\n      \"shippingCountry\": \"\",\n      \"shippingPostalCode\": \"\",\n      \"shippingState\": \"\",\n      \"shippingStreet\": \"\",\n      \"suffix\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"warnings\": [\n    {\n      \"code\": \"\",\n      \"message\": \"\"\n    }\n  ]\n}"
        },
        {
          "id": "oYqOV6n5pIJymLFtzi4c8",
          "language": "400",
          "code": "// Bad Request - The request was malformed or contained invalid parameters\n"
        },
        {
          "id": "CodwD0dbl-C-9YQlxH-K7",
          "language": "401",
          "code": "// Unauthorized - Authentication information is missing or invalid\n"
        }
      ],
      "selectedLanguageId": "S0mYUTBZoo9hvEQtJP2nY"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}