PUT api/Account/ClientId

Removes any existing clientId association to the account and replaces it with the supplied value.

Request Information

Authentication Method

Partner/Account Authentication

URI Parameters

None.

Body Parameters

ClientInfo
NameDescriptionTypeAdditional information
clientId

Long or GUID for account identification in partner's system. Data type for this field is determined by clientIdType property.

string

 

clientIdType

Specifies the data type of the client id. GUID is the default.

ClientIdType

 

Request Formats

application/json, text/json

Sample:
{
  "clientId": "55555555-tttt-uuuu-vvvv-1234567890ab",
  "clientIdType": "GUID"
}

application/xml, text/xml

Sample:
<ClientInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SiteWit.PartnerAPI.Models.UpdateModels">
  <clientId>55555555-tttt-uuuu-vvvv-1234567890ab</clientId>
  <clientIdType>GUID</clientIdType>
</ClientInfo>

Response Information

Successful Response:

Resource Description

Account Info
NameDescriptionTypeAdditional information
accountNumber

integer

 

url

string

 

countryCode

string

 

timeZone

string

 

currency

string

 

clientId

string

 

clientIdType

string

 

partnerPackage

string

 

jsCode

string

 

token

string

 

status

string

 

partnerRemoteId

string

 

settlementCurrency

string

 

Response Formats

application/json, text/json

Sample:
{
  "accountNumber": 99999,
  "url": "http://www.domain.com",
  "countryCode": "US",
  "timeZone": "Pacific Standard Time",
  "currency": "USD",
  "clientId": "55555555-tttt-uuuu-vvvv-1234567890ab",
  "clientIdType": "GUID",
  "partnerPackage": "Free",
  "jsCode": "<script type=\"text/javascript\">\r\nvar _swaMa =[\"99999\",\"55555555-tttt-uuuu-vvvv-1234567890ab\"];\"undefined\"==typeof sw&&!function(e, s, a){function t(){for(;o[0]&&\"loaded\"==o[0][d];)i=o.shift(),i[w]=!c.parentNode.insertBefore(i,c)}for(var r,n,i,o=[],c=e.scripts[0],w=\"onreadystatechange\",d=\"readyState\";r=a.shift();)n=e.createElement(s),\"async\"in c?(n.async=!1,e.head.appendChild(n)):c[d]?(o.push(n), n[w]=t): e.write(\"<\" + s +' src=\"'+r+'\" defer></'+s+\">\"),n.src=r}(document,\"script\",[\"//analytics.sitewit.com/v3/\"+_swaMa[0]+\"/sw.js\"]);\r\n</script>\r\n",
  "token": "uuuuuuuuuUuuuuuuuuuu",
  "status": "Active",
  "partnerRemoteId": "p-14523224",
  "settlementCurrency": "USD"
}

application/xml, text/xml

Sample:
<AccountInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SiteWit.PartnerAPI.Models.ReturnModels">
  <accountNumber>99999</accountNumber>
  <clientId>55555555-tttt-uuuu-vvvv-1234567890ab</clientId>
  <clientIdType>GUID</clientIdType>
  <countryCode>US</countryCode>
  <currency>USD</currency>
  <jsCode>&lt;script type="text/javascript"&gt;
var _swaMa =["99999","55555555-tttt-uuuu-vvvv-1234567890ab"];"undefined"==typeof sw&amp;&amp;!function(e, s, a){function t(){for(;o[0]&amp;&amp;"loaded"==o[0][d];)i=o.shift(),i[w]=!c.parentNode.insertBefore(i,c)}for(var r,n,i,o=[],c=e.scripts[0],w="onreadystatechange",d="readyState";r=a.shift();)n=e.createElement(s),"async"in c?(n.async=!1,e.head.appendChild(n)):c[d]?(o.push(n), n[w]=t): e.write("&lt;" + s +' src="'+r+'" defer&gt;&lt;/'+s+"&gt;"),n.src=r}(document,"script",["//analytics.sitewit.com/v3/"+_swaMa[0]+"/sw.js"]);
&lt;/script&gt;
</jsCode>
  <partnerPackage>Free</partnerPackage>
  <partnerRemoteId>p-14523224</partnerRemoteId>
  <settlementCurrency>USD</settlementCurrency>
  <status>Active</status>
  <timeZone>Pacific Standard Time</timeZone>
  <token>uuuuuuuuuUuuuuuuuuuu</token>
  <url>http://www.domain.com</url>
</AccountInfo>