Commerce
Delete a URL redirect
Deletes the redirect; the old path answers 404 again. Shopify only. Needs navigation.write.
PlatformsShopify
Authorization
bearerAuth AuthorizationBearer <token>
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
redirectId*string
Platform-native id.
Query Parameters
accountId*string
Connected store SocialAccount id.
Response Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.commerce.deleteCommerceRedirect({ path: { redirectId: 'redirect_abc123', }, query: { accountId: 'account_abc123', },});console.log(data);{ "deleted": true, "redirectId": "string"}Was this page helpful?
Update a URL redirect
Changes the redirect's `path` and/or `target`. Shopify only. Needs navigation.write.
Record a marketing activity
Creates or updates (by `remoteId`) an activity in the store's Marketing section, so the merchant sees a post, ad or message you ran for them, with its link and UTM parameters for attribution. Use your own id (for example the Zernio post or ad id) as `remoteId`.