- A platform key that can create buyers (
org.tenants.write). Create one in the dashboard. For a test run, use a sandbox platform key. - An agent client that can connect to remote MCP servers. The examples use Claude Code.
SAPIOM_PLATFORM_KEY to your saved platform key:
1
Create a buyer
A buyer represents one of your users. Use your own ID for that user as Save the
externalId:id from the response as BUYER_ID.2
Create a key for the buyer
plainKey from the response as SAPIOM_BUYER_KEY. It is shown only once.3
Save a card for the buyer
Create a setup link with the buyer’s key:Open the
url from the response. In sandbox, use an approved test card. In production, send the link to your user to save their card.4
Connect your agent as the buyer
5
Check a merchant
For a sandbox check, use
sapiom-test-store.myshopify.com as the store’s domain.Ask your agent: “Can Sapiom buy from shop.example?”, with a real store’s domain. The answer is supported, unsupported or unknown. supported means the store offers UCP checkout. Otherwise your agent can use browser checkout, if Browser Pay can pay it.Next steps
Authorize a transaction
Send a merchant checkout and get the buyer’s approval.
Manage buyers
Set up buyers for real users in production.