Add address
relevant webhooks for this endpoint be sure you have docid\ bn5xtgkjogbe ctwomcbs for this webhook docid\ rl8xmroegistybme y98d api reference adds an address to the customer record { "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", "" "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", "" "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", "" "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 ", "" "required" }, { "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 ", "" "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 ", "" "additional address information 255 character maximum " }, { "name" "street3", "kind" "optional", "type" "string", "description" "additional address information 255 character maximum ", "" "additional address information 255 character maximum " }, { "name" "city", "kind" "optional", "type" "string", "description" "city full name 50 character maximum", "" "city full name 50 character maximum" }, { "name" "state", "kind" "optional", "type" "string", "description" "2 letter abbreviation for the state", "" "2 letter abbreviation for the state" }, { "name" "postalcode", "kind" "optional", "type" "string", "description" "postal code, also known as zip code 10 character maximum ", "" "postal code, also known as zip code 10 character maximum " }, { "name" "countrycode", "kind" "required", "type" "string", "description" "2 letter iso country code", "" "required" } ], "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" }