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.
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β
| Field | Notes |
|---|---|
id | Omit on create; required on update |
merchantGroupId | Set if this merchant shares identity/settings scope with other merchants in a group |
name | Merchant display name |
clientIds | Required, non-empty β the OAuth client ID(s) this merchant's requests authenticate with |
merchantAccAdGroup | String, 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:
| Setting | Type | Notes |
|---|---|---|
ws2check | Boolean | On-screen entry validation β see WS2Check |
splitTender.enabled | Boolean | Default false β enables split-tender payments |
telephonicEntryEnabled | Boolean | Enables the Telephonic Entry channel |
authenticationStrategy | IDP_REQUIRED | IDP_NOT_REQUIRED | See Authentication Strategy |
payoutReportsEnabled | Boolean | See Reports |
transactionLevelFeeReportEnabled | Boolean | See Reports |
senderEmailAddresses | List<SenderEmailAddress> | The "from" address(es) used when agent-assisted Email channel messages are sent to a customer. Each has emailAddress, verified, defaultEmail |
phoneNumbers | List<PhoneNumber> | The "from" number(s) used when agent-assisted Text channel messages are sent to a customer. Each has countryCode, number |
paymentMetadataKeys / refundMetadataKeys | String[] | Metadata key names that should appear as columns in reporting |
features | Map<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 } } }
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.
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.