PetApi

Otif
GET /getOtifData

Request parameters

mode
string optional

Режим просмотра в разрезе дней или часов (‘byHour’ | ‘byDay’)

Example:
byHour
dateTo
string optional

Дата окончания

Example:
'2024-07-15T14:03:36.313Z'
dateFrom
string optional

Дата начала

Example:
'2024-07-13T14:03:36.313Z'

Responses

200 OK
Body
Object
generalData
Object
atot
Object
otifValue
number
Example:
39.67
averageValue
integer
Example:
95
otifAdditionalValue
integer
graphData
Array
Object
time
string
Example:
2022-02-25T23:00:00.000Z
value
integer
ifData
Object
ifTotal
integer
Example:
40
deviation
integer
graphData
Array
Object
time
string
Example:
2022-02-24T00:00:00.000Z
itemID
string
Example:
5f05f07a-b9f4-11ea-8109-005056a7039a
itemName
string
Example:
АИ-92
plan
integer
ifItem
integer
Example:
100
fact
number
Example:
456.25
ifByTime
integer
Example:
100
factorData
Array
Object
time
string
Example:
2022-02-24T01:00:00.000Z
reasonName
string
Example:
Прочее
responsibilityName
string
Example:
МНПЗ
averageOt
integer
Example:
100
requestNumber
string
Example:
ЛМ-0000000005793
requestID
string
Example:
cfaf96fd-6066-49e5-86ec-8720a68da7fd
requestName
string
Example:
Заявка на отгрузку НП и СУГ ЛМ-0000000005793 от 24.02.2022 0:52:05
otData
Object
deviation
integer
otTotal
number
Example:
99.21
generalOtData
Array
Object
time
string
Example:
2022-02-24T00:00:00.000Z
otValue
number
Example:
99.35
averageTime
number
Example:
75.69
planData
Array
Object
kontrolPointID
string
Example:
58b3600e-bd11-11eb-8115-005056a72239
kontrolPointName
string
Example:
Терминал на погрузку
plan
integer
factData
Array
Object
time
string
Example:
2022-02-24T00:00:00.000Z
kontrolPointID
string
Example:
58b3600e-bd11-11eb-8115-005056a72239
kontrolPointName
string
Example:
Терминал на погрузку
fact
integer
Example 1
{
    "generalData": {
        "atot": {
            "otifValue": 39.67,
            "averageValue": 95,
            "otifAdditionalValue": 1,
            "graphData": [
                {
                    "time": "2022-02-25T23:00:00.000Z",
                    "value": 1
                }
            ]
        }
    },
    "ifData": {
        "ifTotal": 40,
        "deviation": 1,
        "graphData": [
            {
                "time": "2022-02-24T00:00:00.000Z",
                "itemID": "5f05f07a-b9f4-11ea-8109-005056a7039a",
                "itemName": "АИ-92",
                "plan": 1,
                "ifItem": 100,
                "fact": 456.25,
                "ifByTime": 100
            }
        ]
    },
    "factorData": [
        {
            "time": "2022-02-24T01:00:00.000Z",
            "reasonName": "Прочее",
            "responsibilityName": "МНПЗ",
            "averageOt": 100,
            "requestNumber": "ЛМ-0000000005793",
            "requestID": "cfaf96fd-6066-49e5-86ec-8720a68da7fd",
            "requestName": "Заявка на отгрузку НП и СУГ ЛМ-0000000005793 от 24.02.2022 0:52:05"
        }
    ],
    "otData": {
        "deviation": 1,
        "otTotal": 99.21,
        "generalOtData": [
            {
                "time": "2022-02-24T00:00:00.000Z",
                "otValue": 99.35,
                "averageTime": 75.69
            }
        ],
        "planData": [
            {
                "kontrolPointID": "58b3600e-bd11-11eb-8115-005056a72239",
                "kontrolPointName": "Терминал на погрузку",
                "plan": 1
            }
        ],
        "factData": [
            {
                "time": "2022-02-24T00:00:00.000Z",
                "kontrolPointID": "58b3600e-bd11-11eb-8115-005056a72239",
                "kontrolPointName": "Терминал на погрузку",
                "fact": 1
            }
        ]
    }
}
Mnpz
GET /getMnpzData

