OverviewPlatformsAPI ReferenceResources
Commerce

List URL redirects

GEThttps://zernio.com/api/v1/commerce/redirects

The store's URL redirects (old path to new target), cursor-paginated with limit, cursor and an optional query on the path. Shopify only. Needs navigation.read.

PlatformsShopify

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Query parameters

accountIdstringRequired

Connected store SocialAccount id.

limitintegerDefault 20
cursorstring
querystring, max 500

Platform search syntax, passed through.

Responses

Success· the request worked

Errors· the request failed

GET/v1/commerce/redirects
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.commerce.listCommerceRedirects({  query: {    accountId: 'account_abc123',  },});console.log(data);
{  "redirects": [    {      "id": "string",      "path": "string",      "target": "string"    }  ],  "nextCursor": "string"}
OpenAPI specification
Was this page helpful?