A Supervisor system (like a WMS or ERP), can display scanned barcode messages on the RaPTr Scanner UI anytime it would like via the CustomEventMessage endpoint. This is useful for displaying custom messages and triggering audible sounds without having to scan a barcode.
Endpoint
POST[http vs https]://[Supervisor Hostname]:[REST API Supervisor Port (if greater than 0)]/CustomEventMessage
Request
HeadersContent-Type: application/json
Request Body
The body of the request should include the following fields in JSON format:
Example JSON Payload:
Parameter Types:
-
LocationID:
unsigned int
– Unique identifier of the RaPTr unit. -
ResponseString:
string
– Text to display on the RaPTr Scanner UI. -
ResponseColor:
string
– HTML-style color code (e.g.,#FF0000
) used to render the message. -
DwellTime:
unsigned int
– Duration in seconds that the message is displayed.
Response
Success ResponseHTTP Status: 200 OK
Response Body:
Parameter Types:
-
ResponseCode:
unsigned int
– Indicates success (1
) or failure (0
). -
ResponseString:
string
– Describes the outcome or failure reason.
Example Flow of Successful Custom Alert
Request:
Body:
Response:
Example Flow of Failed Custom Alert
Request:
Body:
Response:
Notes
-
This endpoint allows external systems to push custom alerts directly to a RaPTr Scanner UI in real time.
-
Use this to indicate time-sensitive or safety-related events.
-
Color formatting must be in valid HTML hex format (
#RRGGBB
). -
DwellTime specifies how long the alert remains visible. A value of 0 may be treated as invalid or ignored, depending on system configuration.
Comments
0 comments
Please sign in to leave a comment.