Skip to Content
Stores

The hosts the storefront is served from now: replaces only the hosts this connection added to the account's allowed domains. For a key bound to a store only

PUT
/developer-api/store-connection/domains

Authorization

bearer
headerAuthorizationBearer <secret_api_key>

Use Authorization: Bearer <secret_api_key>.

Request Body

application/json
  1. body
domains*array<>

Every host the storefront is served from now: the store's domain, its www. twin, its subdomains, and for Shopify the store's own .myshopify.com — any other host is 400. Replaces only the hosts this connection added; hosts the account had already are never removed.

Itemsitems <= 20

Response Body

A domain is not a plain host name, or is not one of the store's own hosts (its domain, www. twin, subdomains, its myshopify.com address)

application/json
  1. response
status*number
Value in100101102103200201202203204205206207208210300301302303304307308400401402403404405406407408409410411412413414415416417418421422423424428429456500501502503504505507508
code*string

Machine-readable error id (i18n dictionary key), e.g. shopify.ERROR_ID_TOKEN_INVALID; http_error.<STATUS> when there is no specific one.

error*array<string>
retryAfterSeconds?integer
Range0 <= value <= 9007199254740991
manageUrl?string

Where this account pays instead: the Vizbl app billing page in the Shopify admin (subscription.ERROR_PAYMENTS_THROUGH_SHOPIFY_APP).

Formaturi
manage_url?stringDeprecated

Deprecated: the same as manageUrl, kept for the clients that still read it.

Formaturi
stack?string
Example Request
curl -X PUT 'https://api.vizbl.com/developer-api/store-connection/domains' \  -H 'Content-Type: application/json' \  -d '{  "domains": [    "example.com",    "www.example.com",    "example.myshopify.com"  ]}'
Example Response
{  "status": 100,  "code": "string",  "error": [    "string"  ],  "retryAfterSeconds": 0,  "manageUrl": "http://example.com",  "manage_url": "http://example.com",  "stack": "string"}