GooglePlayGroup 3 Copy 2ShoppingBasket7Group 7Group 3

Информация о заведении

Запрос /api/companyInfo [POST] - получить общую информацию о заведении

Параметры запроса:

  • service - имя сервиса

Параметры ответа: объект ru.edgex.quickresto.modules.core.company.CompanyInfo - общая информация о заведении

Пример:

test@test:~$ curl -i -X POST -u test:test -H "Content-Type:application/json" -d '{"service":"testservice"}' http://test.quickresto.ru/platform/online/api/companyInfo
HTTP/1.1 200 OK
Server: nginx/1.4.6 (Ubuntu)
Date: Mon, 08 Feb 2016 09:02:40 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Set-Cookie: JSESSIONID=36D9B9236BDFAED83FF2BBFDE5F3224A; Path=/; HttpOnly

{"id":1,"permitNegativeBalances":true,"showObjectsId":false,"fullName":"Организация 1","org1Name":"Организация 1","org1NameShort":"test","nds1":true,"nds2":true,"maxDeviationOfPrices":30.0000,"terminalLogin":"admin","terminalPassword":"admin","pinLength":4,"generateDailyReport":false,"discount":"scale","markup":"scale","productBaseMeasureUnit":{"id":51,"version":0,"name":"кг","parentRatio":1.0000,"systemUnit":"KG","fullName":"Килограмм","isMainUnit":false,"code":"166","deleted":false,"title":"кг","system":true,"mainUnit":false,"permanent":true,"className":"ru.edgex.quickresto.modules.core.dictionaries.measureunits.MeasureUnit","_Level":0},"semiproductBaseMeasureUnit":{"id":51,"version":0,"name":"кг","parentRatio":1.0000,"systemUnit":"KG","fullName":"Килограмм","isMainUnit":false,"code":"166","deleted":false,"title":"кг","system":true,"mainUnit":false,"permanent":true,"className":"ru.edgex.quickresto.modules.core.dictionaries.measureunits.MeasureUnit","_Level":0},"modBaseMeasureUnit":{"id":53,"version":0,"name":"пц","parentRatio":1.0000,"systemUnit":"RATION","fullName":"Порция","isMainUnit":false,"code":"","deleted":false,"title":"пц","system":true,"mainUnit":false,"permanent":true,"className":"ru.edgex.quickresto.modules.core.dictionaries.measureunits.MeasureUnit","_Level":0},"dishBaseMeasureUnit":{"id":53,"version":0,"name":"пц","parentRatio":1.0000,"systemUnit":"RATION","fullName":"Порция","isMainUnit":false,"code":"","deleted":false,"title":"пц","system":true,"mainUnit":false,"permanent":true,"className":"ru.edgex.quickresto.modules.core.dictionaries.measureunits.MeasureUnit","_Level":0},"language":{"id":1,"version":0,"name":"Русский","kendoCulture":"ru-RU","title":"Русский","className":"ru.edgex.platform.service.language.Language","_Level":0},"reserveStarts":18000000,"reserveEnds":64800000,"reserveTimeout":15,"tableOrderDuration":60,"negativeBalanceContribution":"ONE","balancePrimeCost":"POSITIVE_AND_NEGATIVE","zeroBalanceContribution":"NIL","routeWithdrawMode":"BYROUTEWITHDRAWTYPE","actualBalancePrimeCost":"FUTURE","snapshotBalancePrimeCost":"BEFORE","primeCostCalculationMethod":"AVG_POSITIVE","title":"ru.edgex.quickresto.modules.core.company.CompanyInfo[id=1]","className":"ru.edgex.quickresto.modules.core.company.CompanyInfo","_Level":0}
Регистрируясь на сервисе Quick Resto, вы принимаете условия лицензионного соглашения
Подождите, происходит установка и настройка вашего облака.