Skip to Content
Stores

Link a store product to a Vizbl product, or replace its link for that product kind

PUT
/developer-api/store-product-links

Authorization

bearer
headerAuthorizationBearer <secret_api_key>

Use Authorization: Bearer <secret_api_key>.

Request Body

application/json
  1. body
store*
product*
product_kind*string
Value in"core-ar""rugs""flooring""wallart""ai-try-on"
obj_id?string

The object to open, as its tinuuid or its uuid. Required for core-ar, rugs and flooring; left out for wallart and ai-try-on.

Length1 <= length <= 64
variant_hid?string

Variant (material) hid of the object.

Length1 <= length <= 16
data?

wallart needs image_url; ai-try-on needs image_url and zone.

Response Body

Invalid request

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
curl -X PUT 'https://api.vizbl.com/developer-api/store-product-links' \  -H 'Content-Type: application/json' \  -d '{  "store": {    "platform": "shopify",    "domain": "example.com",    "external_id": "example.myshopify.com"  },  "product": {    "external_product_id": "8112233445566",    "title": "Oak chair",    "url": "https://example.com/products/oak-chair"  },  "product_kind": "core-ar",  "obj_id": "VQ6EAOKbQdSnFkRmVUQAAA"}'
Example Response
{  "status": 100,  "code": "string",  "error": [    "string"  ],  "retryAfterSeconds": 0,  "manageUrl": "http://example.com",  "manage_url": "http://example.com",  "stack": "string"}