connected-sites

Add connected site

Create a new Mailchimp connected site.

post/3.0/connected-sites

Request

Request body

domainstring required

The connected site domain.

foreign_idstring required

The unique identifier for the site.

Example request

{
  "domain": "example.com",
  "foreign_id": "MC001"
}

Response

created_atstring date-time

The date and time the connected site was created in ISO 8601 format.

domainstring

The connected site domain.

foreign_idstring

The unique identifier for the site.

platformstring

The platform of the connected site.

store_idstring

The unique identifier for the ecommerce store that's associated with the connected site (if any). The store_id for a specific connected site can't change.

updated_atstring date-time

The date and time the connected site was last updated in ISO 8601 format.

Example response

{
  "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.