OverviewPlatformsAPI ReferenceResources
Commerce

Publish or unpublish a collection

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

Publishes to and/or unpublishes from sales channels (the online store, Shop, POS and others). List channels with GET /v1/commerce/channels.

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
Optional parameters2 fields
publisharray of strings

Channel ids from GET /v1/commerce/channels.

unpublisharray of strings

Responses

Success· the request worked

Errors· the request failed

POST/v1/commerce/collections/{collectionId}/channels
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.commerce.changeCommerceCollectionChannels({  path: {    collectionId: 'collection_abc123',  },  body: {    accountId: 'account_abc123',  },});console.log(data);
{  "collectionId": "string",  "published": [    "string"  ],  "unpublished": [    "string"  ]}
OpenAPI specification
Was this page helpful?