Elmatajer · API docs
Products

Create a product

Creates a product with the same rules as the dashboard (plan limits included). Send multipart/form-data to upload images, or JSON without them and add images later.

POSThttps://elmatajer.com/api/v1/vendor/products
Permission: products.write

Request body

NameTypeRequiredDescription
namestringYesProduct name (Arabic or your main language).
pricenumberYesSelling price.
category_idsinteger[]YesAt least one category id (List categories).
name_en, description, description_enstringNoEnglish name and descriptions (HTML allowed).
compare_pricenumberNoThe crossed-out price.
skustringNoYour code — used by Update stock by SKU.
manage_stock, stock_qty, low_qtybool / integerNoTrack stock and its quantity.
variants[]object[]Nocolor, size, price, qty, sku, compare_price per combination.
images[]file[]NoUp to 10 images (jpg, png, webp, 4 MB each) — multipart only.
is_availableboolNoShown in the store (default true).
slug, meta_title, meta_descriptionstringNoSEO fields.

Request

curl -X POST "https://elmatajer.com/api/v1/vendor/products" \
  -H "Api-Key: YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"name":"Cotton T-shirt","name_en":"Cotton T-shirt","price":299,"compare_price":349,"sku":"TS-001","category_ids":[74],"manage_stock":true,"stock_qty":40,"variants":[{"color":"Black","size":"L","price":299,"qty":10,"sku":"TS-001-BL-L"},{"color":"Black","size":"XL","price":299,"qty":8,"sku":"TS-001-BL-XL"}]}'

Response 200

{
    "status": "ok",
    "data": {
        "id": 22511,
        "name": "مجموعة مكعبات بناء",
        "name_en": "Building blocks set",
        "slug": "building-blocks-set",
        "sku": "BLK-01",
        "image": "https://cdn.elmatajer.com/…/blocks.webp",
        "images": [
            {
                "id": 81,
                "url": "https://cdn.elmatajer.com/…/blocks.webp"
            }
        ],
        "price": 120,
        "original_price": 132,
        "discount_pct": 9,
        "stock": {
            "state": "in",
            "qty": 31,
            "tracked": true,
            "low": 5
        },
        "category_ids": [
            74
        ],
        "is_available": true,
        "is_draft": false,
        "has_variants": false,
        "variants": [],
        "url": "https://your-store.elmatajer.com/detail-building-blocks-set",
        "created_at": "2026-10-01T10:00:00+03:00"
    }
}