Skip to content

Product model ​

A product is shared details (title, brand, category, images, attributes) and at least one variant. Price, stock, stock code and barcode live on the variant. Every field the marketplaces (Trendyol, Hepsiburada, N11, Amazon) ask for is here; send the product right once and it goes on to linked channels from there.

Full example: a product on two axes ​

Work overalls on Renk (colour) × Beden (size). Not every combination has to exist; leave out the ones you don't sell.

json
{
  "title": "Çalışma Tulumu",
  "subtitle": "Çok cepli, ter tutmayan pamuk",
  "description": "Gabardin pamuklu kumaş. Diz cepli, reflektör şeritli.",
  "brand": "Usta İş",
  "model_code": "TLM-100",
  "category_id": "pcat_…",
  "status": "published",
  "deliveries": ["cargo", "with_service"],
  "tax_rate": 20,
  "desi": 2,
  "images": [
    "https://cdn.example.com/tlm-100-lacivert.jpg",
    "https://cdn.example.com/tlm-100-arka.jpg"
  ],
  "attributes": [
    { "name": "Materyal", "value": "Pamuk" },
    { "name": "Cinsiyet", "value": "Unisex" }
  ],
  "axes": [
    { "title": "Renk", "values": ["Lacivert", "Gri"] },
    { "title": "Beden", "values": ["M", "L"] }
  ],
  "variants": [
    {
      "sku": "TLM-100-LAC-M",
      "barcode": "8680000000011",
      "price": 749.9,
      "list_price": 899.9,
      "stock": 25,
      "options": { "Renk": "Lacivert", "Beden": "M" }
    },
    {
      "sku": "TLM-100-LAC-L",
      "barcode": "8680000000028",
      "price": 749.9,
      "list_price": 899.9,
      "stock": 12,
      "options": { "Renk": "Lacivert", "Beden": "L" }
    },
    {
      "sku": "TLM-100-GRI-M",
      "barcode": "8680000000035",
      "price": 729.9,
      "list_price": 899.9,
      "stock": 0,
      "options": { "Renk": "Gri", "Beden": "M" },
      "images": ["https://cdn.example.com/tlm-100-gri.jpg"]
    },
    {
      "sku": "TLM-100-GRI-L",
      "barcode": "8680000000042",
      "price": 729.9,
      "stock": 7,
      "options": { "Renk": "Gri", "Beden": "L" },
      "images": ["https://cdn.example.com/tlm-100-gri.jpg"]
    }
  ]
}

Product fields ​

FieldRequiredRule
titleyes2–120 characters
subtitle160 characters at most
description4000 characters at most; line breaks are kept
brandBrand name, 80 at most. Created when missing; case and Turkish letters do not make a new brand (GET /seller/brands)
model_codeCode grouping the variants (Trendyol productMainId), 64 at most; letters, digits, . _ -
category_idyes (may be null)An id from GET /seller/categories
statusyespublished or draft. published needs the category's required attributes
deliveriesyescargo and/or with_service (the usta brings it to the job)
tax_rateyesVAT percent: 0, 1, 10 or 20
desi0–10000 (shipping volume); most marketplaces need it for cargo
imagesyes (may be empty)8 https:// URLs at most; the first is the cover. Must be publicly reachable
attributes{ name, value }, 60 at most; no name twice
axesVariant axes, 3 at most (e.g. Renk, Beden, Kapasite). See below
variantsyes1–100 variants

Variant fields ​

FieldRequiredRule
skuyesYour stock code, 64 at most. Unique per seller; matching is done by it
barcode40 at most; letters, digits, . _ -. Unique within the product and the seller. A GTIN/EAN is recommended: Trendyol, Hepsiburada and Amazon require a barcode
priceyesSale price, TRY, VAT included, at most two decimals (1299.90)
list_priceCrossed-out list price; never below price
stockyesUnits on the shelf, whole number 0–100000
optionswith axesAxis name → value; exactly one value of each axis
imagesVariant pictures (e.g. per colour), 8 at most. Empty → the product's pictures are used

Axes and variants ​

  • A single-variant product is a plain product: send no axes and no options.
  • Without axes they are derived from the variants' options keys. Sending them explicitly lets you set the order of values.
  • Every variant picks exactly one value of each axis; the value must be in the axis's values, and no two variants may share a combination. Otherwise it is a variants.N.options problem.
  • A variant's display name comes from its axis values: Lacivert / M.
  • Axes cannot change later. Adding or removing an axis gets 409 CATALOG_AXES_CHANGED; delete the product and add it again. Adding a value to an axis (e.g. a new size) is fine.

Matching: new or update? ​

A product you send is looked up in this order:

  1. If you have a product with the same model_code, that one is updated.
  2. Otherwise the product holding any of the variants' stock codes (sku).
  3. If neither exists, a new product is created.

An update rewrites the product: variants not sent are deleted, optional fields not sent are cleared. If only stock and prices change, use PUT /seller/offers, not the product.

A stock code used on another of your products gets 409 CATALOG_SKU_TAKEN (skus), a barcode 409 CATALOG_BARCODE_TAKEN (barcodes).

Single-product endpoints ​

EndpointWhat it does
GET /seller/products/{id}The product, its variants, stock and available
PUT /seller/products/{id}Rewrites the product at once (no job) with the same body; variants match by sku
DELETE /seller/products/{id}Removes the product from the shop and linked marketplaces; past orders are unaffected

When reading ​

GET endpoints return the product with these extra fields: id, seller_id, handle, category_name, brand_id, created_at, updated_at; on a variant id, title and available (sellable units, reservations taken off).