Cart goods
scan barcode
Сканирование штрихкода. Возвращает товар, но не добавляет его в корзину
request
POST /api/v2/carts/ec5754b4-8602-4ac9-b5f9-a0d36165928a/scan HTTP/1.1
{
"barcode" : "1000012219"
}
response
HTTP/1.1 200 OK
{
"className" : "ContactLensResponse",
"id" : 1000012219,
"retailPrice" : 1190.0,
"purchasingPrice" : 700.0,
"soldPrice" : null,
"baseSalePrice" : 700.0,
"sellableCategory" : "CONTACT_LENS",
"expected" : false,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "IN_DEPARTMENT",
"manufacturer" : "Johnson&Johnson",
"name" : "Acuvue Oasys",
"color" : null,
"curvatureRadius" : 8.4,
"diameter" : 14.0,
"wearingPeriod" : "2 недели",
"dioptre" : -8.0,
"cylinder" : null,
"axis" : null,
"add" : null,
"packageQuantity" : 6,
"currentQuantity" : 6,
"restQuantity" : 6,
"onlyFullPackages" : false,
"dioptresFrom" : null,
"dioptresTo" : null,
"cylinderFrom" : null,
"cylinderTo" : null,
"expireOnFrom" : null,
"expireOnTo" : null,
"matchPrescription" : null,
"brandName" : "Acuvue Oasys",
"manufacturerName" : "Johnson&Johnson",
"orderId" : null,
"expireAt" : null
}
Path | Type | Description |
---|---|---|
|
|
id |
|
|
Цена товара без скидок |
|
|
Категория товара (Линзы, очки и т.д.) |
|
|
Товар под консигнацию |
|
|
Товар upc |
add goods
Сканирование товара и добавление в корзину
request
PUT /api/v2/carts/70805744-b0c3-45d7-83ac-eb9ae2133df3/goods HTTP/1.1
{
"barcode" : "1000012221",
"count" : 3
}
Parameter | Description |
---|---|
|
UUID корзины |
response
HTTP/1.1 200 OK