Commerce
Delete a collection
Deletes the collection. Its products are not affected.
PlatformsShopify
Authorization
bearerAuth AuthorizationBearer <token>
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
collectionId*string
Platform-native collection 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.deleteCommerceCollection({ path: { collectionId: 'collection_abc123', }, query: { accountId: 'account_abc123', },});console.log(data);{ "deleted": true, "collectionId": "string"}Was this page helpful?
Update a collection
Partial update; at least one field besides accountId is required. Change membership with POST /v1/commerce/collections/{collectionId}/products.
Add or remove products in a collection
Adds and/or removes hand-picked products. Products a collection includes through its own rules are not affected. `pending` is true when the platform finishes the change in the background; the product count then catches up a few seconds later.