Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Real-world examples
  • A store staff member creates a customer in Live Store; the enrolment form of The Wallet Crew collects the data and the profile is created in Cegid, with a pass issued immediately.

  • A store staff member edits an existing customer and the form opens pre-filled from Cegid.

  • A store runs a tablet at the entrance and customers complete enrolment on their own phone via a displayed code.

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.

1

Create an API key

Create an API key for Live Store to call The Wallet Crew with. It must carry the scope tenant.livestore.access:write. Copy the generated value and store it in a secret manager; it is used as the X-API-KEY header in the Live Store configuration.

2

Add the account challenger

In the security configuration (security.yml), add an account challenger of the livestore type. This is what allows a Live Store session to identify the customer being edited.

Do not use the none check-in policy with Live Store.

3

Add the flow element

Add a livestore flow element to the enrolment flow. It handles the return to Cegid after submission.

4

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_livestore

A 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.

The Cegid point-of-sale settings scope selector, showing the global, country, and store levels.
Choose the scope at which the extension applies.

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.

Address
Production
Staging

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

  1. Validate in a test environment first, with test keys and test addresses.

  2. Open the customer create or edit screen in Live Store and confirm it redirects to the enrolment form.

  3. Submit the form with test data.

  4. Confirm the return to the Live Store customer record, and the record in Cegid.

FAQ

The form opens but shows nothing. What should be checked?

Check, in this order: the API key matches the environment of the address, the key carries tenant.livestore.access:write, and the account challenger is configured.

Live Store redirects but the flow ends on an error page. What should be checked?

Confirm the address is reachable from the Live Store network, that the X-API-KEY header is present and correct, and that the Cegid Retail Y2 connector is configured and can reach the Y2 services.

Last updated