Checking access…

Skip to main content
Audience: CCG Platform Engineers

Onboard a Merchant

Platform engineers who are configuring a new merchant end-to-end, or updating an existing one. This page walks through the actual API calls on wallet-merchant-service. For a checklist of what to review before you start, see the Merchant Onboarding Checklist.

All calls are made through Swagger β€” confirm the schema, and take a backup, before submitting

Onboarding is done against wallet-merchant-service's own Swagger UI (springdoc), not ad-hoc curl against a guessed host. Port-forward to the service and use Swagger for every call below β€” GET, POST, and PATCH alike. Before updating an existing merchant, call GET /merchants/{id} in Swagger first and save its response as a backup of the current state, so you can restore it if the update goes wrong. Then confirm today's request schema for /merchants (and /merchants/webhook) in Swagger before submitting β€” the field names, types, and examples on this page and its linked How-to pages are a point-in-time snapshot and can drift as the service evolves. Treat every JSON example here as illustrative, not authoritative.

A merchant is configured through one wallet-merchant-service REST resource β€” POST /merchants to create, PATCH /merchants to update. Vendor merchants, enterprise settings, and most merchant-level settings (ws2check, split tender, telephonic entry, reports, sender email/phone, authentication strategy) all live in the body of that same request. Webhooks are the one exception β€” a separate resource (POST/PATCH /merchants/webhook).

Step 1: Identify the merchant​

FieldNotes
idOmit on create; required on update
merchantGroupIdSet if this merchant shares identity/settings scope with other merchants in a group
nameMerchant display name
clientIdsRequired, non-empty β€” the OAuth client ID(s) this merchant's requests authenticate with
merchantAccAdGroupString, defaults to "". An AD group associated with the merchant's account; wallet-merchant-service stores and passes it through but doesn't otherwise process it β€” check with the platform team for what consumes it before setting

Step 2: Configure vendor merchants, payment methods, and channels​

Add one vendorMerchants entry per vendor the merchant uses (vendor, connect account, which payment methods it supports, and which channels each is offered through). See Configure Vendors, Payment Methods and Channels for the full step-by-step, and the Reference for exact field shapes.

Step 3: Configure enterprise settings (if the merchant uses enterprise wallet)​

Add enterpriseSettings β€” an ordered list of customer-search-criteria sets. See Enterprise Settings β€” Overview and Configure Enterprise Settings for the full schema and worked examples. Skip this step for a merchant that doesn't use the enterprise wallet feature.

Step 4: Configure merchant settings​

All of these live under settings in the same request body:

SettingTypeNotes
ws2checkBooleanOn-screen entry validation β€” see WS2Check
splitTender.enabledBooleanDefault false β€” enables split-tender payments
telephonicEntryEnabledBooleanEnables the Telephonic Entry channel
authenticationStrategyIDP_REQUIRED | IDP_NOT_REQUIREDSee Authentication Strategy
payoutReportsEnabledBooleanSee Reports
transactionLevelFeeReportEnabledBooleanSee Reports
senderEmailAddressesList<SenderEmailAddress>The "from" address(es) used when agent-assisted Email channel messages are sent to a customer. Each has emailAddress, verified, defaultEmail
phoneNumbersList<PhoneNumber>The "from" number(s) used when agent-assisted Text channel messages are sent to a customer. Each has countryCode, number
paymentMetadataKeys / refundMetadataKeysString[]Metadata key names that should appear as columns in reporting
featuresMap<String, Boolean>Ad-hoc feature flags not promoted to a named field yet

Step 5: Create or update​

In Swagger, call POST /merchants to create or PATCH /merchants to update (see the danger callout above for the GET-first backup step on updates). Example bodies:

// Create
{ "name": "...", "clientIds": ["..."], "vendorMerchants": [...], "settings": {...} }

// Update (id is required)
{ "id": "<merchant-uuid>", "settings": { "splitTender": { "enabled": true } } }
PATCH only needs what's changing

updateMerchant merges non-null fields from the request onto the existing merchant β€” you don't need to resend the full object. vendorMerchants changes are diffed separately from the rest of the merchant, so a vendor-only edit is still saved and published even if nothing else changed.

Step 6: Register webhooks (separate resource)​

Webhooks are not part of the settings object β€” they're their own resource. See Configure Webhooks for the full request shape, authentication options, and event list.

What happens after save​

On success, createMerchant/updateMerchant publish MERCHANT_CREATED_EVENT/MERCHANT_UPDATED_EVENT to Kafka. Downstream consumers (e.g. the EIMP/customer-lookup services that read enterpriseSettings) sync from this event β€” they don't call wallet-merchant-service directly.

Never configure by direct SQL update in anything but a lower environment

Updating merchant.enterprise_settings (or any other column) directly via SQL bypasses wallet-merchant-service entirely β€” no MERCHANT_UPDATED_EVENT is published, so downstream consumers silently fall out of sync with the database. Only do this for ad-hoc fixes in a lower environment, and re-verify affected consumers afterward.