ProductDto reference

PIM Product Data Model Reference POS Integration

ProductDto is the request body for creating a product (POST /api/v1/products) and replacing one (PUT /api/v1/products/{productId}) with the Products API. This reference lists every field the server reads, the shape of the elements inside its JSON-string fields, the fields that are ignored on input, how to turn a GET response into a PUT body, and the fields of the variant items GET returns. Field names on the wire are camelCase, exactly as written here; on input the server also accepts other casings. Where this page and the OpenAPI spec differ, this page describes what the server actually does.

Where this type is used

  • POST /api/v1/products and PUT /api/v1/products/{productId} take ProductDto as a flat JSON body.
  • GET /api/v1/products and GET /api/v1/products/{productId} return a different, nested shape: prices under pricing, images under images, variants under variants, pre-order settings under preOrder and POS IDs under integrations. This is by design. To send a product you have read back with PUT, flatten it first (see "From a GET response to a PUT body").
  • PATCH /api/v1/products/{productId} takes its own smaller body (productName, description, category, brand, supplier, sku, janCode, basePrice, baseCostPrice, taxRate, status) and leaves every other field unchanged. Prefer it when those are all you change.
  • Variants are not changed through ProductDto. Replace the whole list with PUT /api/v1/products/{productId}/variants (see "Replace the variants" in Using the Products API).

Rules for POST and PUT

  • productName is required on both. A missing or blank name returns 400 with {"error": "productName is required"}.
  • status must be Active, Draft or Discontinued. Any other value returns 400 with {"error": "invalid_status", "status": "...", "allowed": ["Active", "Draft", "Discontinued"]}. On PUT, the product's current status is accepted even if it is something else.
  • The business account comes from the token and the organizationId query parameter. An organizationId in the body is ignored.
  • POST: productId is optional; leave it out and the server assigns a GUID. If you supply an ID that already exists in the business account, the call returns 409 with {"error": "product_exists", "productId": "...", "deleted": false} and nothing is written. A deleted product's ID stays taken; then deleted is true.
  • PUT: the product is the one in the path, and productId in the body is ignored. PUT replaces the product. A field you leave out takes the default shown in the tables below, unless the table says PUT keeps the stored value.
  • Variants: POST and PUT both ignore hasVariants, variantOptionsJson and variants. A product created with POST starts without variants, and PUT leaves the existing variants and options as they are.
  • Lists are sent as JSON strings, not arrays: storePricesJson and imageUrlsJson.
  • Success is 200 with the saved product in the GET response shape.

Identity and basic information

FieldTypeNotes
productIdstringPOST only, optional (see above). Ignored on PUT.
organizationIdstringIgnored on input.
productNamestringRequired.
skustringSKU code. Not checked for uniqueness.
janCodestringJAN code (barcode).
categorystringFlat category name, not a hierarchy.
brandstring
supplierstring
descriptionstring
unitstringUnit label, such as pcs or kg.
internalMemostringInternal note.

Every string field defaults to an empty string.

Specifications, B2B and trade

These are all strings: modelNumber, series, color, size, weight, contentVolume, material, specification, countryOfOrigin, casePackSize, minimumOrderQuantity, leadTimeDays, hsCode, storageRequirements, certifications. Note that casePackSize, minimumOrderQuantity and leadTimeDays are strings, not numbers.

FieldTypeDefaultNotes
orderByCasebooleanfalseB2B EC orders must be a multiple of casePackSize.
b2becStockModestringNoneHow B2B EC orders draw on stock: None (orders do not touch stock), StockOnly (an order beyond available stock is refused), Backorder (available stock is reserved, the rest waits for stock). Any other value is saved as None.

GET returns both at the top level under the same names.

Prices

FieldTypeDefaultNotes
basePricenumber0Selling price, tax excluded.
baseCostPricenumber0Cost price.
taxRatenumber0.10A fraction: 0.10 is 10%, 0.08 is 8%.
storePricesJsonstring (JSON)emptyPer-store overrides: an array of store price elements, sent as a string. Elements whose storeId is not a store of this business account are dropped on save.

Store price element

Each element inside storePricesJson:

FieldTypeNotes
storeIdstringStore ID in this business account.
storeNamestringDisplay name.
pricenumberSelling price at that store. 0 means use basePrice.
costPricenumberCost at that store. 0 means use baseCostPrice.

A store with no element uses basePrice and baseCostPrice. Keys inside a stored JSON string may come back as StoreId, Price and so on; parse them case-insensitively.

Images

FieldTypeNotes
imageUrlstringCover image URL. Returned as images.cover. To upload a file instead, use POST /api/v1/products/{productId}/image.
imageUrlsJsonstring (JSON)The whole gallery as a JSON array of URL strings. Returned as images.gallery; when it is empty, the gallery holds imageUrl alone.

Status, order and pre-order

FieldTypeDefaultNotes
statusstringActiveOne of Active, Draft, Discontinued. Anything else returns 400 (invalid_status); on PUT the product's current value is also accepted.
sortOrderinteger0Display order.
isPreOrderbooleanfalse
preOrderReleaseDatestring (ISO 8601) or nullnullA value without a time zone is stored as UTC. null means the date is not decided.
preOrderNotestringempty

Variants

FieldTypeNotes
hasVariantsbooleanIgnored on POST and PUT. It is true when the product has at least one variant, and GET returns it as variants.hasVariants.
variantOptionsJsonstring (JSON)Ignored on POST and PUT. The options are derived from the variants' attributes, and GET returns them as variants.options (an array of elements with name and values).
variantsarrayIgnored on POST and PUT. Create, change and delete variants with PUT /api/v1/products/{productId}/variants.

