Customer management
APIs
Add email
relevant webhooks for this endpoint be sure you have docid\ bn5xtgkjogbe ctwomcbs for this webhook docid\ rl8xmroegistybme y98d api reference adds an email address to the customer record { "name" "endpoint /core/v1/cm/customers/{customerid}/emails", "method" "post", "url" "https //sandbox crbcos com/core/v1/cm/customers/{customerid}/emails", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "xk0mdfrnuxtc3hlnjr8 m", "language" "curl", "code" "curl l 'https //sandbox crbcos com/core/v1/cm/customers/bbe09f0a f38b 4daa a0a2 b2ff00f4e887/emails' ^\n data raw '{\n \\"isprimary\\" true,\n \\"emailtype\\" \\"work\\",\n \\"emailaddress\\" \\"bsanderson2\@crossriver com\\"\n}\n\n'", "customlabel" "" }, { "id" "m8uw6kpzkfubriicsgkae", "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/bbe09f0a f38b 4daa a0a2 b2ff00f4e887/emails',\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 \\\\\\"isprimary\\\\\\" true,\\\r\\\n \\\\\\"emailtype\\\\\\" \\\\\\"work\\\\\\",\\\r\\\n \\\\\\"emailaddress\\\\\\" \\\\\\"bsanderson2\@crossriver com\\\\\\"\\\r\\\n}\\\r\\\n\\\r\\\n\\";\n\nreq write(postdata);\n\nreq end();", "customlabel" "" }, { "id" "nodx906lijhvojponvp4l", "language" "python", "code" "import requests\n\nurl = \\"https //sandbox crbcos com/core/v1/cm/customers/bbe09f0a f38b 4daa a0a2 b2ff00f4e887/emails\\"\n\npayload = \\"{\\\r\\\n \\\\\\"isprimary\\\\\\" true,\\\r\\\n \\\\\\"emailtype\\\\\\" \\\\\\"work\\\\\\",\\\r\\\n \\\\\\"emailaddress\\\\\\" \\\\\\"bsanderson2\@crossriver com\\\\\\"\\\r\\\n}\\\r\\\n\\\r\\\n\\"\nheaders = {}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "uhyaj4u8dksesn6jybmfx", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //sandbox crbcos com/core/v1/cm/customers/bbe09f0a f38b 4daa a0a2 b2ff00f4e887/emails\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\nrequest body = \\"{\\\r\\\n \\\\\\"isprimary\\\\\\" true,\\\r\\\n \\\\\\"emailtype\\\\\\" \\\\\\"work\\\\\\",\\\r\\\n \\\\\\"emailaddress\\\\\\" \\\\\\"bsanderson2\@crossriver com\\\\\\"\\\r\\\n}\\\r\\\n\\\r\\\n\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" }, { "id" "fa3ra4qu jp9uzbxnep3d", "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/bbe09f0a f38b 4daa a0a2 b2ff00f4e887/emails\\"\n method = \\"post\\"\n\n payload = strings newreader(`{`+\\"\n\\"+`\n \\"isprimary\\" true,`+\\"\n\\"+`\n \\"emailtype\\" \\"work\\",`+\\"\n\\"+`\n \\"emailaddress\\" \\"bsanderson2\@crossriver com\\"`+\\"\n\\"+`\n}`+\\"\n\\"+`\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", "customlabel" "", "code" "{\n \\"id\\" \\"5dbc6a02 f7c8 4eee 9fe3 b30400c236e5\\",\n \\"customerid\\" \\"bbe09f0a f38b 4daa a0a2 b2ff00f4e887\\",\n \\"isprimary\\" true,\n \\"status\\" \\"active\\",\n \\"emailtype\\" \\"work\\",\n \\"emailaddress\\" \\"bsanderson2\@crossriver com\\",\n \\"createdat\\" \\"2025 06 22t07 47 06 7861023 04 00\\",\n \\"lastmodifiedat\\" \\"2025 06 22t07 47 06 7861023 04 00\\",\n \\"partnerid\\" \\"1101a33d fbd9 4b9e b169 b29500f12407\\"\n}" }, { "id" "xqqcnfijex8nynws8sleg", "language" "400", "code" "{\n \\"errors\\" \[\n {\n \\"code\\" 2227,\n \\"message\\" \\"email address already exists\\"\n }\n ]\n}", "customlabel" "" } ], "selectedlanguageid" "xqqcnfijex8nynws8sleg" }, "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" "isprimary", "kind" "required", "type" "boolean", "description" "true if this is the primary email record for this customer otherwise, false ", "" "true if this is the primary email record for this customer otherwise, false " }, { "name" "emailtype", "kind" "required", "type" "string", "description" "the email type is \n personal\n work\n other", "" "the email type is \n personal\n work\n other" }, { "name" "emailaddress", "kind" "required", "type" "string", "description" "customer's primary email address this must be a minimum of 6 characters, and a maximum of 255 ", "" "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 email 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" "emailtype", "kind" "optional", "type" "string", "description" "the email type is \n personal\n work\n other", "children" \[] }, { "name" "emailaddress", "kind" "optional", "type" "string", "description" "customer's primary email address this must be a minimum of 6 characters, and a maximum of 255 ", "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 ", "children" \[] }, { "name" "partnerid", "kind" "optional", "type" "string", "description" "your partner id in the cross river system", "children" \[] } ] }