OverviewPlatformsAPI ReferenceResources
Commerce

List collections

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

Lists the store's product collections. Cursor-paginated like products. List a collection's products with GET /v1/commerce/products?collectionId=....

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 collection search syntax (Shopify: title, handle, collection_type, ...).

Responses

Success· the request worked

Errors· the request failed

GET/v1/commerce/collections
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.commerce.listCommerceCollections({  query: {    accountId: 'account_abc123',  },});console.log(data);
{  "collections": [    {      "id": "string",      "accountId": "string",      "platform": "shopify",      "title": "string",      "handle": "string",      "descriptionHtml": "string",      "image": {        "id": "string",        "url": "string",        "altText": "string"      },      "sortOrder": "manual",      "productCount": 0,      "seo": {        "title": "string",        "description": "string"      },      "updatedAt": "2019-08-24T14:15:22Z",      "platformData": {}    }  ],  "nextCursor": "string"}
OpenAPI specification
Was this page helpful?