StorlioDevelopers
Products

Create or import a product

POST/products

Import a product, update an external ID, or link an existing Storlio product.

Bearer token ·products:write

Headers

Idempotency-Keystringrequired

Reuse only for an identical retry. Changed requests need a new key.

Request body application/json

externalIdstring

Your permanent product ID. Unique within this connection.

Up to 160 characters.

productIdinteger

Storlio product ID.

Min: 1.

expectedVersioninteger

Current version from a fresh read. Stale writes return 409.

Min: 1.

titlestringrequired

Product name.

Up to 255 characters.

descriptionstringrequired

Product description.

Up to 20000 characters.

pricenumberrequired

Price in NGN, not kobo.

Min: 0.Max: 1000000000.

currency"NGN"required

Supported write currency.

visibleboolean

Publish the product. Store policies and moderation still apply.

Default: false.

coverobjectrequired

Primary product image. A public HTTPS image is required.

Child fields
kind"image"required

Media type.

urlstringrequired

Public HTTPS URL.

Format: uri.

galleryobject[]

Additional HTTPS product images.

Up to 12 items.

Child fields
kind"image"required

Media type.

urlstringrequired

Public HTTPS URL.

Format: uri.

tagsstring[]

Short product labels.

Up to 20 items.

categorystring | null

Product category.

Up to 120 characters.

variantsobject[]

At most 200 combinations. Stock fields are prohibited here.

Up to 3 items.

Child fields
namestringrequired

Option name, such as Size.

Up to 80 characters.

valuesstring[]required

Option values, such as M and L.

Up to 20 items.

valueConfigobject

Per-value prices and SKUs.

Child fields
pricenumber

Price in NGN, not kobo.

Min: 0.

skustring

Stock keeping unit.

Up to 100 characters.

combinationConfigobject

Per-combination prices and SKUs.

Child fields
pricenumber

Price in NGN, not kobo.

Min: 0.

skustring

Stock keeping unit.

Up to 100 characters.

variantIdsobject

External 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
dataobject
Child fields
externalIdstring | null

Your permanent product ID. Unique within this connection.

titlestring

Product name.

Up to 255 characters.

descriptionstring

Product description.

Up to 20000 characters.

pricenumber

Price in NGN, not kobo.

Min: 0.Max: 1000000000.

currency"NGN"

Supported write currency.

visibleboolean

Publish the product. Store policies and moderation still apply.

Default: false.

coverobject

Primary product image. A public HTTPS image is required.

Child fields
kind"image"required

Media type.

urlstringrequired

Public HTTPS URL.

Format: uri.

galleryobject[]

Additional HTTPS product images.

Up to 12 items.

Child fields
kind"image"required

Media type.

urlstringrequired

Public HTTPS URL.

Format: uri.

tagsstring[]

Short product labels.

Up to 20 items.

categorystring | null

Product category.

Up to 120 characters.

variantsobject[]

At most 200 combinations. Stock fields are prohibited here.

Up to 3 items.

Child fields
namestringrequired

Option name, such as Size.

Up to 80 characters.

valuesstring[]required

Option values, such as M and L.

Up to 20 items.

valueConfigobject

Per-value prices and SKUs.

Child fields
pricenumber

Price in NGN, not kobo.

Min: 0.

skustring

Stock keeping unit.

Up to 100 characters.

combinationConfigobject

Per-combination prices and SKUs.

Child fields
pricenumber

Price in NGN, not kobo.

Min: 0.

skustring

Stock keeping unit.

Up to 100 characters.

variantIdsobject | array

External variation IDs to Storlio variation keys.

idstring

Storlio resource ID.

versioninteger

Current resource version.

Min: 1.

productTypestring
listingTypestring
moderationStatusstring | null
inStockboolean
urlstring

Public HTTPS URL.

Format: uri.

updatedAtstring

Last update in ISO 8601 format.

Format: date-time.

slugstring
shippingobject | null
writableboolean

True 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
idstring

Storlio resource ID.

titlestring

Product name.

pricenumber

Price in NGN, not kobo.

availableForSaleboolean
optionsobject

Selected variation options, for example { "Size": "M" }.

Storlio Commerce API v1