Operations API
Customers
Update Customer
this endpoint ( post post ) updates an existing customer if the request succeeds, it returns a customer object docid\ x0e6zfnwaym4bwj4a82ex permissions customers edit webhook event customer events docid\ vpxf3upxl n7gflcvvism path parameters id the id of the customer to update body parameters name string the customer's first name last name string the customer's last name email string the customer's email address locale string ( appendix docid\ kfbmx4q3dxjtduqf75yx1 ) the customer's language the default is english en country string ( appendix docid\ kfbmx4q3dxjtduqf75yx1 ) a two letter country code (iso 3166) representing the customer's country phone string the customer's primary phone number timezone offset string the utc timezone offset for this customer example +03 00 require "uri" require "json" require "net/http" url = uri("https //api tamio com/v2/customers/update/c5f3b078 5520 4694 a4d1 d45885a6314e") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["authorization"] = "bearer your token here" data = { name 'john', last name 'doe', country 'de', email 'john doe\@tamio com' } request body = data to json response = https request(request) puts response read bodyvar myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your token here"); var data = { name 'john', last name 'doe', country 'de', email 'john doe\@tamio com' }; var body = json stringify(data); var requestoptions = { method 'post', headers myheaders, body body }; // replace \ id with your customer's id fetch("https //api tamio com/v2/customers/update/c5f3b078 5520 4694 a4d1 d45885a6314e", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));curl location request post 'https //api tamio com/v2/customers/update/c5f3b078 5520 4694 a4d1 d45885a6314e' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here' \\ \ data raw '{"name" "john","country" "de","email" "john doe\@plugnpaid com","last name" "doe"}'{ "status" 200, "customer" { "id" "c5f3b078 5520 4694 a4d1 d45885a6314e", "email" "john doe\@tamio com", "name" "john", "last name" "doe", "country" "de", "locale" "en", "billing addresses" \[], "shipping addresses" \[], "created at" 1664635710, "stripe customer id" null, "object" "customer", "teammate id" null, "timezone offset" "+00 00", "category" "customer", "priority" "normal", "source" "import", "affiliate partner id" null, "lead status" null } }