GET api/Account
Retrieves the information for a given account. No parameters are needed for this function.
Request Information
Authentication Method
Partner/Account AuthenticationURI Parameters
None.
Body Parameters
None.
Response Information
Successful Response: 200Resource Description
Account InfoName | Description | Type | Additional 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><script type="text/javascript"> var _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"]); </script> </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>