Skip to main content

Configuring the app to scan a basket URL

Associate App allows you to scan a basket URL to create a cart with items that are currently in the basket. The regex patterns support JavaScript syntax. This includes scanning an RFID basket to add all items from the basket into the cart. See Creating a cart from an RFID basket .

However, you must verify that all items in the basket has been added successfully to the cart.

To enable Associate App to scan a basket URL, the URL must follow the following format:


/^(https?:\/\/ .*)\$BASKET$/i

An example of the URL is specified here: https://<url>/<unique identifier>$BASKET

When you scan this barcode with Associate App scans, the barcode allows identification of the basket and calls the API endpoint by omitting the $BASKET from URL, thereby adding items to the cart.

Important

Note that $BASKET is omitted from the URL when calling the API endpoint.

For example, if the scanned basket URL is https://dodici.com/newstore/api/orders/20240315BE-DE-012345$BASKET, Associate App will omit $BASKET from the URL and call the endpoint as specified here:

https://dodici.com/newstore/api/orders/20240315BE-DE-012345