The body of the variants endpoint, its rules for creating, updating and deleting, and its errors are under "Replace the variants" in Using the Products API.

POS and e-commerce link fields

The Square, Smaregi and Shopify imports set these IDs, and later syncs use them to match products. Through the API, POST accepts only smaregiProductId, and PUT accepts some of them only when they are not empty.

FieldTypePOSTPUT
squareCatalogObjectIdstringIgnored.Saved only when not empty; otherwise the stored value is kept.
squareVariationIdstringIgnored.Saved only when not empty.
squareVersionintegerIgnored.Ignored.
squarePushedAtstring (ISO 8601) or nullIgnored.Ignored.
squarePushErrorstringIgnored.Ignored.
smaregiProductIdstringSaved.Saved only when not empty.
shopifyProductGidstringIgnored.Ignored.
shopifyShopDomainstringIgnored.Ignored.
shopifyUpdatedAtstring (ISO 8601) or nullIgnored.Ignored.

GET returns squareCatalogObjectId, squareVariationId and smaregiProductId under integrations. The other fields in this table are not returned.

Brand catalog fields

FieldTypeNotes
sourceBrandOrgIdstringThe business account the product was imported from. Ignored on POST and PUT.
sourceBrandProductIdstringThe product ID in that business account. Ignored on POST and PUT.
sourceBrandSyncedAtstring (ISO 8601) or nullWhen the import last ran. Ignored on POST and PUT.
allowSubscriptionsbooleanDefault false. The brand's opt-in that lets stores import this product. Saved on POST and PUT, and returned at the top level by GET.

sourceBrandOrgId, sourceBrandProductId and sourceBrandSyncedAt are not returned by GET.

Fields the server manages

  • createdAt and updatedAt are set by the server and ignored on input. GET returns them.
  • isDeleted is ignored on input; use DELETE. A deleted product returns 404 on GET, PUT, PATCH and DELETE.

Response-only fields, ignored on input

The OpenAPI spec currently lists the following as properties of the request body. The server ignores them on POST and PUT, and none of them appears on the product in a GET response. Send the underlying field instead (storePricesJson, imageUrlsJson, basePrice and so on).

imageUrls, variantOptions, storePrices, minVariantPrice, maxVariantPrice, isLinkedToSquare, isFromShopify, isFromBrand, preOrderReleaseDateDisplay, formattedBasePrice, formattedBaseCostPrice, taxIncludedPrice, formattedTaxIncludedPrice, profitMargin, taxRateDisplay, statusDisplayJa, statusBadgeClass

From a GET response to a PUT body

Read the product with GET /api/v1/products/{productId}, then map it as follows. Read it with the same token you will write with: tokens that can write always see every store's prices and the cost prices, so the copy you send back is complete.

GET responsePUT body
idThe path (/api/v1/products/{productId})
pricing.basePrice / pricing.baseCostPrice / pricing.taxRatebasePrice / baseCostPrice / taxRate
pricing.storePrices (array)storePricesJson (the array serialized to a string)
images.coverimageUrl
images.gallery (array)imageUrlsJson (serialized to a string)
variants (hasVariants, options, items)Do not send; ignored. PUT does not change variants.
preOrder.isPreOrder / preOrder.releaseDate / preOrder.noteisPreOrder / preOrderReleaseDate / preOrderNote
integrations.squareCatalogObjectId / squareVariationId / smaregiProductIdThe same names at the top level, or leave them out (PUT keeps them).
orderByCase / b2becStockMode / allowSubscriptionsThe same names, copied from the top level.
createdAt / updatedAtDo not send; ignored.
Everything else (productName, sku, specification, status, sortOrder and so on)The same name.

Mapped this way, a PUT changes only the fields you edited. The status you read back is always accepted.

Variant items in GET responses

variants.items is filled only by GET /api/v1/products/{productId}; the list returns it empty. Each item has these fields. To change them, use PUT /api/v1/products/{productId}/variants.

FieldTypeNotes
variantIdstringUse it in the variants body to refer to an existing variant.
parentProductIdstringThe parent product's ID.
sku / janCode / imageUrlstring
attributesobjectOption values as an object of name to value, such as {"Size":"M"}.
attributesJsonstring (JSON)attributes as a JSON string.
displayLabelstringThe values of attributes joined with " / "; the sku when there are no attributes.
basePrice / baseCostPrice / taxRatenumberSame meaning as on the product.
storePricesarrayStore price elements, in the same shape as the product's pricing.storePrices.
statusstringOne of Active, Draft, Discontinued.
sortOrderintegerDisplay order.
squareVariationId / shopifyVariantGidstringExternal IDs.
createdAt / updatedAtstring (ISO 8601)

Formatted prices, statusDisplayJa, statusBadgeClass and the raw storePricesJson are not returned. For a token that cannot see every store's prices and costs, storePrices holds only the caller's own stores and baseCostPrice reads as 0, as on the product.

Example POST body

{
  "productName": "House Blend",
  "sku": "CFE-BLD",
  "category": "Drinks",
  "basePrice": 480,
  "baseCostPrice": 120,
  "taxRate": 0.08,
  "storePricesJson": "[{\"storeId\":\"{storeId}\",\"storeName\":\"Main store\",\"price\":500,\"costPrice\":120}]",
  "imageUrlsJson": "[\"https://example.com/a.jpg\",\"https://example.com/b.jpg\"]",
  "imageUrl": "https://example.com/a.jpg",
  "status": "Active"
}

To give the product sizes or colours, take the id from the response and add variants with PUT /api/v1/products/{productId}/variants.

Related guides

Published: 2026-05-29 Updated: 2026-11-20