SaveText.Ru

Без имени
  1. Запрос истории
  2.  
  3. https://kbmplus.pw/web/index.php?r=api/history&access-token=Y_-i5XfTwLsbAX4QWBjO&id=220411
  4.  
  5. 220411 - это номер заявки. Токен подставить свой.
  6.  
  7. Номера КБМ
  8.  
  9.  
  10.         '1' => [
  11.             'id' => '1',
  12.             'descr' => '2.45',
  13.             'full_descr' => '2.45',
  14.         ],
  15.         '2' => [
  16.             'id' => '2',
  17.             'descr' => '2.3',
  18.             'full_descr' => '2.3',
  19.         ],
  20.         '3' => [
  21.             'id' => '3',
  22.             'descr' => '1.55',
  23.             'full_descr' => '1 (1.55)',
  24.         ],
  25.         '4' => [
  26.             'id' => '4',
  27.             'descr' => '1.4',
  28.             'full_descr' => '2 (1.4)',
  29.         ],
  30.         '5' => [
  31.             'id' => '5',
  32.             'descr' => '1',
  33.             'full_descr' => '3 (1)',
  34.         ],
  35.         '6' => [
  36.             'id' => '6',
  37.             'descr' => '0.95',
  38.             'full_descr' => '4 (0.95)',
  39.         ],
  40.         '7' => [
  41.             'id' => '7',
  42.             'descr' => '0.9',
  43.             'full_descr' => '5 (0.9)',
  44.         ],
  45.         '8' => [
  46.             'id' => '8',
  47.             'descr' => '0.85',
  48.             'full_descr' => '6 (0.85)',
  49.         ],
  50.         '9' => [
  51.             'id' => '9',
  52.             'descr' => '0.8',
  53.             'full_descr' => '7 (0.8)',
  54.         ],
  55.         '10' => [
  56.             'id' => '10',
  57.             'descr' => '0.75',
  58.             'full_descr' => '8 (0.75)',
  59.         ],
  60.         '11' => [
  61.             'id' => '11',
  62.             'descr' => '0.7',
  63.             'full_descr' => '9 (0.7)',
  64.         ],
  65.         '12' => [
  66.             'id' => '12',
  67.             'descr' => '0.65',
  68.             'full_descr' => '10 (0.65)',
  69.         ],
  70.         '13' => [
  71.             'id' => '13',
  72.             'descr' => '0.6',
  73.             'full_descr' => '11 (0.6)',
  74.         ],
  75.         '14' => [
  76.             'id' => '14',
  77.             'descr' => '0.55',
  78.             'full_descr' => '12 (0.55)',
  79.         ],
  80.         '15' => [
  81.             'id' => '15',
  82.             'descr' => '0.5',
  83.             'full_descr' => '13 (0.5)',
  84.         ],
  85.         '16' => [
  86.             'id' => '16',
  87.             'descr' => 'нет в базе',
  88.             'full_descr' => 'нет в базе',
  89.         ],
  90.         '17' => [
  91.             'id' => '17',
  92.             'descr' => 'ошибка',
  93.             'full_descr' => 'ошибка',
  94.         ],
  95.         '18' => [
  96.             'id' => '18',
  97.             'descr' => 'есть кбм+',
  98.             'full_descr' => 'есть кбм+',
  99.         ],
  100.         '19' => [
  101.             'id' => '19',
  102.             'descr' => 'ош_срок',
  103.             'full_descr' => 'ош_срок',
  104.         ],             
  105.     ];
  106.  
  107. Образец ответа.
  108. period - это дата на которую делался запрос.
  109. "dlt":"c" - это текущие ву
  110. "dlt":"o" - это старые ву
  111.  
  112.  
  113. [{"id":2085250,"created_at":"2020-03-27 22:18:33","updated_at":"2020-03-27 22:18:33","query_id":272326,"period":"2020-03-27","kbm":12,"dlt":"c","loss_date":null,"loss_amount":0,"loss_police":"","police":"0    "},{"id":2085251,"created_at":"2020-03-27 22:18:36","updated_at":"2020-03-27 22:18:36","query_id":272326,"period":"2020-01-31","kbm":12,"dlt":"c","loss_date":null,"loss_amount":0,"loss_police":"","police":"0    "},{"id":2085252,"created_at":"2020-03-27 22:18:38","updated_at":"2020-03-27 22:18:38","query_id":272326,"period":"2019-01-31","kbm":8,"dlt":"c","loss_date":null,"loss_amount":0,"loss_police":"","police":"0.9 ХХХ 0018969549 22.11.2017 АЛЬФА-СТРАХОВАНИЕ"},{"id":2085253,"created_at":"2020-03-27 22:18:41","updated_at":"2020-03-27 22:18:41","query_id":272326,"period":"2018-01-31","kbm":7,"dlt":"c","loss_date":null,"loss_amount":0,"loss_police":"","police":"0.95 ЕЕЕ 0389560004 08.11.2016 СОГАЗ"},{"id":2085254,"created_at":"2020-03-27 22:18:43","updated_at":"2020-03-27 22:18:43","query_id":272326,"period":"2017-01-31","kbm":9,"dlt":"c","loss_date":null,"loss_amount":0,"loss_police":"","police":"0.85 ЕЕЕ 0715386797 25.12.2015 РОСГОССТРАХ"},{"id":2085255,"created_at":"2020-03-27 22:18:46","updated_at":"2020-03-27 22:18:46","query_id":272326,"period":"2016-01-31","kbm":8,"dlt":"c","loss_date":null,"loss_amount":0,"loss_police":"","police":"0.9 ССС 0702809035 25.12.2014 РОСГОССТРАХ"},{"id":2085256,"created_at":"2020-03-27 22:18:48","updated_at":"2020-03-27 22:18:48","query_id":272326,"period":"2015-01-31","kbm":7,"dlt":"c","loss_date":null,"loss_amount":0,"loss_police":"","police":"0.95 ССС 0668324736 05.11.2013 АЛЬЯНС"},{"id":2085257,"created_at":"2020-03-27 22:18:51","updated_at":"2020-03-27 22:18:51","query_id":272326,"period":"2014-01-31","kbm":6,"dlt":"c","loss_date":null,"loss_amount":0,"loss_police":"","police":"1 ВВВ 0628774300 29.08.2012 РОССИЯ"},{"id":2085258,"created_at":"2020-03-27 22:18:53","updated_at":"2020-03-27 22:18:53","query_id":272326,"period":"2013-01-31","kbm":7,"dlt":"c","loss_date":null,"loss_amount":0,"loss_police":"","police":"0.95 ВВВ 0549242902 11.11.2011 РОСГОССТРАХ"},{"id":2085259,"created_at":"2020-03-27 22:18:56","updated_at":"2020-03-27 22:18:56","query_id":272326,"period":"2020-03-27","kbm":12,"dlt":"o","loss_date":null,"loss_amount":0,"loss_police":"","police":"0    "},{"id":2085260,"created_at":"2020-03-27 22:18:58","updated_at":"2020-03-27 22:18:58","query_id":272326,"period":"2020-01-31","kbm":12,"dlt":"o","loss_date":null,"loss_amount":0,"loss_police":"","police":"0    "},{"id":2085261,"created_at":"2020-03-27 22:19:01","updated_at":"2020-03-27 22:19:01","query_id":272326,"period":"2019-01-31","kbm":8,"dlt":"o","loss_date":null,"loss_amount":0,"loss_police":"","police":"0.9 ХХХ 0018969549 22.11.2017 АЛЬФА-СТРАХОВАНИЕ"},{"id":2085262,"created_at":"2020-03-27 22:19:03","updated_at":"2020-03-27 22:19:03","query_id":272326,"period":"2018-01-31","kbm":7,"dlt":"o","loss_date":null,"loss_amount":0,"loss_police":"","police":"0.95 ЕЕЕ 0389560004 08.11.2016 СОГАЗ"},{"id":2085264,"created_at":"2020-03-27 22:19:06","updated_at":"2020-03-27 22:19:06","query_id":272326,"period":"2017-01-31","kbm":9,"dlt":"o","loss_date":null,"loss_amount":0,"loss_police":"","police":"0.85 ЕЕЕ 0715386797 25.12.2015 РОСГОССТРАХ"},{"id":2085266,"created_at":"2020-03-27 22:19:08","updated_at":"2020-03-27 22:19:08","query_id":272326,"period":"2016-01-31","kbm":8,"dlt":"o","loss_date":null,"loss_amount":0,"loss_police":"","police":"0.9 ССС 0702809035 25.12.2014 РОСГОССТРАХ"},{"id":2085268,"created_at":"2020-03-27 22:19:11","updated_at":"2020-03-27 22:19:11","query_id":272326,"period":"2015-01-31","kbm":7,"dlt":"o","loss_date":null,"loss_amount":0,"loss_police":"","police":"0.95 ССС 0668324736 05.11.2013 АЛЬЯНС"},{"id":2085270,"created_at":"2020-03-27 22:19:13","updated_at":"2020-03-27 22:19:13","query_id":272326,"period":"2014-01-31","kbm":6,"dlt":"o","loss_date":null,"loss_amount":0,"loss_police":"","police":"1 ВВВ 0628774300 29.08.2012 РОССИЯ"},{"id":2085272,"created_at":"2020-03-27 22:19:16","updated_at":"2020-03-27 22:19:16","query_id":272326,"period":"2013-01-31","kbm":7,"dlt":"o","loss_date":null,"loss_amount":0,"loss_police":"","police":"0.95 ВВВ 0549242902 11.11.2011 РОСГОССТРАХ"}]

Share with your friends:

Print