Operations API
Addresses
Update Address
this api endpoint ( post post ) updates an existing address if the request succeeds, it returns an address object docid\ mq5z zerbxrx2ldj6xspz permissions customer edit webhook event customer events docid\ vpxf3upxl n7gflcvvism path parameters id the id of the address body parameters phone string the customer's billing phone name string the customer's billing name representative string the name of the contact person for this address is company boolean this attribute shows whether this address belongs to a business or an individual email string the customer's email shipping address boolean set to false for billing addresses address string the customer's address city string the customer's city postcode string the customer's postcode state string ( appendix docid\ kfbmx4q3dxjtduqf75yx1 ) the customer's state (if supported) country string ( appendix docid\ kfbmx4q3dxjtduqf75yx1 ) the customer's billing country in iso 3166 format vat string the customer's vat number (if supported) locale string ( appendix docid\ kfbmx4q3dxjtduqf75yx1 ) the preferred language of the representative for this address the default value is english ( en ) require "uri" require "json" require "net/http" url = uri("https //api tamio com/v2/customers/address/update/847287e7 b8c3 411e b3cf e6acbb5d716c") 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', address 'my street', city 'frankfurt', country 'de', email 'john doe\@tamio com' } request body = data to json response = https request(request) puts response read bodycurl location request post 'https //api tamio com/v2/customers/address/update/847287e7 b8c3 411e b3cf e6acbb5d716c' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here' \\ \ data raw '{"name" "john","country" "de","email" "john doe\@plugnpaid com","address" "my street", "city" "frankfurt"}'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your token here"); var data = { name 'john', address 'my street', city 'frankfurt', country 'de', email 'john doe\@tamio com' }; var body = json stringify(data); var requestoptions = { method 'post', headers myheaders, body body }; fetch("https //api tamio com/v2/customers/address/update/847287e7 b8c3 411e b3cf e6acbb5d716c", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));{ "status" 200, "address" { "id" "847287e7 b8c3 411e b3cf e6acbb5d716c", "phone" null, "object" "address", "name" "john", "representative" null, "email" "john doe\@tamio com", "address" "my street", "city" "frankfrt", "postcode" null, "state" null, "country" "de", "locale" "en", "shipping address" false, "ip" null, "is company" false } }