get_trailer_bindings

The resource/get_trailer_bindings method allows you to get information about trailer assignments and separations during a specified time interval.

Endpoint

Copied!
svc=resource/get_trailer_bindings&params={
  "resourceId": <long>,
  "unitId": <long>,
  "trailerId": <long>,
  "timeFrom": <uint>,
  "timeTo": <uint>
}

Parameters

Parameter Description
resourceId Resource ID.
unitId Unit ID (0 for all units).
trailerId Trailer ID (0 for all trailers).
timeFrom The beginning of the interval.
timeTo The end of the interval.

Response

Copied!
{
  "<text>": [       /* trailer ID */
    {
      "t": <uint>,  /* time of assignment/separation */
      "u": <long>   /* unit ID in case of assignment, 0 in case of separation */
    },
    ...
  ],
  ...
}

If the request fails, an error code is returned.

Error codes

Error code Description
4 Failed to fetch the list of trailers or wrong input parameters.
7 The resource doesn’t exist or the user doesn’t have the View trailers and Request reports and messages access rights to it, or the unit doesn’t exist or the user doesn’t have the View object and its basic properties access right to it.

If you find a mistake in the text, please select it and press Ctrl+Enter.