connected-sites

List connected sites

Get all connected sites in an account.

get/3.0/connected-sites

Request

Query parameters

fieldsstring[]

A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.

exclude_fieldsstring[]

A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.

countinteger

The number of records to return. Default value is 10. Maximum value is 1000

offsetinteger

Used for pagination, this is the number of records from a collection to skip. Default value is 0.

Response

total_itemsinteger

The total number of items matching the query regardless of pagination.

Example response

{
  "sites": [
    {
      "created_at": "2015-07-15T19:28:00+00:00",
      "domain": "example.myshopify.com",
      "foreign_id": "a180c384d7db88b if created in-app, MC001 if created via API",
      "platform": "shopify, magento, bigcommerce, woocommerce",
      "site_script": {
        "fragment": "<script id=\"mcjs\">!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,\"script\",\"https://chimpstatic.com/mcjs-connected/js/users/{user-hash}/{site-hash}.js\");</script>",
        "url": "https://chimpstatic.com/mcjs-connected/js/users/{user-hash}/{site-hash}.js"
      },
      "store_id": "MC001",
      "updated_at": "2015-07-15T19:35:00+00:00"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.