When barcode is read by a RaPTr Scanner, it sends a Barcode Read Event message to its RaPTr
Server. The RaPTr Server relays this message to the REST Server.
Endpoint
POST[http vs https]://[Supervisor Hostname]:[REST API Supervisor Port (if greater than 0)]/BarcodeReadEventURL
Request
HeadersContent-Type: application/json
Request Body
The request must be a JSON object with a single top-level key "d"
that contains the actual event data:
Example JSON Payload:
Parameter Types:
-
WarehouseID:
string
– Identifies the warehouse the RaPTr unit belongs to. -
Code:
string
– The raw text scanned from the barcode. -
LocationID:
unsigned int
– Identifies the RaPTr scanner that captured the barcode. -
MessageID:
unsigned long
– Unique identifier for this barcode scan event. -
CameraID:
unsigned int
– ID of the specific camera on the unit that scanned the barcode.
Response
Success ResponseHTTP Status: 200 OK
Response Body: The response is also wrapped in a top-level "d"
key.
Parameter Types:
-
ResponseCode:
unsigned int
– 1 if the barcode corresponds to a valid pallet; 0 if rejected. -
ResponseColor:
string
– HTML color (#RRGGBB
) used for the on-screen response banner. -
ResponseString:
string
– Human-readable feedback for the operator. -
OrderNumber:
string
– (Optional) The current shipment or order being fulfilled. -
DwellTime:
unsigned int
– Duration to display the response message in milliseconds. If0
, scanner defaults apply. -
AudibleKey:
string
– Identifier for which sound (e.g., success or error chime) to play on the RaPTr device.
Example Flow: Valid Barcode
Request:
Body:
Response:
Example Flow: Invalid Barcode
Response:
Notes
-
The
"d"
wrapper is mandatory in both the request and response payloads. -
ResponseColor
,ResponseString
, andAudibleKey
are used to guide the operator’s reaction quickly and clearly. -
Ensure
MessageID
is unique per scan event to support proper tracking and logging on the server. -
The
DwellTime
value allows fine-tuned control over UI display behavior; using0
defers to RaPTr’s default settings.
Comments
0 comments
Please sign in to leave a comment.