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/jsonWhat every request needs
accountIdstringRequired
movesarray of objectRequired
productIdstringRequired
positionintegerRequired
Responses
Success· the request worked
Errors· the request failed
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.
List discounts
The store's discounts (Shopify code and automatic discounts, WooCommerce coupons), cursor-paginated with `limit`, `cursor` and an optional `query`. Each discount lists its first 10 codes; `codeCount` has the total. Needs discounts.read.