Who is involved
A connected account is identified by its Ionic merchant ID, such as
mer_BBBBBBBBBBBBBB. Store this ID on your own merchant record when the business
connects to your platform. Merchant-scoped Connect requests select a merchant with it; platform-level
requests do not.
Platform keys
Create platform keys in Connect → API keys.
One publishable key serves every merchant connected to your platform. Test keys
select test mode and live keys select live mode. Connections, customers, and
object IDs are separate in each mode.
Selecting a merchant
A request that acts for a connected account names that account once. On your server, send theIonic-Account header with the platform secret key, or
pass the account request option to the server SDK. The SDK sends the header
for that request:
Ionic-Account says so in the API reference. Platform
webhook endpoints, and the payment domains your platform uses for Blocks, belong
to the platform itself, so those requests carry no merchant selection. Web
domains sent with Ionic-Account go on the connected account’s own list, for
embedded checkout.
Permissions
A Connect request succeeds when the platform key and the merchant’s connection both grant the permission the operation needs.Payment domains
Register each website your platform operates in Connect → Domains, once per mode. Connected accounts with an active connection and the required permissions can use that website with your platform publishable key. See Platform payment domains. To embed checkout for a connected account, register the site on that account’s own list instead. See Embedded checkout for connected accounts.Webhooks
A platform webhook endpoint receives eligible events from merchants with active connections and the matching resource read permission. Each event names the merchant that owns the object inevent.account.
Match it to the merchant stored with the payment before acting on the event. See
Platform webhooks.
Connect your first merchant
Follow Account Links to launch hosted signup or onboarding, handle the return, and save the merchant ID for subsequent requests. For an existing Ionic merchant who only needs to authorize your platform, use existing-Account authorization.What’s next
Connect a new merchant
Launch hosted signup or onboarding and save the merchant ID.
Connect an existing merchant
Let a business that already uses Ionic approve your platform.
Accept payments
Create a PaymentIntent for a connected account and collect the card with Ionic Blocks.
Platform AI agents
Ask a connected account to allow your AI agent, then act for it with the agent’s key.

