These endpoints cover a product's write lifecycle: creation, update (partial or full) and deletion. Renaming a SKU has no endpoint of its own — it is triggered implicitly on update. Deletion is permanent.
Writes may return `402` if your account is in collections
All three endpoints on this page write. When the tenant enters a read-only state due to an overdue invoice, the permission check rejects writes with 402 and code TENANT_PAYMENT_REQUIRED, while reads and exports keep working. It is not a full account blackout.
Returns the created product at the root of the JSON, with no data envelope, with 201.
Required permission:products:create
A duplicate SKU returns `500`, NOT `409`
This is the most important defect to know about on this endpoint. Creation writes with .save()without wrapping the call in the library's error translator, so the (tenantId, sku) unique-index collision surfaces as a raw MongoDB error (E11000 duplicate key), is not recognized as a DuplicateSkuError, and falls into the generic catch: 500 with internal-error.
Do not write if (response.status === 409) to detect a taken SKU on creation — it never fires. Check for existence first with GET /products/{id}, or treat this endpoint's 500 as "possibly a duplicate SKU" and verify.
The 409 with duplicate-skuis real when renaming through PUT /products/{id}: that path does go through the translator. The difference is the route, not the data.
The validation `400` carries no `field` and no `fieldErrors`
The pre-save validation throws with field undefined and the detail under the key errors, not fieldErrors. Because the lambda serializes with JSON.stringify, both keys vanish from the body: what you receive is only code and message, with every failure concatenated into message separated by ; .
The fieldErrors[] array that does exist elsewhere on the platform is produced only by the Mongoose error translator, and this path never reaches it. Do not build your field highlighting on fieldErrors for creation.
Unique SKU within the tenant. Maximum 100 characters, cannot be empty. It is normalized to UPPERCASE on save, so `cam-rojo-m` and `CAM-ROJO-M` are the same SKU and collide with each other.
titleobjectrequired
Translatable product title.
title.valuestringrequired
Title text. Cannot be empty; maximum 500 characters.
title.translationsarray
Title translations per language. Optional; if omitted it is stored as an empty array.
title.translations.localestringrequired
Language code of the translation.
title.translations.valuestringrequired
Translated text.
pricenumberrequired
Base price. Must be a number greater than or equal to 0.
currencystringrequired
Currency code. ON CREATE it is checked twice: it cannot be empty, and the schema uppercases it and requires exactly three letters (`^[A-Z]{3}$`). Schema default: USD. This is a SHAPE check, not a catalog check: `XXX` or `ZZZ` pass just like `MXN`. On UPDATE the format is not checked — see the note on what is validated on update.
statusstringrequired
Product status. Closed list of 3 accepted values: draft, active, disabled. There is no escape value: anything else is rejected with `400`. Watch out for `inactive` and `out_of_stock` — they appear in older public types and the API REJECTS them.
productTypestring
Nature of the product. Closed list of 6 accepted values ON CREATE: physical, digital, service, bundle, supply, material. Default: physical. At the VARIANT level the enum is shorter — only physical, digital, service. On UPDATE the enum is not checked: see the note on write validation.
unitCostnumber
The product's unit cost, in the tenant's currency. Greater than or equal to 0. Only applies to a product without variants: with variants, the cost goes on each variant. Replaces cost.
additionalCostsarray
Additional reference costs (taxes, packaging, fees). They do not enter COGS and are not copied to the order. Replaces costs.
additionalCosts.idstringrequired
Cost identifier within the product.
additionalCosts.namestring
Cost name.
additionalCosts.typestringrequired
Cost form. Accepted values: money (an amount), rate (a percentage of the price).
additionalCosts.costnumberrequired
Amount, in the tenant's currency, if type is money; percentage if type is rate. Greater than or equal to 0.
additionalCosts.categorystringrequired
Category. Accepted values: tax, delivery-packaging, fees, custom. The inventory and material categories are rejected: the merchandise's cost goes in unitCost, and a manufactured product's material is already part of unitCost.
compareAtPricenumber
Comparison price. Must be greater than or equal to 0. On CREATE it must additionally be strictly greater than `price`, or creation fails; that second rule does not apply on update (see the note below).
variantsarray
Array of product variants. Maximum 100 items on update. Each variant needs its own `sku`: it cannot repeat within the product nor match the parent product's SKU (both rules are only checked on create).
variants.skustringrequired
Variant SKU. Maximum 100 characters.
variants.titleobjectrequired
Translatable variant title.
variants.title.valuestringrequired
Title text in the base language. Maximum 500 characters.
variants.title.translationsarray
Title translations. Default: empty array.
variants.title.translations.localestringrequired
Language code of the translation.
variants.title.translations.valuestringrequired
Translated text.
variants.pricenumberrequired
Variant price. Greater than or equal to 0.
variants.compareAtPricenumber
Variant compare-at price. Greater than or equal to 0.
variants.positionnumber
Order of the variant within the product.
variants.productTypestring
Nature of the variant. Closed list of 3 values —shorter than the product's—: physical, digital, service. Default: physical.
variants.barcodestring
Variant barcode.
variants.barcodeTypestring
Barcode standard, taken from the library's `BARCODE_TYPES` catalog.
variants.satCodestring
SAT product/service key for invoicing in Mexico.
variants.taxableboolean
Whether the variant is taxable.
variants.optionsarray
Option values that identify this variant (for example size and colour).
variants.options.idstring
Identifier of the option the value belongs to.
variants.options.namestring
Option name, for example `Talla`.
variants.options.valuestring
This variant's concrete value, for example `CH`.
variants.unitCostnumber
The variant's unit cost, in the tenant's currency. Greater than or equal to 0. Replaces cost. Fenicia uses this cost for stock that has no lot.
variants.additionalCostsarray
The variant's additional reference costs, with the same shape as the product's. Replaces costs.
Traceability that merchandise receiving requires of this variant.
variants.inventoryTracking.trackBatchesboolean
If true, every reception requires the manufacturer batch (batchNumber).
variants.inventoryTracking.trackExpirationboolean
If true, every reception requires the expiration date (expirationDate) and the sale uses FEFO: first expired, first out.
variants.costnumber
Deprecated: use unitCost. Fenicia writes cost and unitCost with the same value, in both directions, while the POS apps update. Greater than or equal to 0.
variants.inventoryCostnumber
Deprecated and no longer written: the real cost lives in lots and in the order's COGS. Kept read-only.
variants.inventoryCostMethodstring
Deprecated along with inventoryCost. Historical values: lastReceived, weightedAverage.
variants.countryOfOriginstring
Country of origin of the variant.
variants.minAlertStocknumber
Stock threshold below which an alert is raised.
variants.sellIfOutOfStockboolean
Whether the variant can be sold with no stock.
variants.parentSkustring
Parent product SKU. Do NOT send it: the server overwrites it on save from the product's SKU. It appears in responses.
variants.productSkustring
Duplicate of `parentSku`, with the same behaviour: the server writes it, not the client.
Variant fields this page does not detail
The variant schema also declares imageId, department, fulfillmentService, inventoryCostUpdatedAt, and its own priceSchemas[], costs[] and bindings[]. They are omitted here on purpose: the last three repeat the shape of their product-level equivalents —documented on this same page and in Variants and media— and the rest are internal or marginally used fields. The omission is deliberate, not an oversight: the schema does accept them.
mediaarray
Array of product images and video. See [Variants and media](/api/products/variants-media) for the upload flow.
media.idstringrequired
Identifier of the entry within the product.
media.srcstringrequired
File URL. Validated against `^https?://.+`: a relative path is rejected.
media.namestringrequired
File name.
media.typestring
Nature of the file. Accepted values: image, video, audio, document. Default: image.
media.sizenumber
File size. Accepts a number or a string; any other type is rejected.
media.positionnumberrequired
Order within the gallery. Integer greater than or equal to 0.
media.altobjectrequired
Translatable alt text for the image.
media.alt.valuestringrequired
Alt text in the base language.
media.alt.translationsarray
Alt-text translations. Default: empty array.
media.alt.translations.localestringrequired
Language code of the translation.
media.alt.translations.valuestringrequired
Translated text.
bindingsarray
Links to sales channels. Maximum 50 items on update.
bindings.idstring
Binding identifier. If omitted, one is generated.
bindings.channelIdstringrequired
Sales channel being published to.
bindings.handlestringrequired
Identifier of the product on that channel.
bindings.typestringrequired
Marketplace type. Closed list of 10 accepted values: mercadolibre, shopify, amazon, walmart, shein, woocommerce, t1, claroshop, linio, coppel. There is no escape value.
bindings.statusstring
Actual state of the publication. Accepted values: active, inactive, pending, error, paused. Default: pending.
bindings.desiredStatusstring
State the publication should be driven to. Same values as `status`. Default: active.
bindings.namestring
Custom title for this publication, if it differs from the product title.
bindings.pricenumber
Custom price for this publication. Greater than or equal to 0.
bindings.categoryIdstring
Channel category being published to.
bindings.reservedStocknumber
Stock reserved for this publication. Greater than or equal to 0. Default: 0.
Value to send. It is `Mixed` in the schema: any shape is accepted.
bindings.lastSyncAtstring
Timestamp of the last synchronization with the channel.
bindings.syncStatusstring
Outcome of the last synchronization. Accepted values: synced, pending, error. Default: pending.
bindings.syncErrorstring
Error detail when `syncStatus` is `error`.
Marketplace-specific binding fields
Beyond the above, the binding schema accepts metadata, mercadoLibreData, sheinData, coppelData and t1Channels. They are not documented here because each marketplace defines their shape and its own integration manages them, not the products API client. If you integrate directly against one of those channels, consult that channel's documentation.
The `pre('save')` hook rules apply ONLY on create
Four validations live in a Mongoose pre('save') hook and therefore only run on POST /products, which writes with .save(). Updates use findOneAndUpdate, which does not run the hook:
compareAtPrice must be higher than price.
The product SKU is normalized to uppercase.
No two variants may share the same SKU within the product.
A variant's SKU cannot match the parent product's SKU.
In other words: a product that could not be created with compareAtPrice <= pricecan still end up in that state through a later PUT.
MongoDB `_id` (24 hexadecimal characters) or SKU of the product to update. The endpoint auto-detects which one you sent.
(product fields)objectestructura libre
Any subset of the product's fields — you do not need to resend the whole object. No field is required, and `compareAtPrice: null` explicitly clears the field (different from omitting it). The limits are NOT the same as on create: see the note on what is validated on update.
Updates validate MUCH less than creates
An update writes with findOneAndUpdate without enabling Mongoose validators, so no schema enum is checked at all. Only a handful of application-level checks run: the length of sku (100) and title.value (500), that price, compareAtPrice, weight and each costs[].cost are numbers greater than or equal to 0, that status is within its enum, and the caps on variants (100) and bindings (50).
What is NOT validated on update, but is on create:
productType: a PUT with {"productType": "anything"} returns 200 and persists it outside the enum.
compareAtPrice greater than price: see the note above about the create hook.
Variant uniqueness and shape: a SKU duplicated across variants, or a variant SKU equal to the product's.
No required field is re-enforced, so a PUT also cannot "empty" the product by omission: what you do not send is not touched.
An `id` that does not exist may CREATE the product instead of failing
Behaviour for an identifier that does not resolve depends on its shape:
If it looks like an ObjectId (24 hexadecimal characters) and does not resolve → 404.
If it does not look like an ObjectId, it is treated as a SKU and the endpoint takes the create path: PUT /products/SKU-THAT-DOES-NOT-EXIST does not return 404, it creates the product.
If there is neither a path identifier nor a sku in the body → 400 with bad-request/missing-sku.
If your integration uses PUT expecting it to fail when the product does not exist, use the _id, not the SKU.
To change a product's SKU, send the new value in the sku field of the PUT /products/{id} body. If body.sku differs from the stored SKU, the lambda internally triggers the cascading rename — there is no separate route such as POST /products/{id}/rename.
The cascading rename updates, in the same operation, the associated inventory records, inventory_tracks and the references from BOM, bundle and modifiers pointing at the old SKU; it also emits the ProductSkuChanged event. The write is pinned to the immutable _id, so a SKU change can never create a second document.
Treat it as a higher-impact operation than a simple field update: check beforehand that the new SKU is not taken, because it will return 409 with duplicate-sku if it is. The value you send is normalized to uppercase before comparison.
A legacy variant without `{id}` in the path exists
PUT /products (no identifier in the path, with sku or id inside the body) is still available and shares permission, contract and behaviour with PUT /products/{id}. It is documented for completeness; use the {id} form in new integrations.
MongoDB `_id` or SKU of the product to delete. Unlike `PUT`, here an identifier that does not resolve ALWAYS returns `404`, whether it is shaped like an ObjectId or like a SKU.
Permanent deletion — no trash and no recoverable state
This endpoint performs a direct delete against the MongoDB collection. There is no recycle bin and no soft-delete. Once deleted, the product no longer exists in the database and you cannot restore it from the API.
This is different from setting status: "disabled", which is a reversible logical state: the product still exists and is merely withdrawn from sale. If your flow needs an undo, use PUT /products/{id} with {"status": "disabled"} instead of DELETE.