Save pixel
PUT
/ admin/ v1/ stores/ {store_id}/ marketing/ pixels/ {platform}Connect or change a platform (meta, snapchat, tiktok, google).
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.platformenumrequiredThe platform
- meta
- snapchat
- tiktok
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
pixel_idstringrequiredMeta Pixel ID, Snap Pixel ID,
TikTokpixel code or GA4 measurement ID.enabledbooleanads_conversionstring · or nulltest_codestring · or nullserver_tokenstring · or nullA new server token (Conversions API / Events API token, GA4 API secret). Omit to keep the stored one;
""removes it.
Returns
200 Saved.
Errors
- 404
not_foundNo such platform. - 422
validation_failedAn ID, conversion or code in the wrong shape.