Customer management
APIs
Update name
relevant webhooks for this endpoint be sure you have accounts, cards and payment events for this webhook core customer name changed api reference updates the name on a customer record { "name" "endpoint /core/v1/cm/customers/{customerid}/name", "method" "put", "url" "https //sandbox crbcos com/core/v1/cm/customers/{customerid}/name", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "xk0mdfrnuxtc3hlnjr8 m", "language" "curl", "code" "curl l x put 'https //sandbox crbcos com/core/v1/cm/customers/4e2a0d37 3e93 461d 9f88 b300007af893/name' ^\n h 'content type application/json' ^\n h 'authorization bearer token' ^\n d '{\n \\"firstname\\" \\"brandon\\",\n \\"lastname\\" \\"sanderson\\"\n}'", "customlabel" "" }, { "id" "m8uw6kpzkfubriicsgkae", "language" "nodejs", "code" "var https = require('follow redirects') https;\nvar fs = require('fs');\n\nvar options = {\n 'method' 'put',\n 'hostname' 'sandbox crbcos com',\n 'path' '/core/v1/cm/customers/4e2a0d37 3e93 461d 9f88 b300007af893/name',\n 'headers' {\n 'content type' 'application/json',\n 'authorization' 'bearer token'\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 = json stringify({\n \\"firstname\\" \\"brandon\\",\n \\"lastname\\" \\"sanderson\\"\n});\n\nreq write(postdata);\n\nreq end();", "customlabel" "" }, { "id" "nodx906lijhvojponvp4l", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //sandbox crbcos com/core/v1/cm/customers/4e2a0d37 3e93 461d 9f88 b300007af893/name\\"\n\npayload = json dumps({\n \\"firstname\\" \\"brandon\\",\n \\"lastname\\" \\"sanderson\\"\n})\nheaders = {\n 'content type' 'application/json',\n 'authorization' '••••••'\n}\n\nresponse = requests request(\\"put\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "uhyaj4u8dksesn6jybmfx", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //sandbox crbcos com/core/v1/cm/customers/4e2a0d37 3e93 461d 9f88 b300007af893/name\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http put new(url)\nrequest\[\\"content type\\"] = \\"application/json\\"\nrequest\[\\"authorization\\"] = \\"••••••\\"\nrequest body = json dump({\n \\"firstname\\" \\"brandon\\",\n \\"lastname\\" \\"sanderson\\"\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/4e2a0d37 3e93 461d 9f88 b300007af893/name\\"\n method = \\"put\\"\n\n payload = strings newreader(`{`+\\"\n\\"+`\n \\"firstname\\" \\"brandon\\",`+\\"\n\\"+`\n \\"lastname\\" \\"sanderson\\"`+\\"\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 req header add(\\"content type\\", \\"application/json\\")\n req header add(\\"authorization\\", \\"bearer eyjhbgcioijsuzi1niisimtpzci6ijdqrej4dgvldl9imxhprk9xeehvn19rrkdxncising1dci6ijdqrej4dgvldl9imxhprk9xeehvn19rrkdxncisinr5cci6ikpxvcj9 eyjpc3mioijodhrwczovl2lkchrlc3quy3jiy29zlmnvbsisim5izii6mtc1mjuwmdaymswiawf0ijoxnzuyntawmdixlcjlehaioje3nti1mdm2mjesimf1zci6wyjodhrwczovl2fwas5jcmjjb3muy29tlyisimh0dhbzoi8vawrwdgvzdc5jcmjjb3muy29tl3jlc291cmnlcyjdlcjzy29wzsi6wyjjb3nzyngilcjodhrwczovl2fwas5jcmjjb3muy29tlyjdlcjjbgllbnrfawqioijinzk5otuxzdq3zwi0mtbkotjiowrhotaxyjhmzme2osisimp0asi6ijnemkm4nkndrjg1neq1nda4rdgyodc2rdhfoevemuu5in0 wa9ddudwjd2vbby b5u3zeaajtyt5zm 78uvqhvldcrvpsq 3zzxj2nvooae6nnihkdfbb dzenzrxi5jraqgw1ztisvdzio7ayiutqj92bbsv80cajax1s6kymq vg42xu ehravjk42mzj87lbft28vwlmahzasadgq9d7ivun9ljdvwwlk9915tcpvaqbd2cmfq237arsnco567hndd9vkbsijq85hjl4xishfygbol0wqf5zikde alxugfjup8kmg 8flfdol7l9v9kjx vyekambd74brhvooiwx 3lpf6 dremykazyhmp9qtfjzcc3vxve gmxtpopf3a\\")\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 \\"firstname\\" \\"brandon\\",\n \\"lastname\\" \\"sanderson\\",\n \\"fullname\\" \\"brandon sanderson\\"\n}" } ], "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" "entityname", "kind" "optional", "type" "string", "description" "name of the business if opening a business account 255 character maximum ", "" "optional" }, { "name" "prefix", "kind" "optional", "type" "string", "description" "prefix for name", "" "prefix for name" }, { "name" "firstname", "kind" "optional", "type" "string", "description" "customer first name 100 characters maximum", "" "optional" }, { "name" "middlename", "kind" "optional", "type" "string", "description" "customer middle name 50 characters maximum", "" "customer middle name 50 characters maximum" }, { "name" "lastname", "kind" "optional", "type" "string", "description" "customer last name 100 characters maximum", "" "customer last name 100 characters maximum" }, { "name" "suffix", "kind" "optional", "type" "string", "description" "suffix for the name", "" "suffix for the name" }, { "name" "preferredname", "kind" "optional", "type" "string", "description" "customer preferred name 255 character maximum", "" "customer preferred name 255 character maximum" }, { "name" "fullname", "kind" "optional", "type" "string", "description" "customer's entire name including middle initial 255 characters maximum", "" "customer's entire name including middle initial 255 characters maximum" } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "response" \[ { "name" "entityname", "kind" "optional", "type" "string", "description" "name of the business if opening a business account 255 character maximum " }, { "name" "prefix", "kind" "optional", "type" "string", "description" "prefix for name", "children" \[] }, { "name" "firstname", "kind" "optional", "type" "boolean", "description" "customer first name 100 characters maximum", "children" \[] }, { "name" "middlename", "kind" "optional", "type" "string", "description" "customer middle name 50 characters maximum", "children" \[] }, { "name" "lastname", "kind" "optional", "type" "string", "description" "customer last name 100 characters maximum", "children" \[] }, { "name" "suffix", "kind" "optional", "type" "string", "description" "suffix for the name", "children" \[] }, { "name" "preferredname", "kind" "optional", "type" "string", "description" "customer preferred name 255 character maximum", "children" \[] }, { "name" "fullname", "kind" "optional", "type" "string", "description" "customer's entire name including middle initial 255 characters maximum", "children" \[] } ] }