Mahsulot yaratish
Mahsulot yaratish
POST
/v1/product/create
Ushbu API Fulfillment tizimida yangi mahsulotni yaratish uchun mo‘ljallangan. Mahsulot yaratish jarayonida uning asosiy ma’lumotlari tizimga kiritiladi va keyingi logistika hamda buyurtma jarayonlarida foydalanish uchun tayyor holatga keltiriladi.
REQUEST
Request Body
{
"supplier_buyer_id": 1,
"client_product_variation_id": 1,
"group": "Продукты питания",
"code": "PRD-001",
"client_product_id": 12340,
"name": "Молоко пастеризованное 3.2%",
"full_name": "Молоко пастеризованное 3.2%, 1 литр",
"gtin": "1234567890123",
"article": "MLK3201",
"nomenclature_type": "Продукты",
"unit": "литр",
"shelf_life_stock": "90 дней",
"kis_code": "KIS-001",
"is_set": "Нет",
"weight": "1.05",
"net_weight": "1.00",
"volume": "1.1",
"net_volume": "1.0",
"specification": "Молочные продукты, пастеризованные",
"temperature_mode": "+2°C до +6°C",
"base_packaging": "Тетра Пак",
"abc_class": "A",
"comment": "Хранить в прохладном месте",
"name_eng": "Pasteurized Milk 3.2%",
"tsd_name": "Milk TSD",
"depositor": "ООО Молочная ферма",
"default_status": "Активный",
"billing_packaging": "1 литр",
"report_packaging": "1 литр",
"min_shelf_life_stock": "30 дней",
"seasonal_abc_coefficient": "1.2",
"shelf_life_deviation_days": 5,
"shelf_life_period": 90,
"min_shelf_life_period": 30,
"shelf_life_deviation_period": 5,
"storage_period_days": 90
}
| Field | Type | Description |
|---|---|---|
supplier_buyer_id |
integer | Yetkazib beruvchi yoki xaridor identifikatori |
client_product_variation_id |
integer | Mahsulot variatsiyasi identifikatori |
group |
string | Mahsulot guruhi yoki kategoriyasi |
name |
string | Mahsulotning yagona kodi |
client_product_id |
integer | Klient mahsuloti identifikatori |
name |
string | Mahsulot nomi |
full_name |
string | Mahsulotning to‘liq nomi |
gtin |
string | Mahsulotning global GTIN kodi |
article |
string | Mahsulotning ichki artikul kodi |
nomenclature_type |
string | Mahsulot nomenklatura turi |
unit |
string | Mahsulot o‘lchov birligi |
shelf_life_stock |
integer | Ombordagi saqlash muddati (kunlarda) |
kis_name |
string | Mahsulotning KIS kodi |
is_set |
boolean | Mahsulot to‘plam ekanligini bildiradi |
weight |
float | Mahsulotning brutto og‘irligi |
net_weight |
float | Mahsulotning netto og‘irligi |
volume |
float | Mahsulot hajmi |
net_volume |
float | Mahsulotning netto hajmi |
specification |
string | Mahsulot texnik tavsifi |
temperature_mode |
string | Saqlash uchun harorat rejimi |
base_packaging |
string | Asosiy qadoqlash turi |
abc_class |
string | Mahsulotning ABC klassi |
comment |
string | Mahsulot bo‘yicha izoh |
name_eng |
string | Mahsulotning inglizcha nomi |
tsd_name |
string | TSD uchun mahsulot nomi |
depositor |
string | Mahsulot depozit qiluvchi tashkilot |
default_status |
string | Mahsulotning standart holati |
billing_packaging |
string | Hisob-kitob uchun qadoqlash |
report_packaging |
string | Hisobot uchun qadoqlash |
min_shelf_life_stock |
integer | Minimal saqlash muddati (kun) |
seasonal_abc_coefficient |
float | Mavsumiy ABC koeffitsiyent |
shelf_life_deviation_days |
integer | Saqlash muddati og‘ishi (kun) |
shelf_life_period |
integer | Saqlash muddati (kun) |
min_shelf_life_period |
integer | Minimal saqlash muddati (kun) |
shelf_life_deviation_period |
integer | Saqlash muddati og‘ish davri |
storage_period_days |
integer | Umumiy saqlash muddati (kun) |
RESPONSE
200
Record successfully created.
Masalan: Record successfully created..
Content-Type:
application/json
Response Body
{
"message": "Record successfully created.",
"data": {
"id": 6,
"supplier_buyer_id": 4,
"group": "Продукты питания",
"code": "PRD-001",
"name": "Молоко пастеризованное 3.2%",
"full_name": "Молоко пастеризованное 3.2%, 1 литр",
"gtin": "1234567890123",
"article": "MLK3201",
"nomenclature_type": "Продукты",
"unit": "литр",
"client_product_id": 12340,
"comment": "Хранить в прохладном месте",
"productPackagin": {
"id": 1,
"product_id": 6,
"base_packaging": "Тетра Пак",
"billing_packaging": "1 литр",
"report_packaging": "1 литр"
},
"productShelfLive": {
"id": 1,
"product_id": 6,
"shelf_life_stock": "90.00",
"min_shelf_life_stock": "30.00",
"shelf_life_deviation_days": 5,
"shelf_life_period": 90,
"min_shelf_life_period": 30,
"shelf_life_deviation_period": 5,
"storage_period_days": 90,
"specification": "Молочные продукты, пастеризованные",
"temperature_mode": "+2°C до +6°C"
},
"productTechnical": {
"id": 1,
"product_id": 6,
"weight": "1.050",
"net_weight": "1.000",
"volume": "1.100",
"net_volume": "1.000",
"is_set": true,
"kis_code": "KIS-001",
"default_status": "Активный"
},
"_links": {
"self": {
"href": "http://localhost:8070/v1/product/view?id=6"
}
}
}
}
| Field | Type | Description |
|---|---|---|
message * |
string | Amaliyot muvaffaqiyatli bajarilganligi haqida xabar |
data * |
object | Yaratilgan mahsulot haqida to‘liq ma’lumot |
id * |
integer | Mahsulotning ichki identifikatori |
supplier_buyer_id * |
integer | Yetkazib beruvchi yoki xaridor identifikatori |
group * |
string | Mahsulot guruhi yoki kategoriyasi |
code * |
string | Mahsulotning yagona kodi |
name * |
string | Mahsulot nomi |
full_name * |
string | Mahsulotning to‘liq nomi |
gtin * |
string | Mahsulotning global GTIN kodi |
article * |
string | Mahsulotning ichki artikul kodi |
nomenclature_type * |
string | Mahsulot nomenklatura turi |
unit * |
string | Mahsulot o‘lchov birligi |
client_product_id * |
integer | Klient mahsuloti identifikatori |
comment |
string | Mahsulot bo‘yicha izoh |
productPackagin * |
object | Mahsulot qadoqlash ma’lumotlari |
productShelfLive * |
object | Mahsulot saqlash muddati va shartlari |
productTechnical * |
object | Mahsulotning texnik xususiyatlari |
_links * |
object | Mahsulotga oid havolalar |
self * |
string | Mahsulotni ko‘rish uchun havola |