There are two ways to make drivers scan the barcode to finilaze the order.
1. Using the Scan Barcode Feature in Dashboard Settings
Navigate to Properties > Pick-Up Locations > Edit > Order Completion Actions > Scan Barcode.
In this setting, you can specify at which delivery stage the driver should scan a barcode to complete the delivery:
- At pick up
- At drop off
- At pick up & at drop off
Once configured, the system will prompt the driver to scan the barcode and store the scanned value in the order details.
2. Passing a Barcode String via API Request
You can include a "barcode" string in your API request. This makes it mandatory for the driver to scan the specified barcode to finalize the delivery, regardless of the Scan Barcode feature's status in the dashboard.
For instance, you can add the following string to your API request:
"barcode": "Cartwheel Test"
The driver will need to scan the barcode in the Driver App at both the pick-up and drop-off locations. The system will automatically compare the scanned value with the one provided in the API request. If they match, a success response will be generated:
Comments
0 comments
Please sign in to leave a comment.