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

Cegid UR

Understand The Wallet Crew connector for Cegid UR, including its customer and coupon capabilities, configuration, and mapping.

Cegid UR is distinct from Cegid Retail Y2. It has its own connector, configuration, and feature set.

This page is deliberately brief. For an implementation using Cegid UR, contact The Wallet Crew to confirm the scope available.

What it covers

The Cegid UR connector reads and writes customer records, and reads coupons attached to a customer. Where the Cegid Retail Y2 connector spans loyalty cards, vouchers, receipts, advisors, and business notifications, the Cegid UR connector does not.

Configuration

Configuration is held in the tenant configuration file server/ur.yml rather than on a connector page. It has these keys:

Key
Meaning
Default

connection.serviceUrl

Base address of the Cegid UR services (required). A trailing / is added when missing.

None

context.businessUnit

Business unit that identifies the brand in the Cegid UR environment (required, a number).

None

context.businessFunction

Business function that identifies the brand in the Cegid UR environment (required).

None

cache.cacheDuration

How long data read from Cegid UR is cached.

Zero: no caching

rateLimit.enabled

Turns the client-side rate limiter on.

false

rateLimit.permitLimit

Maximum number of requests per window.

4500

rateLimit.windowSeconds

Window length, in seconds.

60

rateLimit.retryAfterSeconds

How long deferred work waits before retrying, when Cegid gives no guidance of its own, in seconds.

60

rateLimit.queueAcquireTimeoutSeconds

How long a request waits for a permit, in seconds. Zero means it is deferred immediately rather than held.

0

rateLimit.queueRetryDelaySeconds

Polling interval while a request waits in the queue, in seconds.

1

connection:
  serviceUrl: https://<cegid-ur-host>/
context:
  businessUnit: <business unit number>
  businessFunction: <business function>
rateLimit:
  enabled: true
  permitLimit: 4500
  windowSeconds: 60

Credentials are not stored in the configuration. Authentication is applied by a connection interceptor script, extensions.cegid.ur.connectionInterceptor, that reads the key from the secret store. Cegid UR has no admin script slot: add the script as a .js file under server/scripts/ in the Advanced configuration editor. See Cegid UR scripts and the Scripting reference, which lists the Cegid extension points.

Customizing the mapping

The Cegid UR connector exposes a mapper on the same pattern as Cegid Retail Y2, with methods named for UR rather than Y2. One difference matters: unlike the Y2 mapper, either method may be omitted, so a script that only needs to customize one direction can register just that one.

Cegid UR represents consents as a list of coded entries in which one code identifies the consent and a second carries the answer, with distinct values for yes, no, and not stated. Both directions of a mapping must use the same dictionary.

FAQ

Can a brand run both Cegid Retail Y2 and Cegid UR?

Running both against one wallet program is not a standard arrangement and should be scoped with The Wallet Crew.

Does Cegid UR support business notifications?

No. Wallet data refreshes when a pass is rebuilt, as described in How the Cegid Retail Y2 connector works; there is no equivalent real-time channel.

Last updated