OverviewPlatformsAPI ReferenceResources
Commerce

Reorder products in a collection

POSThttps://zernio.com/api/v1/commerce/collections/{collectionId}/reorder

Moves products to new 0-based positions. Only for collections sorted manual.

PlatformsShopify

Authentication

AuthorizationBearer tokenRequired

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

Path parameters

collectionIdstringRequired

Platform-native id.

Body

application/json

What every request needs

accountIdstringRequired
movesarray of objectRequired
productIdstringRequired
positionintegerRequired

Responses

Success· the request worked

Errors· the request failed

POST/v1/commerce/collections/{collectionId}/reorder
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.commerce.reorderCommerceCollectionProducts({  path: {    collectionId: 'collection_abc123',  },  body: {    accountId: 'account_abc123',    moves: [      {        productId: 'product_abc123',        position: 0,      },    ],  },});console.log(data);
{  "pending": true}
OpenAPI specification
Was this page helpful?