---
title: Add address
slug: crossriver-apis/customer-management/apis/add-customer-address
description: Add a customer's address via POST /core/v1/cm/customers/{customerid}/addresses, specifying customer ID, address type, classification, and primary status.
icon: {"apiMethod":"POST"}
createdAt: 2026-09-29T15:33:39.684Z
---

## Relevant webhooks

For this endpoint be sure you have [registered](https://public.qa.archbee.co/crossriver-apis/webhooks/cos-webhooks) for this webhook:

- [Core.Customer.Address.Added](https://public.qa.archbee.co/crossriver-apis/customer-management/webhook-events-customer-management#corecustomeraddressadded)&#x20;

## API reference

Adds an address to the customer record.

:::ApiMethodV2
```json
{
  "name": "Endpoint: /core/v1/cm/customers/{customerId}/addresses",
  "method": "POST",
  "url": "https://sandbox.crbcos.com/core/v1/cm/customers/{customerId}/addresses",
  "description": "",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "xK0mDfrnuxTC3HLNjR8-M",
        "language": "curl",
        "code": "curl --location 'https://sandbox.crbcos.com/core/v1/cm/customers//addresses' \\\n--data '{\n  \"addressType\": \"Work\",\n  \"classification\": \"Business\",\n  \"isPrimary\": true,\n  \"street1\": \"400 Kelby St\",\n  \"city\": \"Fort Lee\",\n  \"state\": \"NJ\",\n  \"postalCode\": \"07024\",\n  \"countryCode\": \"US\"\n}\n'",
        "customLabel": ""
      },
      {
        "id": "mqR1ym4lW48Uw_qQhCefc",
        "language": "nodejs",
        "code": "var https = require('follow-redirects').https;\nvar fs = require('fs');\n\nvar options = {\n  'method': 'POST',\n  'hostname': 'sandbox.crbcos.com',\n  'path': '/core/v1/cm/customers//addresses',\n  'headers': {\n  },\n  'maxRedirects': 20\n};\n\nvar req = https.request(options, function (res) {\n  var chunks = [];\n\n  res.on(\"data\", function (chunk) {\n    chunks.push(chunk);\n  });\n\n  res.on(\"end\", function (chunk) {\n    var body = Buffer.concat(chunks);\n    console.log(body.toString());\n  });\n\n  res.on(\"error\", function (error) {\n    console.error(error);\n  });\n});\n\nvar postData =  \"{\\r\\n  \\\"addressType\\\": \\\"Work\\\",\\r\\n  \\\"classification\\\": \\\"Business\\\",\\r\\n  \\\"isPrimary\\\": true,\\r\\n  \\\"street1\\\": \\\"400 Kelby St\\\",\\r\\n  \\\"city\\\": \\\"Fort Lee\\\",\\r\\n  \\\"state\\\": \\\"NJ\\\",\\r\\n  \\\"postalCode\\\": \\\"07024\\\",\\r\\n  \\\"countryCode\\\": \\\"US\\\"\\r\\n}\\r\\n\";\n\nreq.write(postData);\n\nreq.end();",
        "customLabel": ""
      },
      {
        "id": "uEPLZetxZG8L_9oLKmDDa",
        "language": "python",
        "code": "import requests\n\nurl = \"https://sandbox.crbcos.com/core/v1/cm/customers//addresses\"\n\npayload = \"{\\r\\n  \\\"addressType\\\": \\\"Work\\\",\\r\\n  \\\"classification\\\": \\\"Business\\\",\\r\\n  \\\"isPrimary\\\": true,\\r\\n  \\\"street1\\\": \\\"400 Kelby St\\\",\\r\\n  \\\"city\\\": \\\"Fort Lee\\\",\\r\\n  \\\"state\\\": \\\"NJ\\\",\\r\\n  \\\"postalCode\\\": \\\"07024\\\",\\r\\n  \\\"countryCode\\\": \\\"US\\\"\\r\\n}\\r\\n\"\nheaders = {}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "Bpo9I1p6RWJnvUSDPrAV2",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"https://sandbox.crbcos.com/core/v1/cm/customers//addresses\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest.body = \"{\\r\\n  \\\"addressType\\\": \\\"Work\\\",\\r\\n  \\\"classification\\\": \\\"Business\\\",\\r\\n  \\\"isPrimary\\\": true,\\r\\n  \\\"street1\\\": \\\"400 Kelby St\\\",\\r\\n  \\\"city\\\": \\\"Fort Lee\\\",\\r\\n  \\\"state\\\": \\\"NJ\\\",\\r\\n  \\\"postalCode\\\": \\\"07024\\\",\\r\\n  \\\"countryCode\\\": \\\"US\\\"\\r\\n}\"\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      },
      {
        "id": "hMtrMy6biJOT2EBIK9Q9G",
        "language": "go",
        "code": "package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io\"\n)\n\nfunc main() {\n\n  url := \"https://sandbox.crbcos.com/core/v1/cm/customers//addresses\"\n  method := \"POST\"\n\n  payload := strings.NewReader(`{`+\"\n\"+`\n  \"addressType\": \"Work\",`+\"\n\"+`\n  \"classification\": \"Business\",`+\"\n\"+`\n  \"isPrimary\": true,`+\"\n\"+`\n  \"street1\": \"400 Kelby St\",`+\"\n\"+`\n  \"city\": \"Fort Lee\",`+\"\n\"+`\n  \"state\": \"NJ\",`+\"\n\"+`\n  \"postalCode\": \"07024\",`+\"\n\"+`\n  \"countryCode\": \"US\"`+\"\n\"+`\n}`+\"\n\"+``)\n\n  client := &http.Client {\n  }\n  req, err := http.NewRequest(method, url, payload)\n\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  res, err := client.Do(req)\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  defer res.Body.Close()\n\n  body, err := io.ReadAll(res.Body)\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  fmt.Println(string(body))\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "xK0mDfrnuxTC3HLNjR8-M"
  },
  "results": {
    "languages": [
      {
        "id": "zuoamZSUzJOVAnQseRBuz",
        "language": "200",
        "code": "{\n    \"id\": \"23718022-262b-48c3-9fcd-b30000955c65\",\n    \"customerId\": \"bbe09f0a-f38b-4daa-a0a2-b2ff00f4e887\",\n    \"isPrimary\": true,\n    \"status\": \"Active\",\n    \"classification\": \"Business\",\n    \"addressType\": \"Work\",\n    \"street1\": \"400 Kelby St\",\n    \"city\": \"Fort Lee\",\n    \"state\": \"NJ\",\n    \"postalCode\": \"07024\",\n    \"countryCode\": \"US\",\n    \"createdAt\": \"2025-06-18T05:03:48.3893582-04:00\",\n    \"lastModifiedAt\": \"2025-06-18T05:03:48.3893582-04:00\",\n    \"partnerId\": \"1101a33d-fbd9-4b9e-b169-b29500f12407\"\n}",
        "customLabel": ""
      },
      {
        "id": "qIx4Pk0iciJXvS-SeOD_a",
        "language": "400",
        "code": "{\n    \"errors\": [\n        {\n            \"code\": 2232,\n            \"message\": \"Address already exists\"\n        }\n    ]\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "zuoamZSUzJOVAnQseRBuz"
  },
  "request": {
    "pathParameters": [
      {
        "name": "customerId",
        "kind": "required",
        "type": "string",
        "description": "The customer ID of the customer record to update"
      }
    ],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "name": "addressType",
        "kind": "required",
        "type": "string",
        "description": "What this is the address of:\n- Home\n- Work\n- Other"
      },
      {
        "name": "classification",
        "kind": "required",
        "type": "string",
        "description": "What kind of address this is:\n- Residential\n- Business\n- PoBox\n- Rural\n- Military\n- Other"
      },
      {
        "name": "isPrimary",
        "kind": "required",
        "type": "boolean",
        "description": "True if this is the primary address record for this customer. Otherwise, false."
      },
      {
        "name": "street1",
        "kind": "required",
        "type": "string",
        "description": "Primary location details of customer, for instance, street name, house/building number,  or PO box. 255 character maximum."
      },
      {
        "name": "street2",
        "kind": "optional",
        "type": "string",
        "description": "Additional address information. 255 character maximum."
      },
      {
        "name": "street3",
        "kind": "optional",
        "type": "string",
        "description": "Additional address information. 255 character maximum."
      },
      {
        "name": "city",
        "kind": "optional",
        "type": "string",
        "description": "City full name. 50 character maximum"
      },
      {
        "name": "state",
        "kind": "optional",
        "type": "string",
        "description": "2-letter abbreviation for the state"
      },
      {
        "name": "postalCode",
        "kind": "optional",
        "type": "string",
        "description": "Postal code, also known as ZIP code. 10 character maximum."
      },
      {
        "name": "countryCode",
        "kind": "required",
        "type": "string",
        "description": "2-letter ISO country code"
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "response": [
    {
      "name": "id",
      "kind": "optional",
      "type": "string",
      "description": "COS ID for the record, in GUID format"
    },
    {
      "name": "customerId",
      "kind": "optional",
      "type": "string",
      "description": "The customerId of the customer record being updated",
      "children": []
    },
    {
      "name": "isPrimary",
      "kind": "optional",
      "type": "boolean",
      "description": "True if this is the primary address record for this customer. Otherwise, false.",
      "children": []
    },
    {
      "name": "status",
      "kind": "optional",
      "type": "string",
      "description": "Status of the customer record:\n- Inactive\n- Active",
      "children": []
    },
    {
      "name": "classification",
      "kind": "optional",
      "type": "string",
      "description": "The kind of address added to the record:\n- Residential\n- Business\n- PoBox\n- Rural\n- Military\n- Other",
      "children": []
    },
    {
      "name": "addressType",
      "kind": "optional",
      "type": "string",
      "description": "What this is the address of:\n- Home\n- Work\n- Other",
      "children": []
    },
    {
      "name": "street1",
      "kind": "optional",
      "type": "string",
      "description": "Primary location details of customer, for instance, street name, house/building number, or PO box",
      "children": []
    },
    {
      "name": "street2",
      "kind": "optional",
      "type": "string",
      "description": "Additional address information",
      "children": []
    },
    {
      "name": "street3",
      "kind": "optional",
      "type": "string",
      "description": "Additional address information",
      "children": []
    },
    {
      "name": "city",
      "kind": "optional",
      "type": "string",
      "description": "City full name",
      "children": []
    },
    {
      "name": "state",
      "kind": "optional",
      "type": "string",
      "description": "2-letter abbreviation for the state",
      "children": []
    },
    {
      "name": "postalCode",
      "kind": "optional",
      "type": "string",
      "description": "Postal code, also known as ZIP code",
      "children": []
    },
    {
      "name": "countryCode",
      "kind": "optional",
      "type": "string",
      "description": "2-letter ISO country code",
      "children": []
    },
    {
      "name": "createdAt",
      "kind": "optional",
      "type": "string",
      "description": "Date and time the record was created. In this case, the date and time are in this format: yyyy-mm-ddThh:mm:ss[.mmm]",
      "children": []
    },
    {
      "name": "lastModifiedAt",
      "kind": "optional",
      "type": "string",
      "description": "Internal Cross River value. Date and time the database entry was last modified. In this case, the date and time are in this format: yyyy-mm-ddThh:mm:ss[.mmm]",
      "children": []
    },
    {
      "name": "partnerId",
      "kind": "optional",
      "type": "string",
      "description": "Your unique ID in the Cross River system. This ID is in GUID format.",
      "children": []
    }
  ],
  "hasTryItOut": false,
  "autoGeneratedAnchorSlug": "endpoint-corev1cmcustomerscustomeridaddresses",
  "legacyHash": "R4lDs5xhyOIV0ygD2aQpj"
}
```
:::

