1. Wiki
  2. API
  3. Рекомендации по машине

Рекомендации по машине

URL метода

GET/POST car/get_recommendations/

Например:
https://(ваша компания).stocrm.ru/api/external/v1/car/get_recommendations?SID=666_abcdefgh

Параметры:

Параметр Тип Описание
CAR_PROFILE_ID int ID профиля машины

Пример полученных данных:

1    {
2      "RESPONSE": {
3        "257": {
4          "RECOMMENDATION_ID": 257,
5          "HODL_ID": 1,
6          "CAR_PROFILE_ID": 15,
7          "TYPE": "WORK",
8          "OFFER_ID": 1445,
9          "WORK_ID": 1248,
10         "WORK_ID_VIRTUAL": "1248",
11         "REQUIRE_ID": false,
12         "REQUIRE_ID_VIRTUAL": "N",
13         "ORDER_ID": false,
14         "ORDER_ID_VIRTUAL": "N",
15         "STATE": "A",
16         "DATE_CREATE": "2019-09-30 16:21:37",
17         "DATE_UPDATE": "2019-09-30 16:21:37",
18         "CREATOR_ID": 5,
19         "UPDATER_ID": 5,
20         "WORK": {
21           "WORK_ID": 1248,
22           "OFFER_ID": 1445,
23           "CUSTOMER_ID": 2,
24           "TYPE": "FF_RECOMMENDATION",
25           "DESCRIPTION": "чистка салона",
26           "WORKING_HOUR": "1.000",
27           "DISCOUNT": "1.000000",
28           "WORK_COMPLETENESS_ID": 4,
29           "PRICE_OF_HOUR": "1000.00",
30           "SUM": "1000.0000",
31           "SUM_WO_HOURS": "1000.0000000000",
32           "id_car_modification": 170895,
33           "WORK_OBJECT_ID": false,
34           "WORK_ACTION_ID": false,
35           "WORK_COEFFICIENT_ID": false,
36           "WORK_PLACE_BIT": [
37             512
38           ],
39           "WORK_OBJECT_COUNT_ID": 1,
40           "DATE_CREATE": "2019-09-30 16:21:35",
41           "DATE_UPDATE": "2019-09-30 16:21:37",
42           "CREATOR_ID": 5,
43           "UPDATER_ID": 5,
44           "DISCOUNT_PERCENT": "0.000000",
45           "WORK_ACTION_NAME": false,
46           "WORK_OBJECT_NAME": false,
47           "WORK_OBJECT_INFLECT_FLAG": false,
48           "WORK_OBJECT_INFLECT_CASE": false,
49           "WORK_OBJECT_INFLECT_AS_MULTIPLE": false,
50           "WORK_OBJECT_COUNT": "1.0",
51           "PERFORMERS": false,
52           "TITLE": "чистка салона",
53           "DOCUMENT_TITLE": "чистка салона"
54         }
55       }
56     },
57     "MESSAGE": "ok",
58     "CODE": 200
59   }
Обновлено Октябрь 23, 2019

Related Articles