Checking access…

Skip to main content
Audience: CCG Platform Engineers

Enterprise Settings

Platform engineers configuring enterprise settings for a merchant during onboarding. See Customer Lookup Logic (EIMP) for how these settings drive customer lookup.

Legend: Class / Handler Method Field / Config Key Event API Endpoint DB Table / Column

This guide explains how to configure the enterpriseSettings for a merchant to enable customer identification through EIMP and CCG database lookups.

Enterprise Settings must be configured for any merchant who wants to use the enterprise wallet feature. These settings define how customers are identified and matched between merchant and enterprise systems, enabling seamless onboarding and wallet upgrades.

Merchants configure multiple search criteria (such as SubscriptionId, DependentCode, ExchangeID, etc.) that CCG uses to locate or create enterprise customer records and wallets. This configuration supports advanced workflows like upgrading a local wallet to an enterprise wallet by searching for existing records using prioritized criteria.

The process ensures each customer has a single enterprise wallet, consolidates payment methods, and prevents duplicates. Enterprise Settings are essential for seamless onboarding, accurate customer identification, and smooth wallet upgrades in integrated environments.

For more details on how enterprise customer identities are managed and retrieved, see the EIMP documentation.

Prerequisites
  • Familiarity with the Enterprise Settings Logic β€” how merchant search criteria drive EIMP lookups
  • Familiarity with the CCG DB Lookup Logic β€” how the same configuration drives database-level lookups
  • Access to the merchant event pipeline (Kafka) or direct database access for configuration updates

How Enterprise Settings Are Stored​

There are two copies of enterpriseSettings, in two different services β€” knowing which one you're looking at matters when debugging:

  1. The canonical copy β€” wallet-merchant-service's own merchant table, set directly by the engineer configuring the merchant. See Configure Enterprise Settings for how to set it.
  2. Downstream replicas β€” every consuming service (e.g. the customer/EIMP-lookup service this page is written for) keeps its own local merchant table, populated only from Kafka β€” never written to directly by a platform engineer.

Each replica stores the configuration as a JSONB column named enterprise_settings on that service's own merchant table. At the application level, it maps to the orderedCustomerSearchCriteria field on that service's Merchant entity:

Java Entity Mapping
@JdbcTypeCode(SqlTypes.JSON)
@Column(name = "enterprise_settings")
private List<OrderedCustomerSearchCriteria> orderedCustomerSearchCriteria;

How a Replica Gets Updated​

A replica is never configured through its own REST API β€” it has none for this field. It arrives via Kafka events published by wallet-merchant-service after a platform engineer calls POST/PATCH /merchants (see Configure Enterprise Settings):

EventTrigger
merchant-created-eventNew merchant onboarded β€” creates the local replica with enterprise settings
merchant-updated-eventMerchant configuration changed in wallet-merchant-service β€” updates the existing replica

Each consuming service has its own MerchantConsumer that listens for these events; in this service, MerchantConsumerMapper maps merchantPayload.enterpriseSettings β†’ Merchant.orderedCustomerSearchCriteria.

Direct DB update bypasses the event β€” use only as a last resort in lower environments

Updating the enterprise_settings column directly via SQL β€” on either wallet-merchant-service's canonical table or a replica β€” does not publish merchant-updated-event. Update the canonical table this way and every replica silently falls out of sync; update a replica this way and it diverges from the canonical source on the next unrelated event. Always prefer PATCH /merchants on wallet-merchant-service so the change propagates everywhere automatically.

UPDATE merchant
SET enterprise_settings = '<JSON>'::jsonb
WHERE wallet_merchant_id = '<merchant-uuid>';