Request parameters

dateTo
string optional

Дата окончания

Example:
2024-07-15T14:03:36.313Z'
dateFrom
string optional

Дата начала

Example:
'2024-07-13T14:03:36.313Z'

Responses

200 OK
Body
Object
generalData
Object
shipmentTypeTotal
Object
vehicleTotal
integer
Example:
3
vehicleCount
integer
Example:
50
plan
integer
parking
Object
slotsTotal
integer
Example:
74
vehicleCount
integer
Example:
119
loadingOperations
Object
vehicleCount
integer
Example:
38
averageATOT
Object
plan
integer
Example:
70
fact
number
Example:
38.50980392
averageUPB
Object
plan
integer
Example:
77
fact
number
Example:
142.84615385
filingDocuments
Object
vehicleCount
integer
Example:
2
plan
integer
fact
integer
Example:
3
shipmentLines
Array
Object
identification
integer
Example:
1
shipmentLineName
string
Example:
АТОТ
otifPercentage
integer
Example:
100
otifColor
string
Example:
255, 124, 10
averageOtifTime
integer
planOtifTime
integer
shipmentTypes
Array
Object
shipmentTypeName
string
Example:
Доставка
vehicleCount
integer
parking
Object
slotsTotal
integer
Example:
48
slotsPlan
integer
Example:
32
slots
Array
Object
status
string

Awaiting | Registration | Approval | WaitingTimeExceeded

Example:
WaitingTimeExceeded
loadingOperations
Array
Object
nameShipmentTime
string
Example:
АТОТ
vehiclesAwaiting
integer
averageShipmentTime
integer
planShipmentTime
integer
loadingPostsTotal
integer
Example:
12
loadingPosts
Array
Object
postNumber
integer
Example:
1
vehicleName
string
Example:
С451РТ750
warnings
Array

NotAvailable, LoadingTimeExceeded, PreparationTimeExceeded, LoadingDelayed

string
Example:
LoadingTimeExceeded
capacity
integer
loaded
integer
filingDocuments
Object
slotsTotal
integer
Example:
1
slotsPlan
integer
Example:
27
slots
Array
Object
status
string

Awaiting | Registration | Approval | WaitingTimeExceeded

Example:
WaitingTimeExceeded
registrationETRN
boolean
waitingOperations
Array
Object
nameOperation
string
Example:
Налив
vehicleNumber
integer
Example:
15
Example 1
{
    "generalData": {
        "shipmentTypeTotal": {
            "vehicleTotal": 3,
            "vehicleCount": 50,
            "plan": 1
        },
        "parking": {
            "slotsTotal": 74,
            "vehicleCount": 119
        },
        "loadingOperations": {
            "vehicleCount": 38,
            "averageATOT": {
                "plan": 70,
                "fact": 38.50980392
            },
            "averageUPB": {
                "plan": 77,
                "fact": 142.84615385
            }
        },
        "filingDocuments": {
            "vehicleCount": 2,
            "plan": 1,
            "fact": 3
        }
    },
    "shipmentLines": [
        {
            "identification": 1,
            "shipmentLineName": "АТОТ",
            "otifPercentage": 100,
            "otifColor": "255, 124, 10",
            "averageOtifTime": 1,
            "planOtifTime": 1,
            "shipmentTypes": [
                {
                    "shipmentTypeName": "Доставка",
                    "vehicleCount": 1
                }
            ],
            "parking": {
                "slotsTotal": 48,
                "slotsPlan": 32,
                "slots": [
                    {
                        "status": "WaitingTimeExceeded"
                    }
                ]
            },
            "loadingOperations": [
                {
                    "nameShipmentTime": "АТОТ",
                    "vehiclesAwaiting": 1,
                    "averageShipmentTime": 1,
                    "planShipmentTime": 1,
                    "loadingPostsTotal": 12,
                    "loadingPosts": [
                        {
                            "postNumber": 1,
                            "vehicleName": "С451РТ750",
                            "warnings": [
                                "LoadingTimeExceeded"
                            ],
                            "capacity": 1,
                            "loaded": 1
                        }
                    ]
                }
            ],
            "filingDocuments": {
                "slotsTotal": 1,
                "slotsPlan": 27,
                "slots": [
                    {
                        "status": "WaitingTimeExceeded",
                        "registrationETRN": true
                    }
                ]
            },
            "waitingOperations": [
                {
                    "nameOperation": "Налив",
                    "vehicleNumber": 15
                }
            ]
        }
    ]
}
Atot
POST /postAtotData

