Create or import a product
/productsImport a product, update an external ID, or link an existing Storlio product.
products:writeHeaders
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.
expectedVersionintegerCurrent version from a fresh read. Stale writes return 409.
Min: 1.
titlestringrequiredProduct name.
Up to 255 characters.
descriptionstringrequiredProduct description.
Up to 20000 characters.
pricenumberrequiredPrice in NGN, not kobo.
Min: 0.Max: 1000000000.
currency"NGN"requiredSupported write currency.
visiblebooleanPublish the product. Store policies and moderation still apply.
Default: false.
coverobjectrequiredPrimary 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
- Standard physical products, NGN and HTTPS images only.
- Send productId and expectedVersion to link an existing product without creating a duplicate.
- Existing external IDs require expectedVersion. New products default to unpublished.
Responses
Created successfully.Existing products return 200.
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" }.