События по Персональным приглашениям разделены на две темы:
Полученные персональные приглашения
События Полученных персональных приглашений.
При возникновении события в системе ATI.SU, к вебхуку будет отправлен POST запрос.
В параметре entity будет сущность темы подписки в соответствии с моделью, представленной на этой странице.
При удалении Персонального приглашения, параметр entity будет принимать значение null.
Тема orders.invites
owner_persistent_user_id:
int32
Постоянный Id фирмы грузовладельца
owner_contact_id:
int32
(nullable)
Id контакта, который отправил приглашение
taker_persistent_user_id:
int32
Постоянный Id приглашенной фирмы
taker_contact_id:
int32
Id контакта приглашенной фирмы
taker_contacts_list:
[int32]
Список контактов приглашенной фирмы
date:
date-time
Время отправки приглашения
cancellation_date:
date-time
(nullable)
payment:
Предложенные параметры оплаты
ONE-OF
rates:[{...}]
Список возможных ставок перевозки
rate_type:
Тип оплаты
0 — Нет
1 — Любая
2 — С НДС
3 — Без НДС
prop0:
enum
[0, 1, 2, 3]
Тип оплаты
0 — Нет
1 — Любая
2 — С НДС
3 — Без НДС
currency:
int32
(nullable)
}]
prepay_percent_enabled:
boolean
pay_days_enabled:
boolean
fixed_rate:
boolean
Указана ли в грузе ставка
money_type:
int32
(nullable)
payment_source:
enum
[0, 1, 2, 3, 4, 5]
Источник параметров оплаты
0 — Нет
1 — Встречное предложение
2 — Торги
3 — Груз
4 — Предложение груза
5 — Предложение по контракту
}
load:
Параметры предложенного груза
ONE-OF
1:{...}
Краткая информация по грузу
load_number:
string
Сгенерированный номер груза
distance:
int32
Расстояние для груза
При расчете учитываются дополнительные пункты разгрузки
distance_type:
int32
Маршрут построен с проездом по МКАД или без МКАД
platon_roads_length:
int32
toll_roads_length:
int32
Расстояние по платным дорогам
true_currency_id:
int32
ID валюты озвученной ставки
first_date:
date-time
Дата, начиная с которой груз актуален
last_date:
date-time
Дата, после которой груз не актуален
date_type:
enum
[0, 1, 2, 3]
Готовность груза к перевозке
0 — Готов к отправке сегодня или завтра
1 — Готов к отправке между FirstDate и LastDate
2 — Готов к отправке постоянно
3 — Груза нет, запрос ставки
periodicity_id:
enum
[0, 1, 100]
Периодичность загрузки
0 — Нет
1 — Ежедневно
100 — Только по рабочим дням
ONE-OF
city_id:
int32
(nullable)
latitude:
decimal
(nullable)
longitude:
decimal
(nullable)
street:
string
(nullable)
organization_id:
guid
(nullable)
Id из справочника организаций
address_id:
guid
(nullable)
time_start:
date-time
(nullable)
time_end:
date-time
(nullable)
is_round_the_clock:
boolean
(nullable)
large_cities:
[int32]
Список Id ближайших крупных городов
large_cities_with_distance:[{...}]
Расстояния до ближайших крупных городов
city_id:
int64
(nullable)
distance:
double
(nullable)
}]
name_id:
int32
(nullable)
packaging_type:
int32
(nullable)
packaging_quantity:
int32
(nullable)
weight:
double
(nullable)
volume:
double
(nullable)
length:
double
(nullable)
height:
double
(nullable)
diameter:
double
(nullable)
length_highlight:
boolean
(nullable)
width_highlight:
boolean
(nullable)
height_highlight:
boolean
(nullable)
}
packaging_type_name:
string
(nullable)
}]
prop0:
enum
[1, 2, 3, 10, 200]
Резидентство
1 — Россия
2 — Украина
3 — Беларусь
10 — Казахстан
200 — Международное (другое)
extra_phone:
int32
(nullable)
postcode:
string
(nullable)
city_id:
int32
(nullable)
street_name:
string
(nullable)
house_no:
string
(nullable)
office_no:
string
(nullable)
}
address:
string
(nullable)
address_longitude:
double
schedule_summary:
string
(nullable)
}]
ownership_name:
string
(nullable)
}
}
city_id:
int32
(nullable)
prop0:
enum
[1, 2, 3, 4, 5, 8]
Тип дополнительной точки маршрута груза
1 — Загрузка
2 — Разгрузка
3 — Таможня
4 — Ближайший крупный город к городу загрузки
5 — Ближайший крупный город к городу разгрузки
8 — Проехать через
ordinal_id:
int32
(nullable)
Порядковый номер в маршруте
distance:
int32
(nullable)
street:
string
(nullable)
latitude:
decimal
(nullable)
longitude:
decimal
(nullable)
organization_id:
guid
(nullable)
Id из справочника организаций
address_id:
guid
(nullable)
loading_date_start:
date-time
(nullable)
loading_date_end:
date-time
(nullable)
loading_time_start:
duration
(nullable)
loading_time_end:
duration
(nullable)
is_round_the_clock:
boolean
(nullable)
city_name:
string
(nullable)
name_id:
int32
(nullable)
packaging_type:
int32
(nullable)
packaging_quantity:
int32
(nullable)
weight:
double
(nullable)
volume:
double
(nullable)
length:
double
(nullable)
height:
double
(nullable)
diameter:
double
(nullable)
length_highlight:
boolean
(nullable)
width_highlight:
boolean
(nullable)
height_highlight:
boolean
(nullable)
}
packaging_type_name:
string
(nullable)
}]
weight:
double
(nullable)
volume:
double
(nullable)
packaging_quantity:
int32
(nullable)
Выгружаемая часть упаковки
is_defined_by_ttn:
boolean
(nullable)
Выгружаемая часть груза будет определена в ТТН
}]
prop0:
enum
[1, 2, 3, 10, 200]
Резидентство
1 — Россия
2 — Украина
3 — Беларусь
10 — Казахстан
200 — Международное (другое)
extra_phone:
int32
(nullable)
postcode:
string
(nullable)
city_id:
int32
(nullable)
street_name:
string
(nullable)
house_no:
string
(nullable)
office_no:
string
(nullable)
}
address:
string
(nullable)
address_longitude:
double
schedule_summary:
string
(nullable)
}]
ownership_name:
string
(nullable)
}
}]
ONE-OF
city_id:
int32
(nullable)
latitude:
decimal
(nullable)
longitude:
decimal
(nullable)
street:
string
(nullable)
organization_id:
guid
(nullable)
Id из справочника организаций
address_id:
guid
(nullable)
time_start:
date-time
(nullable)
time_end:
date-time
(nullable)
is_round_the_clock:
boolean
(nullable)
large_cities:
[int32]
Список Id ближайших крупных городов
large_cities_with_distance:[{...}]
Расстояния до ближайших крупных городов
city_id:
int64
(nullable)
distance:
double
(nullable)
}]
name_id:
int32
(nullable)
packaging_type:
int32
(nullable)
packaging_quantity:
int32
(nullable)
weight:
double
(nullable)
volume:
double
(nullable)
length:
double
(nullable)
height:
double
(nullable)
diameter:
double
(nullable)
length_highlight:
boolean
(nullable)
width_highlight:
boolean
(nullable)
height_highlight:
boolean
(nullable)
}
packaging_type_name:
string
(nullable)
}]
prop0:
enum
[1, 2, 3, 10, 200]
Резидентство
1 — Россия
2 — Украина
3 — Беларусь
10 — Казахстан
200 — Международное (другое)
extra_phone:
int32
(nullable)
postcode:
string
(nullable)
city_id:
int32
(nullable)
street_name:
string
(nullable)
house_no:
string
(nullable)
office_no:
string
(nullable)
}
address:
string
(nullable)
address_longitude:
double
schedule_summary:
string
(nullable)
}]
ownership_name:
string
(nullable)
}
}
ONE-OF
weight:
double
(nullable)
volume:
double
(nullable)
adr:
int32
(nullable)
Модификатор опасности груза с 0 до 9
cargo_type_id:
int32
(nullable)
cargo_type:
string
(nullable)
Строковое наименование груза. Выводится если CargoTypeId не указан, либо равен 59
pack_type:
int32
(nullable)
Тип упаковки(навалом, коробки, россыпью, запаллечен ... пирамида). Значение из словаря PackTypes
pallet_count:
int32
(nullable)
belt_count:
int32
(nullable)
prop0:
enum
[1, 2, 3]
Параметр, отвечающий за способ перевозки груза
1 — Только отдельной машиной
2 — Догруз возможен
3 — Догруз
sbor_gruz:
boolean
(nullable)
length:
double
(nullable)
height:
double
(nullable)
diameter:
double
(nullable)
length_highlight:
boolean
(nullable)
width_highlight:
boolean
(nullable)
height_highlight:
boolean
(nullable)
}
}
ONE-OF
car_type:
int64
(nullable)
car_type_string:
string
(nullable)
loading_type:
int32
(nullable)
Битовая сумма типов загрузки
loading_logical_operator:
string
(nullable)
unloading_type:
int32
(nullable)
Битовая сумма типов разгрузки
unloading_logical_operator:
string
(nullable)
trucks_quantity:
int32
(nullable)
temperature_from:
int32
(nullable)
Температура перевозки - нижнее значение
temperature_to:
int32
(nullable)
Температура перевозки - верхнее значение
truck_attribs:
int32
(nullable)
Настройки для машины, используются только в RMQ (Stsepka, Pnevmohod, Koniki)
stsepka:
boolean
(nullable)
pnevmohod:
boolean
(nullable)
koniki:
boolean
(nullable)
san_passport:
boolean
(nullable)
sanitation_logbook:
boolean
(nullable)
is_tracking:
boolean
(nullable)
Запрос отслеживания через АТИ Водитель
required_capacity:
decimal
(nullable)
Требуемая грузоподъёмность в тоннах
}
unload_first_date:
date-time
(nullable)
Дата, начиная с которой можно разгрузить груз
unload_last_date:
date-time
(nullable)
Дата, до которой можно разгрузить груз
}
is_tracking:
boolean
Запрос отслеживания через АТИ Водитель
ONE-OF
prop0:
enum
[0, 1, 2, 4, 8, 16, 32, 64, 128, 256]
Тип Заказа
0 — Заказ невозможен
1 — Взятие груза из поиска
2 — Заказ из Торгов
4 — Предложение груза
8 — Из перехвата машин
16 — Односторонний заказ
32 — Предложение груза из встречного предложения
64 — Предложение груза по контракту
128 — Создан вручную для тестирования черновиков
256 — Создан из АТИ-Доков
}
{...}
"owner_ati_id":"string",
"owner_persistent_user_id":0,
"owner_contact_id":0,
"taker_ati_id":"string",
"taker_persistent_user_id":0,
"taker_contact_id":0,
"taker_contacts_list":[...],
"date":"1970-01-01T00:00:00.000Z",
"cancellation_date":"1970-01-01T00:00:00.000Z",
"payment":{...},
"prepay_percent":0,
"prepay_percent_enabled":false,
"on_unloading":false,
"in_fuel":false,
"pay_days_enabled":false,
"pay_days":0,
"fixed_rate":false,
"torg":false,
"direct_contract":false,
"money_type":0,
"payment_source":0
},
"load":{...},
"id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"load_number":"string",
"distance":0,
"distance_type":0,
"platon_roads_length":0,
"toll_roads_length":0,
"travel_time":"?",
"true_price":0,
"true_currency_id":0,
"note":"string",
"first_date":"1970-01-01T00:00:00.000Z",
"last_date":"1970-01-01T00:00:00.000Z",
"date_type":0,
"periodicity_id":0,
"order_number":"string",
"krugoreis":false,
"zimnik":false,
"ferries":false,
"loading":{...},
"fias_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"city_id":0,
"latitude":0.5,
"longitude":0.5,
"street":"string",
"organization_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"address_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"time_start":"1970-01-01T00:00:00.000Z",
"time_end":"1970-01-01T00:00:00.000Z",
"is_round_the_clock":false,
"large_cities_with_distance":[...],
{...}
"city_id":0,
"distance":0.5
}
],
"loading_cargos":[...],
{...}
"cargo_id":0,
"name_id":0,
"name":"string",
"packaging_type":0,
"packaging_quantity":0,
"weight":0.5,
"volume":0.5,
"sizes":{...},
"length":0.5,
"width":0.5,
"height":0.5,
"diameter":0.5,
"length_highlight":false,
"width_highlight":false,
"height_highlight":false
},
"packaging_type_name":"string"
}
],
"organization":{...}
"organization_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"firm_id":0,
"name":"string",
"ownership":0,
"inn":"string",
"phone":"string",
"extra_phone":0,
"docs_address":{...},
"postcode":"string",
"city_id":0,
"street_name":"string",
"house_no":"string",
"office_no":"string"
},
"stocks":[...],
{...}
"stock_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"address":"string",
"address_city_id":0,
"address_latitude":0.5,
"address_longitude":0.5,
"note":"string",
"work_schedules":[...],
{...}
"stock_schedule_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"day_of_week":0,
"start_time":"?",
"end_time":"?"
}
],
"breaks_schedules":[...],
{...}
"stock_schedule_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"day_of_week":0,
"start_time":"?",
"end_time":"?"
}
],
"contact_persons":[...],
{...}
"contact_person_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name":"string",
"phone":"string",
"email":"string"
}
],
"schedule_summary":"string",
"stock_type":0,
"timeslots_binding":{...}
"warehouse_id":0,
"status":0
}
}
],
"contact_persons":[...],
{...}
"contact_person_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name":"string",
"phone":"string",
"email":"string"
}
],
"ownership_name":"string"
}
},
"extra_points":[...],
{...}
"route_point_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"city_id":0,
"ordinal_id":0,
"distance":0,
"street":"string",
"latitude":0.5,
"longitude":0.5,
"organization_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"address_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"loading_date_start":"1970-01-01T00:00:00.000Z",
"loading_date_end":"1970-01-01T00:00:00.000Z",
"loading_time_start":null,
"loading_time_end":null,
"is_round_the_clock":false,
"city_name":"string",
"loading_cargos":[...],
{...}
"cargo_id":0,
"name_id":0,
"name":"string",
"packaging_type":0,
"packaging_quantity":0,
"weight":0.5,
"volume":0.5,
"sizes":{...},
"length":0.5,
"width":0.5,
"height":0.5,
"diameter":0.5,
"length_highlight":false,
"width_highlight":false,
"height_highlight":false
},
"packaging_type_name":"string"
}
],
"unloading_cargos":[...],
{...}
"cargo_id":0,
"weight":0.5,
"volume":0.5,
"packaging_quantity":0,
"is_defined_by_ttn":false
}
],
"organization":{...}
"organization_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"firm_id":0,
"name":"string",
"ownership":0,
"inn":"string",
"phone":"string",
"extra_phone":0,
"docs_address":{...},
"postcode":"string",
"city_id":0,
"street_name":"string",
"house_no":"string",
"office_no":"string"
},
"stocks":[...],
{...}
"stock_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"address":"string",
"address_city_id":0,
"address_latitude":0.5,
"address_longitude":0.5,
"note":"string",
"work_schedules":[...],
{...}
"stock_schedule_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"day_of_week":0,
"start_time":"?",
"end_time":"?"
}
],
"breaks_schedules":[...],
{...}
"stock_schedule_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"day_of_week":0,
"start_time":"?",
"end_time":"?"
}
],
"contact_persons":[...],
{...}
"contact_person_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name":"string",
"phone":"string",
"email":"string"
}
],
"schedule_summary":"string",
"stock_type":0,
"timeslots_binding":{...}
"warehouse_id":0,
"status":0
}
}
],
"contact_persons":[...],
{...}
"contact_person_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name":"string",
"phone":"string",
"email":"string"
}
],
"ownership_name":"string"
}
}
],
"unloading":{...},
"fias_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"city_id":0,
"latitude":0.5,
"longitude":0.5,
"street":"string",
"organization_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"address_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"time_start":"1970-01-01T00:00:00.000Z",
"time_end":"1970-01-01T00:00:00.000Z",
"is_round_the_clock":false,
"large_cities_with_distance":[...],
{...}
"city_id":0,
"distance":0.5
}
],
"loading_cargos":[...],
{...}
"cargo_id":0,
"name_id":0,
"name":"string",
"packaging_type":0,
"packaging_quantity":0,
"weight":0.5,
"volume":0.5,
"sizes":{...},
"length":0.5,
"width":0.5,
"height":0.5,
"diameter":0.5,
"length_highlight":false,
"width_highlight":false,
"height_highlight":false
},
"packaging_type_name":"string"
}
],
"organization":{...}
"organization_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"firm_id":0,
"name":"string",
"ownership":0,
"inn":"string",
"phone":"string",
"extra_phone":0,
"docs_address":{...},
"postcode":"string",
"city_id":0,
"street_name":"string",
"house_no":"string",
"office_no":"string"
},
"stocks":[...],
{...}
"stock_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"address":"string",
"address_city_id":0,
"address_latitude":0.5,
"address_longitude":0.5,
"note":"string",
"work_schedules":[...],
{...}
"stock_schedule_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"day_of_week":0,
"start_time":"?",
"end_time":"?"
}
],
"breaks_schedules":[...],
{...}
"stock_schedule_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"day_of_week":0,
"start_time":"?",
"end_time":"?"
}
],
"contact_persons":[...],
{...}
"contact_person_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name":"string",
"phone":"string",
"email":"string"
}
],
"schedule_summary":"string",
"stock_type":0,
"timeslots_binding":{...}
"warehouse_id":0,
"status":0
}
}
],
"contact_persons":[...],
{...}
"contact_person_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name":"string",
"phone":"string",
"email":"string"
}
],
"ownership_name":"string"
}
},
"cargo":{...},
"weight":0.5,
"volume":0.5,
"adr":0,
"cargo_type_id":0,
"cargo_type":"string",
"pack_type":0,
"pallet_count":0,
"belt_count":0,
"sbor_gruz":false,
"size":{...}
"length":0.5,
"width":0.5,
"height":0.5,
"diameter":0.5,
"length_highlight":false,
"width_highlight":false,
"height_highlight":false
}
},
"transport":{...},
"car_type":0,
"car_type_string":"string",
"loading_type":0,
"loading_logical_operator":"string",
"unloading_type":0,
"unloading_logical_operator":"string",
"trucks_quantity":0,
"temperature_from":0,
"temperature_to":0,
"truck_attribs":0,
"stsepka":false,
"pnevmohod":false,
"koniki":false,
"tir":false,
"cmr":false,
"t1":false,
"san_passport":false,
"sanitation_logbook":false,
"is_tracking":false,
"required_capacity":0.5
},
"unload_first_date":"1970-01-01T00:00:00.000Z",
"unload_last_date":"1970-01-01T00:00:00.000Z"
},
"is_tracking":false,
}
Отправленные персональные приглашения
События Отправленных персональных приглашений.
При возникновении события в системе ATI.SU, к вебхуку будет отправлен POST запрос.
В параметре entity будет сущность темы подписки в соответствии с моделью, представленной на этой странице.
При удалении Персонального приглашения, параметр entity будет принимать значение null.
Тема orders.invites.sent
taker_persistent_user_id:
int32
Постоянный Id приглашенной фирмы
taker_contacts_list:
[int32]
Список контактов приглашенной фирмы
taker_contact_id:
int32
Id контакта приглашенной фирмы
deprecated
date:
date-time
Время отправки приглашения
cancellation_date:
date-time
(nullable)
deal_kind:
Тип Заказа
0 — Заказ невозможен
1 — Взятие груза из поиска
2 — Заказ из Торгов
4 — Предложение груза
8 — Из перехвата машин
16 — Односторонний заказ
32 — Предложение груза из встречного предложения
64 — Предложение груза по контракту
ONE-OF
prop0:
enum
[0, 1, 2, 4, 8, 16, 32, 64, 128, 256]
Тип Заказа
0 — Заказ невозможен
1 — Взятие груза из поиска
2 — Заказ из Торгов
4 — Предложение груза
8 — Из перехвата машин
16 — Односторонний заказ
32 — Предложение груза из встречного предложения
64 — Предложение груза по контракту
128 — Создан вручную для тестирования черновиков
256 — Создан из АТИ-Доков
payment:
Предложенные параметры оплаты
ONE-OF
rates:[{...}]
Список возможных ставок перевозки
rate_type:
Тип оплаты
0 — Нет
1 — Любая
2 — С НДС
3 — Без НДС
prop0:
enum
[0, 1, 2, 3]
Тип оплаты
0 — Нет
1 — Любая
2 — С НДС
3 — Без НДС
currency:
int32
(nullable)
}]
prepay_percent_enabled:
boolean
pay_days_enabled:
boolean
fixed_rate:
boolean
Указана ли в грузе ставка
money_type:
int32
(nullable)
payment_source:
enum
[0, 1, 2, 3, 4, 5]
Источник параметров оплаты
0 — Нет
1 — Встречное предложение
2 — Торги
3 — Груз
4 — Предложение груза
5 — Предложение по контракту
}
is_tracking:
boolean
Запрос отслеживания через АТИ Водитель
}
{...}
"load_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"taker_ati_id":"string",
"taker_persistent_user_id":0,
"taker_contacts_list":[...],
"date":"1970-01-01T00:00:00.000Z",
"cancellation_date":"1970-01-01T00:00:00.000Z",
"payment":{...},
"prepay_percent":0,
"prepay_percent_enabled":false,
"on_unloading":false,
"in_fuel":false,
"pay_days_enabled":false,
"pay_days":0,
"fixed_rate":false,
"torg":false,
"direct_contract":false,
"money_type":0,
"payment_source":0
},
"is_tracking":false
}