Endpoint
POST[http vs https]://[Supervisor Hostname]:[REST API Supervisor Port (if greater than 0)]/BarcodeImageEventURL
Request
HeadersContent-Type: application/json
Request Body
The request body must be a JSON object wrapped in a top-level key "d", containing all event details and barcode positioning metadata.
Example JSON Payload:
Parameter Types:
-
WarehouseID:
string– Unique warehouse identifier. -
LocationID:
unsigned int– ID of the RaPTr scanner that captured the barcode. -
MessageID:
unsigned long– Must match the ID used in the relatedBarcodeReadEvent. -
CameraID:
unsigned int– Identifies which camera on the scanner captured the image. -
Image:
string– A base64-encoded JPEG image or a relative path to the saved image. -
BarcodeCoordinates:
object– Specifies the corners of the detected barcode in the image. Each value is adoublerepresenting a percentage (0.0 to 1.0) of image width/height:-
TopLeftX,TopLeftY -
TopRightX,TopRightY -
BotLeftX,BotLeftY -
BotRightX,BotRightY
-
Response
Success ResponseHTTP Status: 200 OK
Response Body: The response is also wrapped in a "d" key.
Example Flow: Successful Upload
Request:
Body:
Response:
Notes
-
This endpoint is optional, but it adds valuable visual context to barcode reads.
-
MessageIDmust match the barcode read event it supports for traceability. -
Either a full base64-encoded image string or a relative file path to a pre-saved image is accepted for the
Imagefield. -
All barcode coordinates must be accurate percentages (0.0–1.0) to render correctly in RaPTr UI overlays.
Comments
0 comments
Please sign in to leave a comment.