Order cancel
get client materials
request
GET /api/v2/orders/1000900205/cancel/glasses/client-materials HTTP/1.1
Parameter | Description |
---|---|
|
order id |
response
HTTP/1.1 200 OK
{
"frame" : {
"id" : 1000900205,
"description" : "",
"type" : "Лесочная",
"material" : "Металл",
"estimatedPrice" : 4500.0
},
"odLens" : {
"id" : 1000095100,
"add" : null,
"brand" : null,
"color" : null,
"cover" : null,
"cylinderDioptre" : null,
"diameter" : null,
"dioptre" : -0.5,
"geometry" : null,
"lensClass" : null,
"manufacturer" : null,
"material" : null,
"refractionIndex" : null,
"technology" : null,
"type" : null,
"estimatedPrice" : 1000.0
},
"osLens" : {
"id" : 1000095101,
"add" : null,
"brand" : null,
"color" : null,
"cover" : null,
"cylinderDioptre" : null,
"diameter" : null,
"dioptre" : -0.5,
"geometry" : null,
"lensClass" : null,
"manufacturer" : null,
"material" : null,
"refractionIndex" : null,
"technology" : null,
"type" : null,
"estimatedPrice" : 1000.0
}
}
get cancellable goods
request
GET /api/v2/orders/1000900205/cancel/goods HTTP/1.1
Parameter | Description |
---|---|
|
order id |
response
HTTP/1.1 200 OK
[ {
"className" : "AccessoryResponse",
"id" : 9000500997,
"retailPrice" : 1000.0,
"purchasingPrice" : 150.0,
"soldPrice" : 1000.0,
"baseSalePrice" : null,
"sellableCategory" : "ACCESSORY",
"expected" : false,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "IN_DEPARTMENT",
"accessoryCategory" : "Не маркируемые товары",
"model" : "с перфорацией",
"orderId" : null
}, {
"className" : "SunglassesResponse",
"id" : 9000500998,
"retailPrice" : 1000.0,
"purchasingPrice" : 150.0,
"soldPrice" : 1000.0,
"baseSalePrice" : null,
"sellableCategory" : "SUNGLASSES",
"expected" : false,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "IN_DEPARTMENT",
"manufacturer" : "Китай",
"brand" : "Kiddes",
"color" : null,
"model" : "0135",
"targetGroup" : "Унисекс",
"material" : "Комбинированная",
"frameType" : "Винтовая",
"lensesType" : "-",
"design" : null,
"orderId" : null
}, {
"className" : "GlassesResponse",
"id" : 9000500999,
"retailPrice" : 1000.0,
"purchasingPrice" : 150.0,
"soldPrice" : 1000.0,
"baseSalePrice" : null,
"sellableCategory" : "GLASSES",
"expected" : false,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "IN_DEPARTMENT",
"manufacturer" : "Англия",
"brand" : "365 Day",
"color" : null,
"model" : "1006 C3",
"targetGroup" : "Мужская",
"material" : "Комбинированная",
"type" : "Винтовая",
"size" : "55-15-150",
"design" : null,
"orderId" : null
}, {
"className" : "LensResponse",
"id" : 9000501000,
"retailPrice" : 1000.0,
"purchasingPrice" : 150.0,
"soldPrice" : 1000.0,
"baseSalePrice" : null,
"sellableCategory" : "LENS",
"expected" : false,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "IN_DEPARTMENT",
"manufacturer" : "BBGR",
"brand" : "Extenso 10 OR",
"color" : null,
"cover" : "CC STOK",
"addidation" : null,
"cylinderDioptre" : null,
"dioptre" : -1.0,
"refractionIndex" : 1.5,
"diameter" : 55,
"partOfOrder" : null,
"inProduction" : null,
"inOtherDepartment" : null,
"material" : "CR-39",
"geometry" : "BC 3",
"type" : "Однофокальная",
"lensClass" : "Поляризационная фотохромная",
"technology" : null,
"dioptresFrom" : null,
"dioptresTo" : null,
"cylinderFrom" : null,
"cylinderTo" : null,
"semifinishedLensId" : null,
"orderId" : null
}, {
"className" : "ExtrasResponse",
"id" : 9000501001,
"retailPrice" : 1000.0,
"purchasingPrice" : 150.0,
"soldPrice" : 1000.0,
"baseSalePrice" : null,
"sellableCategory" : "EXTRA",
"expected" : false,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : "IN_DEPARTMENT",
"extrasDesc" : {
"className" : "ExtrasDescResponse",
"id" : 9000501001,
"retailPrice" : 1000.0,
"purchasingPrice" : 150.0,
"soldPrice" : 1000.0,
"baseSalePrice" : null,
"sellableCategory" : "EXTRA",
"expected" : false,
"barcode" : null,
"factory" : false,
"departmentName" : null,
"goodsStatus" : null,
"frameManufacturer" : "Китай",
"frameTargetGroup" : "Жен.",
"frameMaterial" : "Металл",
"frameType" : "Винтовая",
"odCylinderDioptre" : null,
"osCylinderDioptre" : null,
"odAdd" : null,
"osAdd" : null,
"frameBrand" : "ELNINO",
"frameColor" : null,
"frameModel" : "17Q002A C1",
"odDioptre" : -0.5,
"osDioptre" : -1.0,
"orderId" : null
},
"createdOn" : null,
"dpp" : null,
"glasses" : null,
"odLens" : null,
"osLens" : null,
"orderId" : null
} ]
Path | Type | Description |
---|---|---|
|
|
id |
|
|
Цена товара без скидок |
|
|
Цена товара со всеми скидками |
|
|
Категория товара (Линзы, очки и т.д.) |
cancel glasses order
request
PUT /api/v2/orders/1000900205/cancel/glasses HTTP/1.1
{
"cash" : 0.0,
"card" : 2500.0,
"cancelFrame" : true,
"cancelOdLens" : true,
"cancelOsLens" : true,
"comment" : "Some useful comment"
}
Parameter | Description |
---|---|
|
order id |
response
HTTP/1.1 200 OK
cancel contact lens order
request
PUT /api/v2/orders/1000900405/cancel/contact-lens HTTP/1.1
{
"cash" : 1500.0,
"card" : 1000.0,
"comment" : "Some useful comment"
}
Parameter | Description |
---|---|
|
order id |
response
HTTP/1.1 200 OK