The customer can display custom HTML in the upper section of a RaPTr Scanner UI. This is typically information about the current shipment being loaded.
Endpoint
POST
[http vs https]://[Supervisor Hostname]:[REST API Supervisor Port (if greater than 0)]/DisplayInformation
Request
HeadersContent-Type: application/json
Request Body
The body of the request should include the following fields in JSON format:
Example JSON Payload:
{
"LocationID": 1, // Identifier of the RaPTr unit (unsigned int)
"HTML": "<b>Loading Order ORD123</b>" // HTML content to display (string)
}
Parameter Types:
-
LocationID:
unsigned int
– The identifier of the RaPTr unit. -
HTML:
string
– The HTML markup that will be rendered in the upper-left section of the RaPTr Scanner UI.
Response
Success ResponseHTTP Status: 200 OK
Response Body:
Parameter Types:
-
ResponseCode:
unsigned int
– A value indicating the result (1 for success, 0 for failure). -
ResponseString:
string
– A message providing details about the result or any failure reason.
Example Flow of Successful Display Update
Request:
Body:
Response:
Example Flow of Failed Display Update
Request:
Body:
Response:
Notes
-
This endpoint allows dynamic updating of informational content shown on RaPTr Scanner UIs.
-
The HTML content should be sanitized and styled appropriately to fit within the constraints of the RaPTr UI display area.
-
If
ResponseCode
is 0, check that theLocationID
is valid and the HTML content is properly formatted.
Comments
0 comments
Please sign in to leave a comment.