Skip to main content

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.
You do not need to set up the scanning button in the Customer Area to use this method.

Requirements

Before you begin, take into account the following requirements, limitations, and preparations.

How it works

  1. You send an admin request to activate the barcode scanner.
  2. Your staff scans an item.
  3. A successful scan deactivates the barcode scanning button, and you receive the barcode content in the response to the admin request.
  4. 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.
  1. Create a JSON object with the following data elements: Activate barcode scanner
  2. Encode the JSON object to Base64. Base64 encoded message
  3. Make a Terminal API admin request, specifying:
    • The standard SaleToPOIRequest.MessageHeader object, with MessageClass set to Service and MessageCategory set to Admin.
    Activate barcode scanner request
    The terminal operator can now scan a barcode.
  4. In the AdminResponse, note:
    • If successful, the following fields are returned:
      • Response.Result: Success
      • AdditionalResponse: Contains the Base64-encoded barcode content.
    • If unsuccessful, the following fields are returned:
      • Response.Result: Failure
      • ErrorCondition: Cancel, Aborted, UnavailableService, or NotFound
      • AdditionalResponse: 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" }.
    The format of the AdditionalResponse can be a Base64-encoded or URL-encoded. To always receive the AdditionalResponse in one of those formats, contact our Support Team.