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.
{
"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
| Field | Required | Rule |
|---|---|---|
title | yes | 2–120 characters |
subtitle | 160 characters at most | |
description | 4000 characters at most; line breaks are kept | |
brand | Brand name, 80 at most. Created when missing; case and Turkish letters do not make a new brand (GET /seller/brands) | |
model_code | Code grouping the variants (Trendyol productMainId), 64 at most; letters, digits, . _ - | |
category_id | yes (may be null) | An id from GET /seller/categories |
status | yes | published or draft. published needs the category's required attributes |
deliveries | yes | cargo and/or with_service (the usta brings it to the job) |
tax_rate | yes | VAT percent: 0, 1, 10 or 20 |
desi | 0–10000 (shipping volume); most marketplaces need it for cargo | |
images | yes (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 | |
axes | Variant axes, 3 at most (e.g. Renk, Beden, Kapasite). See below | |
variants | yes | 1–100 variants |
Variant fields
| Field | Required | Rule |
|---|---|---|
sku | yes | Your stock code, 64 at most. Unique per seller; matching is done by it |
barcode | 40 at most; letters, digits, . _ -. Unique within the product and the seller. A GTIN/EAN is recommended: Trendyol, Hepsiburada and Amazon require a barcode | |
price | yes | Sale price, TRY, VAT included, at most two decimals (1299.90) |
list_price | Crossed-out list price; never below price | |
stock | yes | Units on the shelf, whole number 0–100000 |
options | with axes | Axis name → value; exactly one value of each axis |
images | Variant 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
axesand nooptions. - Without
axesthey are derived from the variants'optionskeys. 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 avariants.N.optionsproblem. - 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:
- If you have a product with the same
model_code, that one is updated. - Otherwise the product holding any of the variants' stock codes (
sku). - 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
| Endpoint | What 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).