REST API v2.8

Sites

A site represents a store instance. See site for fields. Note that you can use eshopid instead of siteid.

Get Sites

Endpoint

GET sites

HTTP Response Status

200

OK. Returns data (see below).

400

Bad Request. Invalid syntax, missing required argument or invalid request.

401

Unauthorized. Authorization failed.

404

Resource not found. The url is invalid.

429

Too Many Requests.

500

Internal Server Error.

Returns

Returns an envelope with items of type site.

Example

Request

GET https://api.mysitoo.com/v2/accounts/1500/sites.json

Response

{ "totalcount": 1, "items": [ { "siteid": "{25D9C5B8-51FC-5751-7FBE-37368C7E4EF0}", "protocol": "http", "server": "apisamples.example.com", "abspath": "\/", "siteurl": "http:\/\/apisamples.example.com\/", "eshopid": 1 } ] }

Get Site

Endpoint

GET sites/{siteid}

HTTP Response Status

200

OK. Returns data (see below).

400

Bad Request. Invalid syntax, missing required argument or invalid request.

401

Unauthorized. Authorization failed.

404

Resource not found. The url is invalid.

429

Too Many Requests.

500

Internal Server Error.

Returns

Returns an item of type site.

Example

Request

GET https://api.mysitoo.com/v2/accounts/1500/sites/1.json

Response

{ "siteid": "{25D9C5B8-51FC-5751-7FBE-37368C7E4EF0}", "protocol": "http", "server": "apisamples.example.com", "abspath": "\/", "siteurl": "http:\/\/apisamples.example.com\/", "eshopid": 1 }