Update a Customer address.
You must be logged in to use this method. Basic Authentication is supported.
Group: address
This parameter is Optional
List: ErrorQueue
Group: result
Group: address
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
Example Request
POST /customer_address_update HTTP/1.1 Authorization: Basic ZGVtbzpkZW1v Host: localhost:2293 Accept: application/json Content-Type: application/json Content-Length: length { "address" : { "localcustomerid" : "value ", "customerid" : "value ", "localaddressid" : value , "addressid" : value , "company" : "value ", "contact" : "value ", "type" : "value ", "defaultaddress" : "value ", "address1" : "value ", "address2" : "value ", "address3" : "value ", "city" : "value ", "region" : "value ", "postcode" : "value ", "countrycode" : "value ", "email" : "value ", "phone" : "value ", "taxgroupid" : value } }
Example Response
HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8 Content-Length: length { "Update_Customer_Address_response" : { "result" : { "status" : "value ", "localcustomerid" : "value ", "customerid" : value , "localaddressid" : "value ", "addressid" : value }, "address" : { "localcustomerid" : "value ", "customerid" : value , "localaddressid" : "value ", "addressid" : value , "company" : "value ", "contact" : "value ", "type" : "value ", "defaultaddress" : "value ", "address1" : "value ", "address2" : "value ", "address3" : "value ", "city" : "value ", "region" : "value ", "postcode" : "value ", "countrycode" : "value ", "email" : "value ", "phone" : "value ", "taxgroupid" : "value " } } }
Example Code - JavaScript
function customer_address_update_jsonpost(host,jsondata,username,password,result){ fetch(host + "/customer_address_update", { method: "POST", credentials: "include", headers: { "Authorization": "Basic " + btoa(username + ":" + password), "Content-Type": "application/json", "Accept": "application/json;", }, body: jsondata }).then(function(response){ // get the text out of the reply return response.text() }).then( function(text){ // do something with the text reply textToTextarea(text,result) }) } var host = "https://localhost:2293"
Example Code - CURL
CURL --user Username :Password --header "Content-Type: application/json" --header "Accept: application/json" --data-binary @jsonDataFile.json https://localhost:2293 /customer_address_update
Example Code - Clarion with NetTalk
net NetWebClient net.Authorization = net.CreateAuthorizationString (Username , Password , Net:WebBasicAuthentication,Net:NoWrap) net.ContentType = 'application/json' net.SetAccept('application/json') net.Post('https://localhost:2293 /customer_address_update',jsonData)
Try It - Live
jsondata
Try it : POST result
The following is a sample JSON GET request and response. The
placeholders shown need to be replaced with actual values.
Example Request
GET /customer_address_update?address-localcustomerid=value &address-customerid=value &address-localaddressid=value &address-addressid=value &address-company=value &address-contact=value &address-type=value &address-defaultaddress=value &address-address1=value &address-address2=value &address-address3=value &address-city=value &address-region=value &address-postcode=value &address-countrycode=value &address-email=value &address-phone=value &address-taxgroupid=value HTTP/1.1 Authorization: Basic ZGVtbzpkZW1v Host: localhost:2293 Accept: application/json
Example Response
HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8 Content-Length: length { "Update_Customer_Address_response" : { "result" : { "status" : "value ", "localcustomerid" : "value ", "customerid" : value , "localaddressid" : "value ", "addressid" : value }, "address" : { "localcustomerid" : "value ", "customerid" : value , "localaddressid" : "value ", "addressid" : value , "company" : "value ", "contact" : "value ", "type" : "value ", "defaultaddress" : "value ", "address1" : "value ", "address2" : "value ", "address3" : "value ", "city" : "value ", "region" : "value ", "postcode" : "value ", "countrycode" : "value ", "email" : "value ", "phone" : "value ", "taxgroupid" : "value " } } }
Example Code - JavaScript
function customer_address_update_getjson(host,urldata,username,password,result){ fetch(host + "/customer_address_update" +"?" + urldata, { credentials: "include", headers: { "Authorization": "Basic " + btoa(username + ":" + password), "Accept": "application/json;", } }).then(function(response){ // get the text out of the reply return response.text() }).then( function(text){ // do something with the text reply }) } var host = "https://localhost:2293"
Example Code - CURL
CURL --user Username :Password --header "Accept: application/json" --get --data "address-localcustomerid=value &address-customerid=value &address-localaddressid=value &address-addressid=value &address-company=value &address-contact=value &address-type=value &address-defaultaddress=value &address-address1=value &address-address2=value &address-address3=value &address-city=value &address-region=value &address-postcode=value &address-countrycode=value &address-email=value &address-phone=value &address-taxgroupid=value " https://localhost:2293 /customer_address_update
Example Code - Clarion with NetTalk
net NetWebClient net.Authorization = net.CreateAuthorizationString (Username , Password , Net:WebBasicAuthentication,Net:NoWrap) net.SetAccept('application/json') net.Get('https://localhost:2293 /customer_address_update?address-localcustomerid=value &address-customerid=value &address-localaddressid=value &address-addressid=value &address-company=value &address-contact=value &address-type=value &address-defaultaddress=value &address-address1=value &address-address2=value &address-address3=value &address-city=value &address-region=value &address-postcode=value &address-countrycode=value &address-email=value &address-phone=value &address-taxgroupid=value ')
Try It - Live
The following is a sample REST request and response. The
placeholders shown need to be replaced with actual values.
Example Request
GET /api/customer_address_update? HTTP/1.1 Authorization: Basic ZGVtbzpkZW1v Host: localhost:2293 Accept: application/json
Example Response
HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8 Content-Length: length { "Update_Customer_Address_response" : { "result" : { "status" : "value ", "localcustomerid" : "value ", "customerid" : value , "localaddressid" : "value ", "addressid" : value }, "address" : { "localcustomerid" : "value ", "customerid" : value , "localaddressid" : "value ", "addressid" : value , "company" : "value ", "contact" : "value ", "type" : "value ", "defaultaddress" : "value ", "address1" : "value ", "address2" : "value ", "address3" : "value ", "city" : "value ", "region" : "value ", "postcode" : "value ", "countrycode" : "value ", "email" : "value ", "phone" : "value ", "taxgroupid" : "value " } } }
Example Code - JavaScript
function customer_address_update_restjson(host,id,username,password,result){ fetch(host + "/api/customer_address_update/" + id, { credentials: "include", headers: { "Authorization": "Basic " + btoa(username + ":" + password), "Accept": "application/json;", } }).then(function(response){ // get the text out of the reply return response.text() }).then( function(text){ // do something with the text reply }) } var host = "https://localhost:2293"
Example Code - CURL
CURL --user Username :Password --header "Accept: application/json" https://localhost:2293 /api/customer_address_update/5
Example Code - Clarion with NetTalk
net NetWebClient net.Authorization = net.CreateAuthorizationString (Username , Password , Net:WebBasicAuthentication,Net:NoWrap) net.SetAccept('application/json') net.Get('https://localhost:2293 /api/customer_address_update/5 ')
Try It - Live