Documentation Index
Fetch the complete documentation index at: https://docs.xpaycheckout.com/llms.txt
Use this file to discover all available pages before exploring further.
What is Platform Connect?
Platform Connect is xPay’s multi-account solution for marketplaces, software platforms, and aggregators that need to accept payments on behalf of other businesses. The setup splits responsibility between two roles:Platform vs. Connect accounts
- Platform Merchant — the parent account. Onboards Connect merchants, switches into them from the dashboard, and uses one set of API keys to operate across all of its connected accounts. A Platform merchant cannot accept payments itself.
- Connect Merchant — a regular xPay merchant that lives under a Platform. Accepts payments, owns its own customers, disputes, and settlements. Linked to its parent via platform
merchantId.
When to use it
- Marketplaces
- SaaS platforms
- Aggregators / resellers
How it works
Register a Connect merchant
Onboard the Connect merchant
Act on behalf of a Connect merchant
- Dashboard: use the Connect account dropdown in the header (or the Connect page) to switch context.
- API: include the header
x-connect-merchant-id: <connectMerchantId>on any authenticated request.
The x-connect-merchant-id header
This single header is the entire wire-protocol of Platform Connect. It tells xPay: “I am authenticated as the Platform, but please scope this request to one of my Connect merchants.”
| Header | Value | Required when |
|---|---|---|
x-connect-merchant-id | A Connect merchant ID (e.g. me_abc123…) owned by the authenticated Platform | Acting on behalf of a Connect merchant |
connectMerchantId actually belongs to the calling Platform. Any mismatch returns 403 Forbidden — Connect Merchant Id does not exist.
Behavioural rules
Platform merchants cannot accept payments
Platform merchants cannot accept payments
x-connect-merchant-id) is rejected with “Platform merchants cannot accept payments”. Payments must always be scoped to a Connect merchant.Connect merchants behave like standalone merchants
Connect merchants behave like standalone merchants
Onboarding approval emails
Onboarding approval emails
Dashboard UX
Connect page
- Register Connect account — create a new Connect merchant inline. The new merchant is added to the Platform’s roster immediately.
- Switch — jump into any Connect merchant; the dashboard reloads scoped to that merchant.
Header switcher
A persistent dropdown in the dashboard header lets you switch between Connect merchants from anywhere. A pulsing dot indicates that you are currently acting as a Connect merchant; click Switch to Platform account to return.