Request body

Object
mode
string

детализация по дням или по часам ‘byHour’ | ‘byDay’

Example:
byHour
dateTo
string

конец временного промежутка

Example:
2024-07-15T14:23:31.637Z
dateFrom
string

начало временного промежутка

Example:
2024-07-15T14:23:31.637Z
filters
Object
intervalStart
string

начало интервала

Example:
2024-07-15T14:23:31.637Z
intervalEnd
string

конец интервала

Example:
2024-07-15T14:23:31.637Z
productTypeId
string

тип продукта (true - моно, false - немоно, null - моно и немоно)

Example:
id-0
nomenclatureId
Array

номеклатуры продукта

Example:
["id-0"]
string
Example:
id-0
operationTimeStart
integer

время операции ТС (нижняя граница)

operationTimeEnd
integer

время операции ТС (верхняя граница)

Example:
200
preparationTimeStart
integer

время подготовительных работ (нижняя граница)

preparationTimeEnd
integer

время подготовительных работ (верхняя граница)

Example:
200
fillingTimeStart
integer

время налива (нижняя граница)

fillingTimeEnd
integer

время налива (верхняя граница)

Example:
200
intermediateWorkTimeStart
integer

время промежуточных работ (нижняя граница)

intermediateWorkTimeEnd
integer

время промежуточных работ (верхняя граница)

Example:
200
betweenVehicleTimeStart
integer

время между ТС (нижняя граница)

betweenVehicleTimeEnd
integer

время между ТС (верхняя граница)

Example:
200
vehicleNumber
Array of string

номера ТС

Example:
["1234"]
sectionCount
integer

количество секций ТС - число секций или null если все секции

Example:
4
fillingSectionTimeStart
integer

время налива в секции (нижняя граница)

fillingSectionTimeEnd
integer

время налива в секции (верхняя граница)

Example:
200

Responses

