Enterprise Settings
Platform engineers configuring enterprise settings for a merchant during onboarding. See Customer Lookup Logic (EIMP) for how these settings drive customer lookup.
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.
- 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:
- The canonical copy β
wallet-merchant-service's ownmerchanttable, set directly by the engineer configuring the merchant. See Configure Enterprise Settings for how to set it. - Downstream replicas β every consuming service (e.g. the customer/EIMP-lookup service this
page is written for) keeps its own local
merchanttable, 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):
| Event | Trigger |
|---|---|
merchant-created-event | New merchant onboarded β creates the local replica with enterprise settings |
merchant-updated-event | Merchant 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.
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>';
Related Documentationβ
- Onboard a Merchant (How-to) β the end-to-end configuration flow, of which enterprise settings is one step
- Configure Enterprise Settings (How-to) β field reference, step-by-step guide, examples, and common mistakes
- Enterprise Settings Logic (EIMP Lookup) β How the configuration drives EIMP identity lookups
- CCG DB Lookup Logic β How the same configuration drives database-level lookups
- Customer Creation β End-to-end customer creation flow