Commerce
Create a collection
POSThttps:/ / zernio.com/ api/ v1/ commerce/ collections
Creates a collection, optionally with hand-picked products. On Shopify the collection starts unpublished from the online store; publish it from the Shopify admin.
PlatformsShopify
Authentication
AuthorizationBearer tokenRequired
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
Body
application/jsonWhat every request needs
accountIdstringRequired
titlestringRequired
Optional parameters6 fields
descriptionHtmlstring
handlestring
sortOrderstringOne of
manual | best_selling | alpha_asc | alpha_desc | price_asc | price_desc | created | created_desc | most_relevantseoobject
imageobject
urlstring (uri)Required
productIdsarray of strings
Responses
Success· the request worked
Errors· the request failed
Get a collection
One collection (a category on WooCommerce) with its image, sort order and product count. List its products with GET /v1/commerce/products?collectionId=. Needs collections.read.
Update a collection
Partial update; at least one field besides accountId is required. Change membership with POST /v1/commerce/collections/{collectionId}/products.