200 OK
Body
Object
data
Array
Object
selectionDateFromDateTo
integer
Example:
1
afterFilling_Group
integer
Example:
54
selectionDateTo
integer
Example:
1
itemID
string
Example:
ab829bd9-b9fb-11ea-8109-005056a7039a
approvalDocID
string
Example:
27ab82ec-1788-11ee-812c-005056927ab7
amount
number
Example:
4.18
itemName
string
Example:
ДТ сорт С
approvalDocName
string
Example:
Визирование НП и СУГ под клиента ЛМ1957525 от 30.06.2023 23:53:24
post
integer
Example:
1
loadingStartConfirmationDate
string
Example:
2023-07-01T00:13:18.000Z
hourRoundUp
string
Example:
2023-07-01T00:00:00.000Z
hourDetails
string
Example:
2023-07-01T00:35:32.000Z
section
integer
Example:
2
loadingFinishConfirmationDate
string
Example:
2023-07-01T00:35:32.000Z
numberOfSections
integer
Example:
5
carNumber
string
Example:
С909РХ197
nextCarNumber
string
Example:
Н563ТР799
numberOfSectionsOfOneProduct
integer
Example:
3
timeFill
integer
Example:
1334
beforFilling
integer
Example:
18
downTime
integer
Example:
1443
downTime1
integer
Example:
1443
timeUsage1
integer
Example:
1334
Filling
integer
Example:
681
afterFilling
integer
Example:
635
beforFilling_Group
integer
Example:
1262
timeFilling_Group
integer
Example:
1262
carNumbers
Array
Example:
["О492ВХ750","М418КР77","С753ВЕ199","О588КО799","О785НВ154","Т229ВВ799","К742ВР777","Т253ТР750","Х424КН790","Т366АО797","Н119СХ199","В863ТО190","О918НМ154","Х892АУ178","О046СК716","А824РМ799","Е202ХР198","М265ВО790","О274ТВ62","К975КК16","К225ХО716","Р861РХ799","О917КУ154","Р287ВВ799","Х188КВ799","О896ЕС154","Е414РУ716","Х350ВУ178","Е743АО716","О007МВ90","Р062ВР750","М297ВО790","Т098АВ977","Р427ЕН197","Р120СХ174","Х151НВ197","А465РМ799","Х400КН790","Н433ТМ750","С909РХ197","С024СС197","О260НО154","В289КС790","Х153КВ799","А810СА750","Х882ОС750","А023КТ799","О438КА154","О421КТ154","Н965АО977","К843ТМ716","О369НХ154","К966ХО799","У477КО750","Е166УО716","М906ВУ790","В975ТХ16","К067СА716","А227ЕК790","М155ТТ799","У787ТА199","Е897РХ799","Х918ХР777","Х337ВУ178","Е248КУ197","Т978АУ790","К307ХО716","С663УР799","В283КС790","С378ВМ178","О680СС154","О341КТ154","О310НС154","О387НТ154","О269НС154","Т918АО750","К481УЕ716","С953СК799","Т234ВВ799","Т764СЕ799","О532СС790","О523ЕТ197","В764ТС43","У094КО790","У522ХЕ178","С479ВА750","У264УВ199","В122ВУ790","Н194КО799","О274РР716","Е349КН716","Х936ЕЕ178","Е382ЕР790","О441МХ790","Н310ХН197","Х012СА799","С299РК777","У849УТ178","О704ЕН50","О899КУ154","Р915ОН750","А456РМ799","Х033АТ750","Х938ЕЕ178","Р375РС750","Х755ВА797","В466УМ777","О952НА154","А848РМ799","А536РМ799","Н394ХА750","В177КС790","Е927КА716","С192ВХ197","Т785СЕ799","К861УЕ716","Х983ХР777","О399КА154","Е870РУ716","В104СА43","Х353ОТ750","О225НЕ154","М101РМ750","А349СХ62","К512КР790","С002РС190","Т172ВВ799","А953РМ799","О530НР154","А650СТ790","Е245КУ197","Х992КО178","О256МО154","Х990КО178","Т824КК797","К127УЕ716","К545КР790","О898МС154","Р798УК197","В524УМ777","В705ЕР797","Н172ВХ716","О458НХ799","А375НА797","А225ЕТ790","Е374ЕЕ152","К950ТЕ716","Т474АК797","О387НС154","Х423КН790","М934ХХ799","К732ВС977","Т720СЕ799","К395АУ199","О793РО716","С554СВ177","М975АА16","К037РА716","А917РМ799","О297НЕ154","К540ВС977","В114МХ790","Р421ЕН197","С752ВЕ199","С451РТ750","О818НН154","К124ХО799","Н563ТР799","М510КУ777","А620ОХ777","А604ОХ777","Р048ХН77","О371МА154","О745МТ154","А867СА750","Х477ВК777","О200НТ154","О655СТ154","Т932УТ77","У038ОУ790","А262ЕК790","О147УС799","Р009КУ190","Т128ТХ199","К588ТЕ716","О291КВ154","Е510КА716","В492ВХ197","С751ВЕ199","Х991КО178","А347СХ62","О219НМ154","С012СС177","А579ОХ777","В491ВХ197","Н156ВХ190","Е990МЕ716","О249НС154","А632ОХ777","О265РР716","М282ЕК777","С130КА197","Н947КС777","О515ЕТ197","К119ТЕ716","М547АК716","В111СА43","А351ЕУ777","О992ТЕ777","О143ВО799","О193ОМ197","С290РК777","О205НР154","М082УУ71","Е179ХР198","В278КС790","О930СН62","Т674СЕ799","А848СА750","К526ХН77","О278УС799","В297КС790","Е610НА197","К394АУ199","С139ХК197","В611ЕЕ199","К397АУ199","У848УТ178","М738АР178","В435НТ799","О144СС790","Р051СО790","О913ЕТ197","О851АВ750","Х059ХУ178","А821СР750","Х404ХР197","В631НТ799","Е470СВ777","А585РМ799","Х024МК750","В479АЕ799","Х761ХЕ43","Е647АО716","С754ВЕ199","М850НЕ77","Т799СЕ799","К561КР790","К775ТМ716","Х893ХР777","О294НХ154","В457СВ777","А584РМ799","О342ЕВ154","К436ОО799","М687АК716","У075РТ799","М022ТТ799","Н610МТ197","В653НТ799","О928НО154","О234НК750","К878ХО716","О824ММ154","М102ХС799","О366НК154","О356МО154","К874ХО777","Т254ТР750","О230СМ154","Р138ЕН197","Н609МТ197","О228НС154","А569ОХ777","О580РХ716","А669ВР790","О831НН154","Х506АН178","Р224КС750","У729УТ178","Х846РК178","Н603УР777","Т831ХВ197","О061СК716","Н485ТР799","А623ОХ777","К506УЕ716","У807РН799","Т909ВВ799","К389АУ199","Х504АН178","В308КС790"]
string
Example:
О492ВХ750
NumberSectionsMono
integer
Example:
4
AcceptablePercentageCarsMono
integer
Example:
15
AverageWorkLoadTime
number
Example:
22.5
AverageTimeBetweenCars
integer
Example:
5
AverageFillingTime
integer
Example:
30
items
Array
Object
itemID
string
Example:
3e93bbc5-3120-11e9-80f6-005056a7039a
itemName
string
Example:
Топ-во реакт.двиг. ТС-1 в/с
Example 1
{
    "data": [
        {
            "selectionDateFromDateTo": 1,
            "afterFilling_Group": 54,
            "selectionDateTo": 1,
            "itemID": "ab829bd9-b9fb-11ea-8109-005056a7039a",
            "approvalDocID": "27ab82ec-1788-11ee-812c-005056927ab7",
            "amount": 4.18,
            "itemName": "ДТ сорт С",
            "approvalDocName": "Визирование НП и СУГ под клиента ЛМ1957525 от 30.06.2023 23:53:24",
            "post": 1,
            "loadingStartConfirmationDate": "2023-07-01T00:13:18.000Z",
            "hourRoundUp": "2023-07-01T00:00:00.000Z",
            "hourDetails": "2023-07-01T00:35:32.000Z",
            "section": 2,
            "loadingFinishConfirmationDate": "2023-07-01T00:35:32.000Z",
            "numberOfSections": 5,
            "carNumber": "С909РХ197",
            "nextCarNumber": "Н563ТР799",
            "numberOfSectionsOfOneProduct": 3,
            "timeFill": 1334,
            "beforFilling": 18,
            "downTime": 1443,
            "downTime1": 1443,
            "timeUsage1": 1334,
            "Filling": 681,
            "afterFilling": 635,
            "beforFilling_Group": 1262,
            "timeFilling_Group": 1262
        }
    ],
    "carNumbers": [
        "О492ВХ750"
    ],
    "NumberSectionsMono": 4,
    "AcceptablePercentageCarsMono": 15,
    "AverageWorkLoadTime": 22.5,
    "AverageTimeBetweenCars": 5,
    "AverageFillingTime": 30,
    "items": [
        {
            "itemID": "3e93bbc5-3120-11e9-80f6-005056a7039a",
            "itemName": "Топ-во реакт.двиг. ТС-1 в/с"
        }
    ]
}
AtotFile
GET /getAtotReport

В ответ приходит blob в котором excel