API v2

POST https://client.host.fosci.cloud/api/menu-constructor/get-all-dish

Header name - Content-Type, Header value - application/x-www-form-urlencoded

Request Body

Name
Type
Description

api_token*

String

  {
"id": 64,
"name": "Чечевица с фетой, томатной сальсой и овощами",
"unit_id": "порц",
"protein": "11.4662",
"fat": "9.3583",
"carb": "21.1043",
"calor": "214.5065",
"exit": "0.2000",
"sticker_text": "Чечевица, редис красный, соус сальса, кабачки, сыр фета, фасоль стручковая, семена тыквы, масло подсолнечное. Срок годности: 24 часов при температуре +2-+4 с даты производства Изготовлено: 28.06.2022 01:00",
"image": ""
},

POST https://client.host.fosci.cloud/api/menu-constructor/get-client-auth

Request Body

Name
Type
Description

api_token*

String

phone*

String

email

String

{
"client_id": 1,
"auth": "a129dc4bfdu5efuwui70030e546e0"
}

POST https://client.host.fosci.cloud/api/menu-constructor/get-client-info

Request Body

Name
Type
Description

api_token*

String

auth*

String

client_id*

String

{{
"id": 1,
"first_name": "Анатолий",
"middle_name": "Васильевич",
"last_name": "Петров",
"sex": "MALE",
"birthday": "1987-03-20",
"phone": "79090000000",
"mobile_phone": "",
"email": "[email protected]",
"height": null,
"weight": null,
"delivery_weekday_address": "Кремль",
"delivery_weekday_time_start": "09:00:00",
"delivery_weekday_time_finish": "10:00:00",
"delivery_weekend_address": "Кремль",
"delivery_weekend_time_start": "09:00:00",
"delivery_weekend_time_finish": "10:00:00",
"delivery_cost_weekday": null,
"delivery_cost_weekend": null,
"balance": "15500.0000"
}

POST https://client.host.fosci.cloud/api/menu-constructor/get-client-fin-info

Request Body

Name
Type
Description

api_token*

String

auth*

String

client_id*

String

date_from*

String

date_to*

String

{
"name": "День питания",
"operation_type": "Продажа услуги питания",
"document_type": "Акт оказания услуг",
"template_entry": "Акт оказания услуг - Продажа услуги питания",
"from_account": "Расчеты с покупателями и заказчиками",
"to_account": "Выручка",
"from_subcount_1": "Клиенты",
"to_subcount_1": "Статьи доходов",
"count": "1.0000",
"price": "1500.00",
"cost": "1500.00",
"total": "1500.00",
"VAT_rate": null,
"date": "2021-09-21"
},

POST https://client.host.fosci.cloud/api/menu-constructor/get-client-food-calendar

Request Body

Name
Type
Description

api_token*

String

auth*

String

client_id*

String

date_from*

String

date_to*

String

{
"id": "1",
"client_id": "1",
"market_subprogram": "Мощные 1200",
"product_program": null,
"promo_code": null,
"cost": "1500.00",
"discount_amount": "0.00",
"date": "2021-09-20",
"real_date": null,
"ration": "1",
"delivery_cost": null,
"delivery_address": null,
"delivery_address_latitude": null,
"delivery_address_longitude": null,
"delivery_time_start": null,
"delivery_time_finish": null,
"customer_cost": null,
"status": "Client eats"
},

POST https://client.host.fosci.cloud/api/menu-constructor/get-client-food-calendar-current

Return food calendar from current date

Request Body

Name
Type
Description

api_token*

String

auth*

String

client_id*

String

{
"id": "1126",
"client_id": "1",
"market_subprogram": "Проработка",
"product_program": "Проработка",
"promo_code": null,
"cost": "25000.00",
"discount_amount": "0.00",
"date": "2022-07-11",
"real_date": null,
"ration": "1",
"delivery_address": null,
"delivery_time_start": null,
"delivery_time_finish": null,
"customer_cost": null,
"status": "Client eats"
},

POST https://client.host.fosci.cloud/api/menu-constructor/update-client-food-calendar-current

Request Body

Name
Type
Description

api_token*

String

auth*

String

client_id*

String

date*

String

ration*

String

delivery_address

String

delivery_time_start

Time

15:00

delivery_time_finish

Time

16:00

market_subprogram

String

product_program

String

status

String

1 - delete, 2 - not approved, 3 - not eat, 4 - eat

customer_cost

String

{
    // Response
}

POST https://client.host.fosci.cloud/api/menu-constructor/check-payment

Request Body

Name
Type
Description

api_token*

String

auth*

String

client_id*

String

date*

String

outside_invoice_number

String

{
"client_id": 1,
"paid_date": null,
"invoice_id": 4,
"amount": "149000.00",
"paid": 0
}

POST https://client.host.fosci.cloud/api/menu-constructor/create-client-invoice

Request Body

Name
Type
Description

api_token*

String

client_id*

String

auth*

String

date*

String

amount*

String

invoice_type_id*

String

1 - cash, 2 - bank card, 3 - online payment

outside_invoice_number

String

POST https://client.host.fosci.cloud/api/menu-constructor/change-food-calendar-days

Request Body

Name
Type
Description

api_token*

String

client_id*

String

auth*

String

ration*

String

date_old*

String

date_new*

String

GET https://client.host.fosci.cloud/api/menu-constructor/get-product-program

в заголовке передавать в Referer передавать адрес сайта с которого идет запрос, так как в системе есть настройка для какого хоста какие программы отдавать

Query Parameters

Name
Type
Description

market_program_id*

String

GET https://client.host.fosci.cloud/api/menu-constructor/get-price-product-program

Path Parameters

Name
Type
Description

product_program_id*

int

GET https://client.host.fosci.cloud/api/menu-constructor/check-promocode

Path Parameters

Name
Type
Description

promocode*

String

Last updated

Was this helpful?