Update a product
/products/{product}Change selected product fields using its current version.
products:writePath parameters
productintegerrequiredStorlio product ID belonging to this store.
Min: 1.
Headers
Idempotency-KeystringrequiredReuse only for an identical retry. Changed requests need a new key.
Request body application/json
externalIdstringYour permanent product ID. Unique within this connection.
Up to 160 characters.
productIdintegerStorlio product ID.
Min: 1.
expectedVersionintegerrequiredCurrent version from a fresh read. Stale writes return 409.
Min: 1.
titlestringProduct name.
Up to 255 characters.
descriptionstringProduct description.
Up to 20000 characters.
pricenumberPrice in NGN, not kobo.
Min: 0.Max: 1000000000.
currency"NGN"Supported write currency.
visiblebooleanPublish the product. Store policies and moderation still apply.
Default: false.
coverobjectPrimary product image. A public HTTPS image is required.
Child fields
kind"image"requiredMedia type.
urlstringrequiredPublic HTTPS URL.
Format: uri.
galleryobject[]Additional HTTPS product images.
Up to 12 items.
Child fields
kind"image"requiredMedia type.
urlstringrequiredPublic HTTPS URL.
Format: uri.
tagsstring[]Short product labels.
Up to 20 items.
categorystring | nullProduct category.
Up to 120 characters.
variantsobject[]At most 200 combinations. Stock fields are prohibited here.
Up to 3 items.
Child fields
namestringrequiredOption name, such as Size.
Up to 80 characters.
valuesstring[]requiredOption values, such as M and L.
Up to 20 items.
valueConfigobjectPer-value prices and SKUs.
Child fields
pricenumberPrice in NGN, not kobo.
Min: 0.
skustringStock keeping unit.
Up to 100 characters.
combinationConfigobjectPer-combination prices and SKUs.
Child fields
pricenumberPrice in NGN, not kobo.
Min: 0.
skustringStock keeping unit.
Up to 100 characters.
variantIdsobjectExternal variation IDs to Storlio variation keys.
Integration notes
- Fetch the product before updating. A stale expectedVersion returns 409.
- Set stock to zero before changing a variation structure. Update quantities through Inventory.
Responses
Request successful.
Response fields
dataobjectChild fields
externalIdstring | nullYour permanent product ID. Unique within this connection.
titlestringProduct name.
Up to 255 characters.
descriptionstringProduct description.
Up to 20000 characters.
pricenumberPrice in NGN, not kobo.
Min: 0.Max: 1000000000.
currency"NGN"Supported write currency.
visiblebooleanPublish the product. Store policies and moderation still apply.
Default: false.
coverobjectPrimary product image. A public HTTPS image is required.
Child fields
kind"image"requiredMedia type.
urlstringrequiredPublic HTTPS URL.
Format: uri.
galleryobject[]Additional HTTPS product images.
Up to 12 items.
Child fields
kind"image"requiredMedia type.
urlstringrequiredPublic HTTPS URL.
Format: uri.
tagsstring[]Short product labels.
Up to 20 items.
categorystring | nullProduct category.
Up to 120 characters.
variantsobject[]At most 200 combinations. Stock fields are prohibited here.
Up to 3 items.
Child fields
namestringrequiredOption name, such as Size.
Up to 80 characters.
valuesstring[]requiredOption values, such as M and L.
Up to 20 items.
valueConfigobjectPer-value prices and SKUs.
Child fields
pricenumberPrice in NGN, not kobo.
Min: 0.
skustringStock keeping unit.
Up to 100 characters.
combinationConfigobjectPer-combination prices and SKUs.
Child fields
pricenumberPrice in NGN, not kobo.
Min: 0.
skustringStock keeping unit.
Up to 100 characters.
variantIdsobject | arrayExternal variation IDs to Storlio variation keys.
idstringStorlio resource ID.
versionintegerCurrent resource version.
Min: 1.
productTypestringlistingTypestringmoderationStatusstring | nullinStockbooleanurlstringPublic HTTPS URL.
Format: uri.
updatedAtstringLast update in ISO 8601 format.
Format: date-time.
slugstringshippingobject | nullwritablebooleanTrue for standard physical products supported by the write API.
variantSummariesobject[]Resolved variation prices and availability, with stable IDs and option choices. Does not grant inventory write access.
Child fields
idstringStorlio resource ID.
titlestringProduct name.
pricenumberPrice in NGN, not kobo.
availableForSalebooleanoptionsobjectSelected variation options, for example { "Size": "M" }.