Variable serve price
get
request
GET /api/v2/variable-serves/prices/1 HTTP/1.1
response
HTTP/1.1 200 OK
{
"id" : 1,
"name" : "1",
"keywords" : "",
"percent" : null,
"price" : 300.0,
"purchasing" : null,
"glassesMaterial" : null,
"glassesType" : null,
"glassesPriceFrom" : null,
"glassesPriceTo" : null,
"lensesMaterial" : null,
"lensesType" : null,
"lensesClass" : null,
"lensesIndex" : null,
"lensesSphFrom" : null,
"lensesSphTo" : null,
"lensesCylinderFrom" : null,
"lensesCylinderTo" : null,
"lensesAddidation" : null,
"lensesPriceFrom" : null,
"lensesPriceTo" : null,
"materialsPriceFrom" : null,
"materialsPriceTo" : 2000.0
}
list
request
GET /api/v2/variable-serves/prices?searchString=1 HTTP/1.1
response
HTTP/1.1 200 OK
[ {
"id" : 1,
"name" : "1",
"keywords" : "",
"percent" : null,
"price" : 300.0,
"purchasing" : null,
"glassesMaterial" : null,
"glassesType" : null,
"glassesPriceFrom" : null,
"glassesPriceTo" : null,
"lensesMaterial" : null,
"lensesType" : null,
"lensesClass" : null,
"lensesIndex" : null,
"lensesSphFrom" : null,
"lensesSphTo" : null,
"lensesCylinderFrom" : null,
"lensesCylinderTo" : null,
"lensesAddidation" : null,
"lensesPriceFrom" : null,
"lensesPriceTo" : null,
"materialsPriceFrom" : null,
"materialsPriceTo" : 2000.0
} ]
create
request
POST /api/v2/variable-serves/prices HTTP/1.1
{
"name" : "SPECIAL NAME FOR TESTS",
"percent" : null,
"price" : 500.0,
"purchasing" : 250.0,
"glassesMaterial" : null,
"glassesType" : null,
"glassesPriceFrom" : 1000.0,
"glassesPriceTo" : 50000.0,
"lensesMaterial" : "Поликарбонат",
"lensesType" : null,
"lensesClass" : null,
"lensesIndex" : null,
"lensesSphFrom" : null,
"lensesSphTo" : null,
"lensesCylinderFrom" : null,
"lensesCylinderTo" : null,
"lensesAddidation" : null,
"lensesPriceFrom" : null,
"lensesPriceTo" : null,
"materialsPriceFrom" : null,
"materialsPriceTo" : null
}
response
HTTP/1.1 200 OK
{
"id" : 3,
"name" : "SPECIAL NAME FOR TESTS",
"keywords" : "Поликарбонат",
"percent" : null,
"price" : 500.0,
"purchasing" : 250.0,
"glassesMaterial" : null,
"glassesType" : null,
"glassesPriceFrom" : 1000.0,
"glassesPriceTo" : 50000.0,
"lensesMaterial" : "Поликарбонат",
"lensesType" : null,
"lensesClass" : null,
"lensesIndex" : null,
"lensesSphFrom" : null,
"lensesSphTo" : null,
"lensesCylinderFrom" : null,
"lensesCylinderTo" : null,
"lensesAddidation" : null,
"lensesPriceFrom" : null,
"lensesPriceTo" : null,
"materialsPriceFrom" : null,
"materialsPriceTo" : null
}
update
request
PUT /api/v2/variable-serves/prices/999050 HTTP/1.1
{
"name" : "SPECIAL NAME FOR TESTS",
"percent" : null,
"price" : 500.0,
"purchasing" : 250.0,
"glassesMaterial" : null,
"glassesType" : null,
"glassesPriceFrom" : 1000.0,
"glassesPriceTo" : 50000.0,
"lensesMaterial" : null,
"lensesType" : null,
"lensesClass" : null,
"lensesIndex" : null,
"lensesSphFrom" : null,
"lensesSphTo" : null,
"lensesCylinderFrom" : null,
"lensesCylinderTo" : null,
"lensesAddidation" : null,
"lensesPriceFrom" : null,
"lensesPriceTo" : null,
"materialsPriceFrom" : null,
"materialsPriceTo" : null
}
response
HTTP/1.1 200 OK
{
"id" : 999050,
"name" : "SPECIAL NAME FOR TESTS",
"keywords" : "",
"percent" : null,
"price" : 500.0,
"purchasing" : 250.0,
"glassesMaterial" : null,
"glassesType" : null,
"glassesPriceFrom" : 1000.0,
"glassesPriceTo" : 50000.0,
"lensesMaterial" : null,
"lensesType" : null,
"lensesClass" : null,
"lensesIndex" : null,
"lensesSphFrom" : null,
"lensesSphTo" : null,
"lensesCylinderFrom" : null,
"lensesCylinderTo" : null,
"lensesAddidation" : null,
"lensesPriceFrom" : null,
"lensesPriceTo" : null,
"materialsPriceFrom" : null,
"materialsPriceTo" : null
}