StorlioDevelopers
Products

Update a product

PATCH/products/{product}

Change selected product fields using its current version.

Bearer token ·products:write

Path parameters

productintegerrequired

Storlio product ID belonging to this store.

Min: 1.

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.

expectedVersionintegerrequired

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

Min: 1.

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

External 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
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