Commerce
Add options
POSThttps:/ / zernio.com/ api/ v1/ commerce/ products/ {productId}/ options
Adds option axes (e.g. Size, Color) and their values. With createVariants true the platform creates a variant for every new combination; otherwise existing variants take the first value.
PlatformsShopify
Authentication
AuthorizationBearer tokenRequired
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
Path parameters
productIdstringRequired
Platform-native id.
Body
application/jsonWhat every request needs
accountIdstringRequired
optionsarray of objectRequired
namestringRequired
valuesarray of stringsRequired
Optional parameters1 field
createVariantsbooleanDefault
falseResponses
Success· the request worked
Errors· the request failed
Delete variants
Deletes the variants in `variantIds` (comma-separated, up to 100) and returns the updated product. A product keeps at least one variant, so deleting every variant is refused by the platform. Needs products.variants.
Delete options
Deletes options by name, with the variants that depended on them.