Customers
Find the customer identity, wallet, or saved-payment-method behavior you need to trace. Customer data handling is shared across CCG V1 and V2.
What are you working on?β
Find or create a customer
Investigate identity lookup
Follow a wallet identity change
Handle a later identity event
Work with saved methods
Set enterprise matching rules
Customer data at a glanceβ
CCG creates and manages customer records using multiple identifiers across V1 and V2. Both versions use the shared, unversioned wallet-customer-service customer-creation flow; versioning is applied at the virtual-service and HCP layers.
important
Customer creation requires at least one primary identifier; if none is provided, the process cannot continue.
Types of Customerβ
- Enterprise Customer: A user with an enterpriseId will have all their payment methods consolidated into a single enterprise wallet, accessible across all merchants. This enables a seamless experience for users who interact with multiple merchants under the same enterprise.
- Local Customer: A user identified only by mcid will have a local wallet, accessible only to the merchant that created it. This is ideal for merchants who want to manage their own customer base independently.
Best Practicesβ
- When upgrading a local wallet to an enterprise wallet, CCG will merge and de-duplicate payment methods to ensure a single, unified wallet per customer. Refer to Wallet Upgrade for more details.
- Regularly review and update merchant configuration to ensure all relevant mcids are supported and mapped correctly.
Merchant-facing endpoints supporting customer creationβ
Merchants call these exposed APIs, which can invoke the internal POST /customers/find endpoint as part of their workflow. The paths below are the documented V1 entry points; /customers/find itself is not merchant-facing.
- Sessions:
POST v1/sessionsβ Initiates a session and creates a customer if needed. - Find Payment Method Search:
POST v1/payment-methods/searchβ Searches for payment methods and creates a customer if not found. - Payments:
POST v1/payments,POST v1/token/paymentsβ Processes payments and creates a customer if necessary. - Setup Payment Methods:
POST v1/token/setup-payment-methodsβ Sets up payment methods and creates a customer if required.