Sites

Get Sites

get /sites
Returns

Returns an envelope with items of type site.

gethttps://api.mysitoo.com/v2/accounts/1500/sites.json
RESPONSE JSON
{
"totalcount": 1,
"items": [
{
"siteid": "{25D9C5B8-51FC-5751-7FBE-37368C7E4EF0}",
"protocol": "https",
"server": "store.mysitoo.com",
"abspath": "/",
"siteurl": "https://store.mysitoo.com/",
"eshopid": 1
}
]
}
HTTP Status Code Summary
200Returns an envelope with items of type site.
400Bad Request. Invalid syntax, missing required argument or invalid request.
401Unauthorized. Authorization failed.
404Resource not found. The url is invalid.
429Too Many Requests.
500Internal Server Error.

Get Site

get /sites/{siteid}
PARAMETERS
siteid
integer
path
REQUIRED
Returns

Returns an item of type site.

gethttps://api.mysitoo.com/v2/accounts/1500/sites/1.json
RESPONSE JSON
{
"siteid": "{25D9C5B8-51FC-5751-7FBE-37368C7E4EF0}",
"protocol": "https",
"server": "store.mysitoo.com",
"abspath": "/",
"siteurl": "https://store.mysitoo.com/",
"eshopid": 1
}
HTTP Status Code Summary
200Returns an item of type site.
400Bad Request. Invalid syntax, missing required argument or invalid request.
401Unauthorized. Authorization failed.
404Resource not found. The url is invalid.
429Too Many Requests.
500Internal Server Error.

Objects

site
object

A site with it's own set of stores, products, pricelists and other related data.

PROPERTIES
siteid
string
READ ONLY
DEPRECATED

Site ID. This ID has been deprecated and eshopid should be used in it's place for API endpoint URLs where {siteid} is specified.

protocol
string
READ ONLY

Site protocol (ie. http or https).

server
string
READ ONLY

Server (domain).

abspath
string
READ ONLY

Absolute path.

siteurl
string
READ ONLY

Request to the site (protocol + "://" + server + abspath).

eshopid
integer
READ ONLY

Eshop ID. This ID should be used in place of siteid in API endpoint URLs where {siteid} is specified.