Multiple barcodes
To scan multiple barcodes instead of a single barcode, you can start a batch scan session. On Android payment terminals S1E Barcode, S1E2L, S1F2L, and S1U2 you can use Terminal API requests to:- Activate the scan button on the terminal so that your staff can scan a single item.
- Cancel scanning to deactivate the barcode scanner and the scan button.
- Specify how much time you want to allow for scanning.
Requirements
Before you begin, take into account the following requirements, limitations, and preparations.How it works
- You send an admin request to activate the barcode scanner.
- Your staff scans an item.
- A successful scan deactivates the barcode scanning button, and you receive the barcode content in the response to the admin request.
- With the logic that you have created, you pass the content from the response to your POS app.
Activate the barcode scanner for a single scan
To activate the barcode scanner for a single scan, you only need to send a request.-
Create a JSON object with the following data elements:
Activate barcode scanner
-
Encode the JSON object to Base64.
Base64 encoded message
-
Make a Terminal API admin request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to Admin.
The terminal operator can now scan a barcode. -
The standard
-
In the AdminResponse, note:
-
If successful, the following fields are returned:
Response.Result: SuccessAdditionalResponse: Contains the Base64-encoded barcode content.
-
If unsuccessful, the following fields are returned:
Response.Result: FailureErrorCondition: Cancel, Aborted, UnavailableService, or NotFoundAdditionalResponse: Contains the reason for failure as a Base64-encoded string. Decoding the string results in a message of the following format:{ "message": "Admin ScanBarcode request canceled due to Timeout" }.
AdditionalResponsecan be a Base64-encoded or URL-encoded. To always receive theAdditionalResponsein one of those formats, contact our Support Team. -
If successful, the following fields are returned:
- Activate barcode scanner response - success
- Activate barcode scanner response - failure
