Cegid Retail Live Store
Enable the Cegid Retail Live Store customer form so store teams can create or edit customers through The Wallet Crew enrolment flows.
Cegid Retail Live Store (Live Store) is Cegid's point-of-sale application. Its external customer form opens an enrolment flow of The Wallet Crew when store teams create or edit a customer. The flow then returns them to the customer record. A code can also support self-service enrolment from a customer's phone.
Prerequisites
Live Store enrolment writes through the Cegid Retail Y2 connector by default (provider: y2), or through the Cegid UR connector (provider: ur). That connector must already be configured and working. For Y2, start with Configure the Cegid Retail Y2 connector, and check which customer fields are synchronized in Cegid Retail Y2 fields mapping.
On the Cegid side, permission to edit the point-of-sale settings at global, country, or store level is required.
Configure The Wallet Crew
Four things are needed, none of which is on the Cegid configuration page.
Create the Live Store configuration
Create server/livestore.yml, naming the layout to display, whether tablet mode is in use, the layout to redirect to in tablet mode, and whether the customer provider is Y2 or UR.
layout: mobile_ls
useTabletMode: false
provider: y2
customerRedirectLayout: mobile_livestoreA layout is an enrolment page of the tenant, served at https://app.thewalletcrew.io/{tenantId}/{layout}. layout names the page Live Store opens. customerRedirectLayout names the page the customer's phone is redirected to in tablet mode. The layout names in the examples are illustrative: use the names of the tenant's own layouts, and create or update both referenced layouts. The tablet-mode example below uses other names because tablet mode shows a code and redirects to a mobile layout.
Configure Live Store
The extension is configured in the Live Store point-of-sale settings, at global, country, or store level. It is not available at register level.

Two addresses are entered: one that Live Store calls to open a session, and one that the store staff member's browser is redirected to. Both are tenant-specific, and both differ between the production and staging environments (see Environments and URLs for the hosts). Replace {tenantId} with the tenant identifier.
Session (called by Live Store with POST)
https://api.thewalletcrew.io/api/{tenantId}/external/livestore/session
https://api-qa.thewalletcrew.io/api/{tenantId}/external/livestore/session
Redirect (opened in the store staff member's browser)
https://app.thewalletcrew.io/api/{tenantId}/external/livestore
https://app-qa.thewalletcrew.io/api/{tenantId}/external/livestore
Where a single store should be pinned, the store identifier is appended to the address as the storeId parameter (for example ?storeId=530). When the session call carries a storeId, it replaces the store sent in the session body.
How the session works
Live Store opens a session by calling The Wallet Crew with its API key, supplying a session identifier it chooses, the customer being edited and a return address. The Wallet Crew holds that context for one hour. Opening the session again with the same identifier replaces the customer and restarts the hour. Live Store then redirects the store staff member's browser to the enrolment form, carrying that identifier.
After submission the store staff member is returned to the customer record in Live Store. The Wallet Crew does not write back into Live Store itself; the customer data is written to Cegid Retail Y2, which Live Store reads from.
Self-service enrolment on a tablet
Where a store uses a tablet rather than a till screen, tablet mode displays a code the customer scans to continue enrolment on their own phone. It is enabled in the Live Store configuration, together with the mobile layout to redirect to.
Validate the flow
Validate in a test environment first, with test keys and test addresses.
Open the customer create or edit screen in Live Store and confirm it redirects to the enrolment form.
Submit the form with test data.
Confirm the return to the Live Store customer record, and the record in Cegid.
FAQ
Last updated

